:root {
  --bg: #fff7fb;
  --text: #2a2340;
  --muted: #6b6780;
  --card: #ffffff;
  --border: #f0e6f4;
  --accent: #ff77b0;
  --lav: #cdb4ff;
  --shadow: 0 20px 60px rgba(205, 180, 255, .22);
}

* { box-sizing: border-box }
html { 
  margin: 0;
  scroll-behavior: smooth; /* Added for smooth scrolling */
}
body { 
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(600px 240px at 85% -80px, #f1e8ff 0, transparent 60%),
    radial-gradient(800px 260px at 20% -40px, #ffe2f1 0, transparent 60%),
    linear-gradient(180deg, #fff7fb 0%, #fdeff7 60%, #fff 100%);
}

a { color: inherit; text-decoration: none }
.wrap { max-width: 1160px; margin: 0 auto; padding: 22px }

/* ==== UPDATED NAVBAR STYLES ==== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 30px; /* Increased bottom spacing */
  position: relative; 
}
.nav-brand {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--lav));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-menu li a:hover {
  color: var(--accent);
}

/* --- Mobile Menu Toggle ("Hamburger") --- */
.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 9px;
  transition: all 0.3s;
}
.nav-toggle span + span {
  margin-top: 5px;
}
/* --- End Mobile Menu Toggle --- */

/* --- Mobile Menu Styles (Media Query) --- */
@media (max-width: 900px) {
  .nav-menu {
    display: none; /* Hide by default */
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px); /* Position below navbar */
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    z-index: 1000;
  }
  .nav-menu.is-active {
    display: flex; /* Show when active */
  }
  .nav-menu li a {
    display: block; /* Make links full width */
    padding: 10px;
  }
  .nav-toggle {
    display: block; /* Show hamburger button */
  }
}
/* ==== END NAVBAR STYLES ==== */


