/* ========================================
   SAYAN KABIR — PORTFOLIO
   Design System & Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
  --bg-cream: #FDF6ED;
  --bg-white: #FFFFFF;
  --bg-dark: #1a1a1a;
  --text-primary: #111111;
  --text-secondary: rgba(0, 0, 0, 0.75);
  --text-muted: rgba(0, 0, 0, 0.45);
  --text-white: #FFFFFF;
  --text-white-muted: rgba(255, 255, 255, 0.7);
  --accent-gold: #FFD24C;
  --accent-gold-subtle: rgba(255, 210, 76, 0.07);
  --accent-blue: #4285F4;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-dark: rgba(0, 0, 0, 0.12);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-med: 0.3s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-out);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 10px; }

::selection { background: var(--accent-gold); color: var(--text-primary); }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-med), box-shadow var(--transition-med);
}

.navbar.scrolled {
  background: rgba(253, 246, 237, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border-light);
}

.navbar-logo {
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  padding: 6px 24px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(253, 246, 237, 0.3);
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.navbar-logo:hover { transform: scale(1.03); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 24px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(253, 246, 237, 0.3);
  transition: transform var(--transition-fast);
}
.navbar-links:hover { transform: scale(1.04); }

.nav-link {
  position: relative;
  padding: 6px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1.5px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  transition: width var(--transition-med);
}
.nav-link:hover::after { width: 30px; }

.nav-link .arrow-icon {
  display: inline-block;
  margin-left: 4px;
  transform: scale(0);
  transition: transform 0.15s ease-out;
  font-size: 14px;
}
.nav-link:hover .arrow-icon { transform: scale(1); }

/* Hamburger */
.hamburger {
  display: none;
  padding: 10px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(253, 246, 237, 0.3);
  font-size: 22px;
  cursor: pointer;
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}
.drawer-overlay.active { opacity: 1; pointer-events: all; }

.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100vh;
  background: var(--bg-cream);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
  padding: 40px 24px;
}
.mobile-drawer.active { transform: translateX(0); }

