/* =============================================
   ANUJA ELLEPOLA PORTFOLIO - STYLESHEET
   =============================================*/

/* --- CSS VARIABLES --- */
:root {
  --black: #050505;
  --black-2: #0a0a0a;
  --black-3: #111111;
  --dark: #161616;
  --dark-2: #1c1c1c;
  --white: #ffffff;
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --white-10: rgba(255,255,255,0.1);
  --white-5: rgba(255,255,255,0.05);

  --red: #c0392b;
  --red-2: #e74c3c;
  --red-dark: #8b0000;
  --red-bright: #ff2a2a;
  --red-glow: rgba(192, 57, 43, 0.6);
  --red-glow-soft: rgba(192, 57, 43, 0.2);
  --red-glow-subtle: rgba(192, 57, 43, 0.08);

  --gradient-red: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #ff6b6b 100%);
  --gradient-red-dark: linear-gradient(135deg, #8b0000 0%, #c0392b 60%, #e74c3c 100%);
  --gradient-hero: radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.12) 0%, transparent 60%);

  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.1);
  --glass-border-red: rgba(192,57,43,0.3);

  --nav-height: 70px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
  --font-poppins: 'Poppins', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;

  --shadow-red: 0 0 30px rgba(192,57,43,0.3), 0 0 60px rgba(192,57,43,0.1);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.6);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-poppins);
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* --- PARTICLE CANVAS --- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo {
  font-family: var(--font-montserrat);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: pulse-glow 1.5s ease-in-out infinite;
}
.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--white-10);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  background: var(--gradient-red);
  border-radius: 99px;
  animation: preload-fill 2s ease-in-out forwards;
}
@keyframes preload-fill {
  from { width: 0%; }
  to { width: 100%; }
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(192,57,43,0.8)); }
  50% { filter: drop-shadow(0 0 20px rgba(192,57,43,1)); }
}

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { position: relative; padding: 100px 0; overflow: hidden; }
.accent { color: var(--red-2); }
.gradient-text {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red-2);
  border: 1px solid var(--glass-border-red);
  padding: 4px 16px;
  border-radius: 99px;
  margin-bottom: 12px;
  background: rgba(192,57,43,0.05);
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-family: var(--font-montserrat);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.title-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-red);
  margin: 0 auto;
  border-radius: 99px;
  position: relative;
}
.title-line::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 3px;
  background: var(--white);
  border-radius: 99px;
  animation: line-anim 2s ease-in-out infinite;
}
@keyframes line-anim {
  0%, 100% { left: 0; }
  50% { left: 100%; }
}
.section-bg-accent {
  position: absolute;
  top: 50%; right: -200px;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(192,57,43,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.section-bg-accent.left { right: auto; left: -200px; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-poppins);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 0.05; }
.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192,57,43,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(192,57,43,0.6), 0 0 50px rgba(192,57,43,0.2);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--glass-border-red);
}
.btn-outline:hover {
  border-color: var(--red-2);
  color: var(--red-2);
  box-shadow: 0 0 25px rgba(192,57,43,0.2);
  transform: translateY(-3px);
}
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border), 0 4px 30px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-montserrat);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-70);
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gradient-red);
  border-radius: 99px;
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
}
.nav-link:hover::after, .nav-link.active::after { width: 20px; }
.nav-link.active { color: var(--red-2); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HOME SECTION
   ============================================= */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--black);
  overflow: hidden;
}
.home-bg-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(192,57,43,0.15) 0%, rgba(192,57,43,0.05) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
/* HOME TEXT */
.home-greeting {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--red-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease 0.3s forwards;
}
.home-name {
  font-family: var(--font-montserrat);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease 0.5s forwards;
  background: linear-gradient(135deg, #ffffff 40%, #ff6b6b 80%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-typewriter {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--white-70);
  margin-bottom: 12px;
  min-height: 28px;
  font-weight: 400;
  opacity: 0;
  animation: fade-in 0.6s ease 0.7s forwards;
}
.cursor-blink {
  color: var(--red-2);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.home-origin {
  font-size: 0.95rem;
  color: var(--white-40);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.6s ease 0.9s forwards;
}
.home-origin i { color: var(--red-2); }
.home-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 0.6s ease 1.1s forwards;
}
.home-socials {
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: fade-up 0.6s ease 1.3s forwards;
}
.social-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--white-5);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--white-70);
  transition: all var(--transition);
}
.social-icon:hover {
  background: rgba(192,57,43,0.15);
  border-color: var(--glass-border-red);
  color: var(--red-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192,57,43,0.2);
}