/* Buttons */
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px }
.btn { padding: 12px 18px; border-radius: 14px; border: 1px solid var(--border); font-weight: 700; background: #fff }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--lav)); color: #fff; border: none; box-shadow: 0 10px 30px rgba(255,119,176,.25) }

/* Hero */
header.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center }
@media (max-width:900px){
  header.hero { grid-template-columns: 1fr; }
  header.hero > div.hero-content { order: 2; } /* Text block */
  header.hero > .card.hero-image-card { order: 1; } /* Image card */
}
.hi { color: #7b6e92; margin: 6px 0 2px }
.title { font-size: clamp(32px, 5.8vw, 60px); line-height: 1.04; margin: 4px 0 10px }
.role { font-weight: 800; color: #6e5fa0; margin-bottom: 8px }
.desc { color: var(--muted); max-width: 60ch }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 16px; box-shadow: var(--shadow) }
.hero-img { border-radius: 18px; aspect-ratio: 1/1; object-fit: cover; width: 100% }

.info { display: flex; gap: 14px; flex-wrap: wrap; color: #7b6e92; font-size: 14px; margin-top: 10px }
.info span { display: inline-flex; align-items: center; gap: 6px }

/* ==== NEW HERO ANIMATION ==== */
.hero-content, .hero-image-card {
  opacity: 0; /* Start hidden */
  transform: translateY(30px);
  animation: hero-fade-in 0.8s ease-out 0.1s forwards; /* 0.1s delay */
}
.hero-image-card {
  animation-delay: 0.3s; /* Image card fades in after text */
}
@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==== END HERO ANIMATION ==== */


/* Section titles */
.section-title { font-size: 26px; margin: 34px 0 14px }

/* Social Grid */
.soc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 16px; }
@media (max-width:1000px){ .soc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:600px){ .soc-grid { grid-template-columns: 1fr; } }

.soc-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; text-align: center;
  box-shadow: 0 8px 20px rgba(205, 180, 255, .2); transition: transform .2s ease, box-shadow .2s ease;
}
.soc-card:hover { transform: translateY(-6px); box-shadow: 0 14px 35px rgba(205, 180, 255, .3) }
.soc-icon img { width: 32px; height: 32px; margin-bottom: 8px; filter: invert(47%) sepia(66%) saturate(343%) hue-rotate(245deg) brightness(90%) contrast(95%) }
.soc-title { font-weight: 800; margin-bottom: 6px }
.soc-count { font-size: 20px; font-weight: 700; color: #4a3e66 }
.soc-count span { font-size: 12px; font-weight: 600; color: #8b86a0; margin-left: 6px }
.soc-cta { display: inline-block; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--lav)); color: #fff; font-weight: 700 }

/* Reels (card base) */
.reel-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px;
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; box-shadow: var(--shadow)
}
.reel-card .thumb { position: absolute; inset: 0; background: #fbe6f2 center/cover no-repeat; filter: saturate(1.03) contrast(1.02) }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%) }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #7b6e92; z-index: 2 }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 46px; background: linear-gradient(135deg, var(--accent), var(--lav)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 18px rgba(255,119,176,.6)); z-index: 1 }
.reel-title { font-weight: 800; margin-top: auto; color: #fff; z-index: 2 }
.reel-meta { color: #e8daf1; font-size: 12px; z-index: 2 }

/* Swiper coverflow tweaks */
.reels-swiper { width: 100%; padding: 18px 0 34px; }
.reels-swiper .swiper-wrapper { align-items: stretch; }
.reels-swiper .swiper-slide { width: 280px; height: 340px; border-radius: 18px; padding: 0; filter: blur(1px); }
.reels-swiper .swiper-slide.swiper-slide-active { filter: none; }
.reels-swiper .swiper-pagination-bullet,
.reels-swiper .swiper-pagination-bullet-active { background: #fff; opacity: 1; }

@media (max-width:560px){
  .reels-swiper .swiper-slide{ width: 86vw; height: 320px; }
}

/* Cards & Skills */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px }
@media (max-width:900px){ .grid2 { grid-template-columns: 1fr } }
.exp-stack { display: flex; flex-direction: column; gap: 18px }
.cardish { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow) }
.exp-title { font-weight: 800; margin-bottom: 8px }
.exp-sub { color: #7b6e92; margin: -2px 0 10px; font-size: 14px }
.cardish ul { margin: 0 0 0 18px; color: #6b6780; line-height: 1.6 }

.skill { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow) }
.skill-top { display: flex; justify-content: space-between; font-weight: 800; color: #463a66 }
.bar { height: 10px; border-radius: 999px; background: #f3eaff; margin-top: 10px; overflow: hidden; border: 1px solid #eadbff }
.fill { height: 100%; background: linear-gradient(90deg, #ffa1cd, #cdb4ff) }

footer { text-align: center; color: #7b6e92; margin: 46px 0 30px; font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif; }
footer a { color: inherit; text-decoration: none; font-weight: 600; }

/* ==== Event Gallery (masonry + lightbox) ==== */
.gallery-grid{
  column-count: 3;
  column-gap: 16px;
}
@media (max-width:1000px){ .gallery-grid{ column-count: 2; } }
@media (max-width:600px){ .gallery-grid{ column-count: 1; } }

.gallery-item{
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  break-inside: avoid;
}
.gallery-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(205,180,255,.3);
}
.gallery-item img{
  width: 100%;
  height: auto;
  display: block;
}

/* FB link buttons under gallery */
.gallery-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.gallery-links .btn.fb{
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--lav));
  color: #fff;
  border: none;
}

/* Lightbox overlay */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 35, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open{ display: flex; }

.lightbox img{
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border: 1px solid var(--border);
  background: #000;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 42px;
  text-align: center;
  color: #5a4b87;
  box-shadow: var(--shadow);
}
.lightbox-close{ top: 20px; right: 24px; }
.lightbox-prev{ left: 24px; }
.lightbox-next{ right: 24px; }

@media (max-width:600px){
  .lightbox-prev{ left: 12px; }
  .lightbox-next{ right: 12px; }
}

/* ==== ORIGINAL SCROLL ANIMATION (FOR SECTIONS) ==== */
/* This will now work correctly as the JS bug is fixed */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