.drawer-title {
  font-family: var(--font-heading);
  font-size: 40px;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.drawer-link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  transition: padding-left var(--transition-fast);
}
.drawer-link:hover { padding-left: 8px; }

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: fixed;
  right: 30px;
  top: 50%; transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(0,0,0,0.25);
  border-radius: 20px;
  cursor: pointer;
  transition: height var(--transition-med), background var(--transition-med);
}
.scroll-dot.active {
  height: 30px;
  background: var(--text-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 80px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 210, 76, 0.2) 0%,
    rgba(255, 210, 76, 0.07) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-image {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  animation: heroImageIn 1s 0.4s var(--ease-out) both;
}

.hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 350px;
  background: linear-gradient(
    to bottom,
    rgba(253,246,237,0.07) 30%,
    rgba(253,246,237,0.4) 40%,
    rgba(253,246,237,0.73) 75%,
    rgba(253,246,237,0.87) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-greeting {
  position: absolute;
  top: 20px;
  left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 80px;
  font-style: italic;
  font-weight: 100;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 1.2px;
  animation: heroGreetingIn 0.7s var(--ease-out) both;
}

.hero-name {
  position: absolute;
  bottom: 20px; left: 50px;
  z-index: 3;
  animation: heroNameIn 0.8s 1s var(--ease-out) both;
}

.hero-name-prefix {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
}

.hero-name h1 {
  font-family: var(--font-heading);
  font-size: 90px;
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1;
}

.hero-socials {
  position: absolute;
  bottom: 40px; right: 50px;
  z-index: 3;
  display: flex;
  gap: 8px;
  animation: heroSocialsIn 0.6s 1.6s var(--ease-out) both;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-primary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.hero-socials a:hover {
  transform: translateY(-3px);
  color: var(--accent-blue);
}

/* Hero Keyframes */
@keyframes heroGreetingIn {
  from { opacity: 0; transform: translateX(-50%) scale(0.4); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes heroImageIn {
  from { opacity: 0; transform: translateX(-50%) scale(1.05); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes heroNameIn {
  from { opacity: 0; transform: translateX(-20%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes heroSocialsIn {
  from { opacity: 0; transform: translateX(20%); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: var(--bg-white);
  padding: 120px 12vw;
  text-align: center;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 100px;
  letter-spacing: 8px;
  color: var(--text-primary);
  margin-bottom: 60px;
}

.bio-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 8px;
  max-width: 900px;
  margin: 0 auto;
}

.bio-normal {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-secondary);
}

.bio-magnified {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  cursor: default;
  transition: transform 0.15s ease-out;
  display: inline-block;
}
.bio-magnified:hover {
  transform: scale(1.05);
  text-decoration: underline;
}

/* Skill Chips */
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 80px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--text-primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: default;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.skill-chip i { font-size: 16px; }
.skill-chip:hover {
  background: var(--text-primary);
  color: var(--bg-white);
}

/* About Footer Actions */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 100px;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 36px;
  background: var(--text-primary);
  color: var(--bg-white);
  border: 2px solid var(--text-primary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.resume-btn:hover {
  background: var(--bg-white);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.about-socials {
  display: flex;
  gap: 25px;
}

.about-socials a {
  font-size: 24px;
  color: var(--text-primary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.about-socials a:hover {
  transform: translateY(-5px);
  color: var(--accent-blue);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 100;
  text-align: center;
  margin-bottom: 50px;
}

/* ========================================
   PROJECTS SECTION — BENTO LAYOUT
   ======================================== */

/* Filter Tabs */
.projects-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Sort Button */
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth), transform 0.2s var(--ease-out);
  white-space: nowrap;
}
.sort-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.sort-btn i {
  font-size: 13px;
  transition: transform 0.3s var(--ease-out);
}
.sort-btn[data-sort="oldest"] i {
  transform: scaleY(-1);
}

/* Year Badge */
.bento-year {
  position: absolute;
  top: 30px;
  left: 72px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.filter-track {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
}

.filter-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 100px;
  background: var(--text-primary);
  transition: left 0.35s var(--ease-out), width 0.35s var(--ease-out);
  z-index: 0;
}

.filter-btn {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.25s var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.filter-btn i { font-size: 13px; }

.filter-btn.active {
  color: var(--bg-white);
}

.filter-btn:not(.active):hover {
  color: var(--text-primary);
}

/* Bento Grid */
.projects-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 32px 24px;
}

.bento-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-light);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.bento-item.hidden {
  display: none;
}

.bento-wide {
  grid-column: span 2;
}

/* Background Layer */
.bento-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  transition: transform 0.5s var(--ease-out), opacity 0.35s var(--ease-out);
}

.bento-item:hover .bento-bg {
  transform: scale(1.05);
  opacity: 0.1;
}

/* App Icon */
.bento-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--ease-out);
}

.bento-item:hover .bento-icon {
  transform: scale(1.08) rotate(-2deg);
}

/* Content */
.bento-content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.bento-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bento-tags span {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

/* Arrow */
.bento-arrow {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-size: 14px;
  transition: background 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), transform 0.3s var(--ease-out);
}

.bento-item:hover .bento-arrow {
  background: var(--text-primary);
  color: var(--bg-white);
  transform: scale(1.1);
}

/* Hover Glow */
.bento-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* In Development Card — Aetherfall */
.bento-in-dev {
  border: 1px solid rgba(106, 17, 203, 0.3);
  background: rgba(15, 12, 41, 0.04);
}
.bento-in-dev .bento-bg {
  opacity: 0.12;
}
.bento-in-dev:hover .bento-bg {
  opacity: 0.2;
}
.bento-in-dev:hover {
  border-color: rgba(106, 17, 203, 0.4);
  box-shadow: 0 20px 60px rgba(106, 17, 203, 0.12);
}

/* ========================================
   SKILLS SECTION — MARQUEE
   ======================================== */
.skills-section { padding-bottom: 40px; overflow: hidden; }

.skills-marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skills-marquee { overflow: hidden; position: relative; }
.skills-marquee::before,
.skills-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.skills-marquee::before { left: 0; background: linear-gradient(to right, var(--bg-cream), transparent); }
.skills-marquee::after { right: 0; background: linear-gradient(to left, var(--bg-cream), transparent); }

.skills-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-left 35s linear infinite;
}
.skills-marquee[data-direction="right"] .skills-marquee-track {
  animation: marquee-right 35s linear infinite;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-skill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  cursor: default;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}
.marquee-skill:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--accent-gold);
  transform: scale(1.06);
}
.marquee-skill img { width: 32px; height: 32px; object-fit: contain; }
.marquee-skill span { font-size: 15px; font-weight: 600; color: var(--text-secondary); }

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  background: var(--bg-cream);
  padding: 120px 40px;
  text-align: center;
  color: var(--text-primary);
}

.contact-inner { max-width: 700px; margin: 0 auto; }

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.label-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: inline-block;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-highlight {
  background: linear-gradient(90deg, #c4941a, #e6a820);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.contact-btn:hover { transform: translateY(-3px); }

.contact-btn.primary {
  background: var(--text-primary);
  color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.contact-btn.primary:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.18); }

.contact-btn.secondary {
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
}
.contact-btn.secondary:hover { background: rgba(0,0,0,0.08); }

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.contact-socials a {
  font-size: 22px;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.contact-socials a:hover { color: var(--text-primary); transform: translateY(-3px); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: rgba(0, 0, 0, 0.02);
  padding: 40px;
  text-align: center;
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
}

.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--bg-white);
  font-weight: 700;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 18px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.footer-socials a:hover {
  transform: translateY(-3px);
  color: var(--text-primary);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger > .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.stagger > .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.stagger > .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.stagger > .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.stagger > .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }
.stagger > .animate-on-scroll:nth-child(7) { transition-delay: 480ms; }
.stagger > .animate-on-scroll:nth-child(8) { transition-delay: 560ms; }
.stagger > .animate-on-scroll:nth-child(9) { transition-delay: 640ms; }

/* ========================================
   PROJECT DETAIL PAGES
   ======================================== */
.project-page {
  background: var(--bg-cream);
  min-height: 100vh;
  padding: 32px 40px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 30px;
  transition: gap var(--transition-fast);
}
.project-back:hover { gap: 12px; }

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.project-header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  min-width: 0;
}

.project-logo {
  width: 80px; height: 80px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 1.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.project-action-btn:hover { transform: scale(1.08); }
.project-action-btn img { height: 40px; width: 40px; object-fit: contain; }
.project-action-btn.large img { height: 70px; width: 70px; }
.project-action-btn i { font-size: 40px; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tech-tag {
  padding: 6px 14px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.project-description {
  font-size: 18px;
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 30px;
}

.project-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.project-gallery::-webkit-scrollbar { height: 4px; }
.project-gallery::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }

.project-gallery img {
  width: 250px;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform var(--transition-fast);
}
.project-gallery img:hover { transform: scale(1.02); }

/* Desktop mockup for homepage project */
.project-gallery-desktop img {
  width: 600px;
  height: 360px;
}

/* ========================================
   SECTION DIVIDERS & NEW ELEMENTS
   ======================================== */
.section-divider {
  height: 1px;
  max-width: 200px;
  margin: 80px auto;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroSocialsIn 0.6s 2s var(--ease-out) both;
}
.hero-scroll-hint span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* About Label */
.about-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ========================================
   RESPONSIVE — TABLET (650px - 1100px)
   ======================================== */
@media (max-width: 1100px) {
  .scroll-indicator { display: none; }

  .hero-greeting { font-size: 60px; }
  .hero-name-prefix { font-size: 24px; }
  .hero-name h1 { font-size: 70px; }

  .about { padding: 100px 8vw; }
  .about-title { font-size: 80px; }

  .projects-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }

  .contact-title { font-size: 56px; }
  .project-title { font-size: 40px; }
}

/* ========================================
   RESPONSIVE — MOBILE (<650px)
   ======================================== */
@media (max-width: 650px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .scroll-indicator { display: none; }

  /* Hero */
  .hero { height: 85vh; min-height: 500px; }
  .hero-greeting { font-size: 36px; }
  .hero-name { bottom: 100px; left: 24px; }
  .hero-name-prefix { font-size: 18px; }
  .hero-name h1 { font-size: 45px; letter-spacing: 2px; }
  .hero-socials { bottom: 30px; right: auto; left: 24px; }
  .hero-scroll-hint { display: none; }

  /* About */
  .about { padding: 60px 24px; }
  .about-title { font-size: 50px; letter-spacing: 4px; }
  .bio-normal { font-size: 16px; }
  .bio-magnified { font-size: 16px; }
  .skill-chips { margin-top: 50px; }
  .about-actions { margin-top: 60px; gap: 30px; }
  .resume-btn { padding: 18px 28px; }

  /* Sections */
  .section-header { font-size: 42px; margin-bottom: 30px; }
  .section-divider { margin: 50px auto; }

  /* Projects */
  .projects-bento { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .bento-wide { grid-column: span 1; }
  .bento-item { min-height: 220px; }
  .bento-title { font-size: 28px; }
  .bento-icon { width: 44px; height: 44px; top: 16px; right: 16px; }
  .filter-btn { padding: 8px 16px; font-size: 13px; }
  .filter-btn i { display: none; }

  /* Skills Marquee */
  .skills-marquee::before, .skills-marquee::after { width: 40px; }
  .marquee-skill { padding: 12px 20px; }
  .marquee-skill img { width: 24px; height: 24px; }
  .marquee-skill span { font-size: 13px; }

  /* Contact */
  .contact { padding: 80px 24px; }
  .contact-title { font-size: 42px; }
  .contact-subtitle { font-size: 15px; }
  .contact-btn { padding: 14px 24px; font-size: 14px; }

  /* Project Pages */
  .project-page { padding: 24px 20px; }
  .project-header { flex-direction: column; align-items: flex-start; }
  .project-header-left { gap: 16px; }
  .project-logo { width: 60px; height: 60px; }
  .project-title { font-size: 36px; }
  .project-description { font-size: 16px; }
  .project-gallery img { width: 200px; height: 400px; }
}