/* HOME IMAGE */
.home-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fade-in 1s ease 0.6s forwards;
}
.image-glow-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(192,57,43,0.3);
  animation: ring-spin 8s linear infinite;
}
.image-glow-ring::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  background: var(--red-2);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red-2);
  transform: translateX(-50%);
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.image-container {
  width: 360px; height: 360px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--black), var(--black)) padding-box,
              var(--gradient-red) border-box;
  position: relative;
  box-shadow: var(--shadow-red), inset 0 0 60px rgba(192,57,43,0.1);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.profile-img { width: 100%; height: 100%; object-fit: cover; }
.floating-badge {
  position: absolute;
  background: rgba(10,10,10,0.9);
  border: 1px solid var(--glass-border-red);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 15px rgba(192,57,43,0.1);
}
.floating-badge i { color: var(--red-2); font-size: 0.85rem; }
.badge-1 { top: 10%; left: -20px; animation: badge-float-1 3s ease-in-out infinite; }
.badge-2 { bottom: 15%; left: -30px; animation: badge-float-2 3.5s ease-in-out infinite; }
.badge-3 { top: 35%; right: -20px; animation: badge-float-3 2.8s ease-in-out infinite; }
@keyframes badge-float-1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes badge-float-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes badge-float-3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--white-40);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  animation: fade-in 1s ease 1.8s both;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid var(--white-40);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--gradient-red);
  border-radius: 99px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-anim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section { background: var(--black-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-para {
  color: var(--white-70);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-montserrat);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.75rem; color: var(--white-40); letter-spacing: 1px; text-transform: uppercase; }
.about-visual {}
.about-graphic {}
.hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.hex-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.hex-item:hover {
  background: rgba(192,57,43,0.1);
  border-color: var(--glass-border-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(192,57,43,0.15);
}
.hex-item i {
  font-size: 1.5rem;
  color: var(--red-2);
  margin-bottom: 8px;
  display: block;
}
.hex-item span { font-size: 0.75rem; font-weight: 600; color: var(--white-70); }
.skills-section {}
.skill-bar-wrap { margin-bottom: 20px; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--white-70);
}
.skill-pct { color: var(--red-2); }
.skill-bar {
  height: 6px;
  background: var(--white-10);
  border-radius: 99px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  background: var(--gradient-red);
  border-radius: 99px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-progress::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(192,57,43,0.8);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section { background: var(--black); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: var(--glass-border-red);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(192,57,43,0.1);
}
.service-card:hover .service-card-glow {
  opacity: 1;
}
.service-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(192,57,43,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.card-line {
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--gradient-red);
  border-radius: 0 0 3px 0;
  transition: width var(--transition);
}
.service-card:hover .card-line { width: 80px; }
.service-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(192,57,43,0.1);
  border: 1px solid var(--glass-border-red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--red-2);
  transition: all var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: rgba(192,57,43,0.2);
  box-shadow: 0 0 20px rgba(192,57,43,0.3);
  transform: scale(1.1);
}
.service-card h3 {
  font-family: var(--font-montserrat);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p { font-size: 0.875rem; color: var(--white-70); line-height: 1.7; }

/* =============================================
   EDUCATION SECTION
   ============================================= */
.education-section { background: var(--black-2); }
.timeline { position: relative; padding: 20px 0; }
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--glass-border-red) 10%, var(--glass-border-red) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 48px;
  position: relative;
}
.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--gradient-red);
  border-radius: 50%;
  border: 3px solid var(--black-2);
  box-shadow: 0 0 12px rgba(192,57,43,0.6);
  z-index: 1;
}
.timeline-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  width: 100%;
  transition: all var(--transition);
  position: relative;
}
.timeline-card:hover {
  border-color: var(--glass-border-red);
  box-shadow: 0 8px 30px rgba(192,57,43,0.1);
  transform: scale(1.02);
}
.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-card h3 {
  font-family: var(--font-montserrat);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-card h4 {
  font-size: 0.85rem;
  color: var(--white-70);
  font-weight: 500;
  margin-bottom: 10px;
}
.timeline-card p { font-size: 0.85rem; color: var(--white-40); line-height: 1.7; }
.timeline-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(192,57,43,0.15);
  color: var(--red-2);
  border: 1px solid var(--glass-border-red);
  padding: 3px 12px;
  border-radius: 99px;
  margin-top: 12px;
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */
.experience-section { background: var(--black); }
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.exp-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gradient-red);
  border-radius: 0 0 3px 0;
  transition: height 0.5s ease;
}
.exp-card:hover::before { height: 100%; }
.exp-card:hover {
  border-color: rgba(192,57,43,0.2);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.exp-icon {
  width: 44px; height: 44px;
  background: rgba(192,57,43,0.1);
  border: 1px solid var(--glass-border-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-2);
  font-size: 1rem;
  flex-shrink: 0;
}
.exp-header > div h3 {
  font-family: var(--font-montserrat);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.exp-header > div h4 {
  font-size: 0.825rem;
  color: var(--white-40);
  font-weight: 400;
}
.exp-date {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-2);
  background: rgba(192,57,43,0.1);
  border: 1px solid var(--glass-border-red);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
.exp-list { padding-left: 0; }
.exp-list li {
  font-size: 0.85rem;
  color: var(--white-70);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
}
.exp-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--gradient-red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.exp-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   PORTFOLIO SECTION
   ============================================= */

/* --- FIX FOR MOBILE VIDEO OVERLAY --- */
/* Ensure the video can be clicked when it's playing */
.portfolio-video.playing {
  opacity: 1 !important;
  pointer-events: auto !important; /* This allows the click to work */
  cursor: pointer;
  z-index: 5; /* Brings it to the very front */
}

/* Hide the overlay text so it doesn't block the video */
.portfolio-card:has(.portfolio-video.playing) .portfolio-overlay-content {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Dim the background slightly when video plays (Optional but looks pro) */
.portfolio-card:has(.portfolio-video.playing) .portfolio-overlay {
  background: rgba(0,0,0,0.2) !important; 
  backdrop-filter: none !important;
}

@media (max-width: 768px) {
  /* Center the stats box content */
  .about-stats {
    flex-direction: column; /* Stacks items vertically */
    align-items: center;    /* Centers them horizontally */
    justify-content: center;
    text-align: center;
    gap: 30px;              /* Adds space between the numbers */
  }

  /* Center the Download CV button */
  .about-text .btn {
    display: flex;
    margin: 0 auto;         /* Standard trick to center block-level buttons */
    justify-content: center;
    max-width: 280px;       /* Keeps button from being too wide on mobile */
  }
}

/* 4. Mobile specific tweak: Ensure the container doesn't clip the video strangely */
@media (max-width: 768px) {
  .portfolio-img-wrap {
    aspect-ratio: 16 / 9; /* Standard video ratio for mobile landing pages */
  }
}

   /* --- Updated Portfolio Video Styles --- */
.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--black-3);
}

.portfolio-thumb, .portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the landing page image/video fills the box */
  display: block;
}

.portfolio-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Hidden until play button clicked */
  z-index: 1;
  transition: opacity 0.4s ease;
  pointer-events: none; /* Allows hover through to overlay */
}

.portfolio-video.playing {
  opacity: 1;
}

.portfolio-overlay {
  z-index: 2; /* Always above video and thumb */
}

.portfolio-card:hover .portfolio-thumb {
  transform: scale(1.08);
}

.plink-btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.portfolio-section { background: var(--black-2); }
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 24px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--glass-border);
  background: transparent;
  color: var(--white-70);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gradient-red);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192,57,43,0.4);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns looks better for wide cards */
  gap: 30px;
  margin-bottom: 48px;
}
.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-red);
  box-shadow: var(--shadow-card);
}
.portfolio-img-wrap {
  position: relative;
  width: 100%;
  /* This creates a 16:9 cinematic aspect ratio like the hotel site */
  aspect-ratio: 16 / 9; 
  overflow: hidden;
  background-color: var(--black-3);
  border-radius: 12px 12px 0 0; /* Rounded top corners */
}
.portfolio-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-placeholder { transform: scale(1.05); }
.pp-inner {
  text-align: center;
  color: rgba(255,255,255,0.6);
}
.pp-inner i { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.pp-inner span { font-size: 0.85rem; font-weight: 600; }
.p1 { background: linear-gradient(135deg, #0d0d0d, #1a0505); }
.p2 { background: linear-gradient(135deg, #050d0d, #050d1a); }
.p3 { background: linear-gradient(135deg, #0d0a00, #1a1200); }
.p4 { background: linear-gradient(135deg, #050d05, #0a1a05); }
.p5 { background: linear-gradient(135deg, #0d0510, #1a0520); }
.p6 { background: linear-gradient(135deg, #0a0505, #1f0a00); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-content { text-align: center; padding: 20px; }
.portfolio-overlay-content h3 {
  font-family: var(--font-montserrat);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.portfolio-overlay-content p {
  font-size: 0.8rem;
  color: var(--white-40);
  margin-bottom: 20px;
}
.portfolio-links { display: flex; gap: 12px; justify-content: center; }
.plink-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--gradient-red);
  color: var(--white);
  transition: all var(--transition);
}
.plink-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.5);
}
.portfolio-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portfolio-info h3 { font-size: 0.9rem; font-weight: 600; }
.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(192,57,43,0.15);
  color: var(--red-2);
  border: 1px solid var(--glass-border-red);
  padding: 3px 10px;
  border-radius: 99px;
}
.portfolio-more { text-align: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1; /* Forces 1:1 Square */
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  background: var(--black-3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents image stretching */
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192, 57, 43, 0.4); /* Subtle red tint */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 1.5rem;
  color: var(--white);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 15px;
  }
}



/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section { background: var(--black); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-montserrat);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-info > p {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-details { margin-bottom: 36px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(192,57,43,0.1);
  border: 1px solid var(--glass-border-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-2);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.contact-item:hover .contact-icon {
  background: rgba(192,57,43,0.2);
  box-shadow: 0 0 20px rgba(192,57,43,0.2);
}
.ci-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 2px;
}
.ci-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}
.ci-value:hover { color: var(--red-2); }

/* CONTACT FORM */
.contact-form-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-red);
}
.form-group { margin-bottom: 24px; position: relative; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-poppins);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-40); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(192,57,43,0.05);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(192,57,43,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-montserrat);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
}
.footer-socials { display: flex; gap: 12px; }
.fsocial {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--white-5);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--white-40);
  transition: all var(--transition);
}
.fsocial:hover {
  background: rgba(192,57,43,0.15);
  border-color: var(--glass-border-red);
  color: var(--red-2);
  transform: translateY(-3px);
}
.footer-divider { height: 1px; background: var(--glass-border); margin-bottom: 30px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--white-40); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-size: 0.85rem;
  color: var(--white-40);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--red-2); }

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px; height: 46px;
  background: var(--gradient-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(192,57,43,0.5);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 30px rgba(192,57,43,0.7); }

/* =============================================
   ANIMATIONS & KEYFRAMES
   ============================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* AOS — Scroll Reveal */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: 1fr; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(5,5,5,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    transform: translateY(-100vh);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
  }

  @media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-img-wrap {
    aspect-ratio: 16 / 9; /* Keeps it consistent on mobile */
  }
}
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }

  .home-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 60px;
  }
  .home-text { order: 2; }
  .home-image-wrap { order: 1; }
  .home-buttons { justify-content: center; }
  .home-socials { justify-content: center; }
  .home-origin { justify-content: center; }
  .image-container { width: 240px; height: 240px; }
  .image-glow-ring { width: 290px; height: 290px; }
  .badge-1, .badge-2, .badge-3 { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .timeline-line { display: none; }
  .timeline-item, .timeline-item.right {
    justify-content: center;
    padding: 0;
    padding-top: 20px;
  }
  .timeline-dot { display: none; }
  .timeline-card { max-width: 100%; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }

  .about-stats { flex-wrap: wrap; gap: 20px; }

  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .section { padding: 70px 0; }
  .home-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
  .home-buttons .btn { max-width: 280px; }
  .hex-grid { grid-template-columns: repeat(2, 1fr); }
}
