/* ================================================================
   SUDIP GHOSH — PERSONAL WEBSITE
   style.css — Premium dark theme, glassmorphism, all animations
   ================================================================ */

/* ================================================================
   1. CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* Colors */
  --bg:           #050505;
  --bg-alt:       #0a0a0a;
  --surface:      rgba(255, 255, 255, 0.03);
  --surface-h:    rgba(255, 255, 255, 0.06);
  --blue:         #4F8CFF;
  --blue-dim:     rgba(79, 140, 255, 0.15);
  --blue-glow:    rgba(79, 140, 255, 0.25);
  --white:        #ffffff;
  --gray-1:       rgba(255, 255, 255, 0.88);
  --gray-2:       rgba(255, 255, 255, 0.60);
  --gray-3:       rgba(255, 255, 255, 0.35);
  --gray-4:       rgba(255, 255, 255, 0.10);
  --border:       rgba(255, 255, 255, 0.06);
  --border-h:     rgba(255, 255, 255, 0.12);

  /* Typography */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py:   120px;
  --max-w:        1200px;
  --side-pad:     clamp(20px, 5vw, 80px);

  /* Radius */
  --r-sm:         8px;
  --r-md:         14px;
  --r-lg:         20px;
  --r-xl:         28px;

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--gray-1);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* Hide default cursor on interactive elements */
a, button, input, textarea, [role="button"] {
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

em {
  font-style: italic;
  color: var(--white);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(79, 140, 255, 0.4);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ================================================================
   3. LOADING SCREEN
   ================================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader-name {
  display: flex;
  gap: 0;
  letter-spacing: 0.22em;
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
}

.loader-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.loader-name span.visible {
  opacity: 1;
  transform: translateY(0);
}

.loader-gap { width: 0.35em; }

.loader-bar-track {
  width: 200px;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 1px;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--blue-glow);
}

.loader-percent {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gray-3);
  text-transform: uppercase;
}

/* ================================================================
   4. CUSTOM CURSOR
   ================================================================ */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
}

body.cursor-hover #cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--white);
}

body.cursor-hover #cursor-glow {
  width: 60px;
  height: 60px;
  border-color: rgba(79, 140, 255, 0.2);
}

/* ================================================================
   5. SCROLL PROGRESS BAR
   ================================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(79, 140, 255, 0.6) 100%);
  z-index: 9996;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--blue-glow);
}

/* ================================================================
   6. PARTICLES CANVAS
   ================================================================ */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ================================================================
   7. BACKGROUND BLOBS
   ================================================================ */
.blobs-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  will-change: transform;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4F8CFF 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: blobFloat1 18s ease-in-out infinite;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7B5CF0 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
  animation: blobFloat2 22s ease-in-out infinite;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #4F8CFF 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobFloat3 25s ease-in-out infinite;
}

/* ================================================================
   8. NAVIGATION
   ================================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

#navbar.scrolled {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--side-pad);
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.2s;
}

.nav-logo:hover { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.active { color: var(--white); }

.nav-cta {
  margin-left: 0;
  font-size: 13px;
  padding: 8px 20px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gray-2);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s, width 0.35s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 var(--side-pad) 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  max-height: 300px;
  padding-bottom: 24px;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu .nav-link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link:last-child { border-bottom: none; }

/* ================================================================
   9. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring),
              box-shadow 0.25s var(--ease),
              background 0.2s, border-color 0.2s, color 0.2s;
  will-change: transform;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn:hover::after { background: rgba(255,255,255,0.05); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 0 transparent;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--blue-glow), 0 8px 24px rgba(79, 140, 255, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gray-1);
  border: 1px solid var(--border-h);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-1);
  border: 1px solid var(--border);
  padding: 9px 20px;
}

.btn-ghost:hover {
  border-color: var(--border-h);
  color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   10. GLASS CARD BASE
   ================================================================ */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color 0.3s var(--ease),
              transform 0.35s var(--ease-spring),
              box-shadow 0.35s var(--ease);
}

.glass-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

/* ================================================================
   11. SECTION SHARED STYLES
   ================================================================ */
.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) var(--side-pad);
}

.section-head {
  margin-bottom: 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--gray-3);
  font-weight: 400;
  max-width: 500px;
}

/* ================================================================
   12. HERO SECTION
   ================================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--side-pad);
  overflow: hidden;
}

/* Radial glow in hero background */
#hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 30%, rgba(79, 140, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 620px;
}

/* Hero Avatar */
.hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(79, 140, 255, 0.45);
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.08), 0 0 24px rgba(79, 140, 255, 0.18);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
}

.hero-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(79, 140, 255, 0.12), 0 0 32px rgba(79, 140, 255, 0.28);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(79, 140, 255, 0.28);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(79, 140, 255, 0.9);
  margin-bottom: 28px;
  background: rgba(79, 140, 255, 0.06);
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue-glow);
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* Hero name */
.hero-name {
  font-size: clamp(60px, 9vw, 100px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin-bottom: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #c8d9ff 80%, #a0bcff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name .line-1, .hero-name .line-2 {
  display: block;
}

/* Role typing */
.hero-role {
  display: flex;
  align-items: center;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--gray-2);
  margin-bottom: 22px;
  min-height: 32px;
}

.role-typed {
  font-weight: 600;
  color: var(--white);
}

.role-cursor {
  color: var(--blue);
  font-weight: 300;
  animation: blinkCursor 0.9s step-end infinite;
  margin-left: 1px;
}

/* Hero description */
.hero-desc {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

/* CTA group */
.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border-h);
}

/* Hero image */
.hero-img-col {
  position: relative;
  flex-shrink: 0;
}

.hero-img-frame {
  position: relative;
  width: 360px;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.hero-img-frame:hover .hero-img {
  transform: scale(1.03);
}

.hero-img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(5, 5, 5, 0.5) 100%
  );
  pointer-events: none;
}

/* Floating card on hero image */
.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatBadge 4s ease-in-out infinite;
}

.hfc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.hfc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.hfc-sub {
  font-size: 11px;
  color: var(--gray-3);
  margin-top: 1px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: fadeInUp 1.2s 2s var(--ease) forwards;
}

.scroll-hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gray-2));
  animation: scrollLine 2s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-3);
}

/* ================================================================
   13. ABOUT SECTION
   ================================================================ */
#about {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.about-img-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.about-img-frame:hover .about-img { transform: scale(1.04); }

.about-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-2);
}

.about-p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-2);
  margin-bottom: 20px;
}

.about-p em { color: var(--white); }

.about-highlights {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--gray-2);
  font-weight: 500;
}

.h-icon {
  font-size: 17px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--surface-h);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   14. JOURNEY / TIMELINE
   ================================================================ */
#journey { position: relative; z-index: 1; }

.timeline {
  position: relative;
  padding-left: 60px;
  max-width: 720px;
}

.tl-line {
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--blue) 0%,
    rgba(79, 140, 255, 0.3) 85%,
    transparent 100%
  );
}

.tl-item {
  position: relative;
  padding-bottom: 44px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -51px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 140, 255, 0.4);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tl-dot-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.tl-item:hover .tl-dot,
.tl-dot-active {
  border-color: var(--blue) !important;
  box-shadow: 0 0 14px var(--blue-glow);
}

.tl-item:hover .tl-dot-core,
.tl-dot-active .tl-dot-core {
  opacity: 1;
  animation: pulseDot 2s ease-in-out infinite;
}

.tl-card {
  padding: 24px 28px;
  border-radius: var(--r-lg);
}

.tl-card-active {
  border-color: rgba(79, 140, 255, 0.2) !important;
  background: rgba(79, 140, 255, 0.04) !important;
}

.tl-year {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.tl-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}

.tl-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-2);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.05em;
}

/* ================================================================
   15. WHAT I'M BUILDING
   ================================================================ */
#building { position: relative; z-index: 1; }

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.build-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition-delay: var(--delay, 0ms);
}

/* Shimmer on hover */
.build-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s var(--ease);
}

.build-card:hover::before { left: 140%; }

.bc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.bc-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bc-logo-brown { background: #8B4513; }
.bc-logo-dark  { background: #0d0d0d; }
.bc-logo-hustler {
  background: linear-gradient(135deg, rgba(79,140,255,0.15) 0%, rgba(79,140,255,0.05) 100%);
  border-color: rgba(79,140,255,0.2) !important;
  color: var(--blue);
}

.bc-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.bc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.bc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-h);
  border: 1px solid var(--border);
  color: var(--gray-2);
}

.bc-badge-green {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.bc-badge-blue {
  background: var(--blue-dim);
  border-color: rgba(79, 140, 255, 0.25);
  color: #93bbff;
}

.bc-badge-amber {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fbbf24;
}

/* F6S icon */
.c-icon-f6s {
  font-size: 0;
}
.f6s-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-2);
  letter-spacing: -0.03em;
  font-family: var(--font);
  transition: color 0.2s;
}
.c-link:hover .f6s-text { color: var(--blue); }

.bc-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.bc-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.bc-desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--gray-2);
  flex: 1;
  margin-bottom: 20px;
}

.bc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-3);
  background: var(--surface-h);
  border: 1px solid var(--border);
}

.bc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
  transition: gap 0.25s var(--ease), color 0.2s;
}

.bc-cta:hover {
  gap: 12px;
  color: #80aaff;
}

/* ================================================================
   16. GALLERY SECTION
   ================================================================ */
#gallery { position: relative; z-index: 1; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 14px;
}

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  cursor: pointer;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}

.gal-item:hover img { transform: scale(1.07); }

/* gallery-4 (tall) spans 2 rows — right col fills naturally with 2 items */
.gal-tall {
  grid-row: 1 / 3;
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

.gal-overlay span {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ================================================================
   17. QUOTE SECTION
   ================================================================ */
#quote {
  position: relative;
  z-index: 1;
  padding: 0 var(--side-pad);
  overflow: hidden;
}

#quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(79, 140, 255, 0.05) 0%, transparent 65%);
}

.quote-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.quote-mark-dec {
  font-size: 180px;
  font-weight: 900;
  line-height: 0.5;
  color: rgba(79, 140, 255, 0.12);
  font-family: Georgia, serif;
  margin-bottom: 20px;
  user-select: none;
}

.quote-text {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--gray-1);
  font-style: normal;
  max-width: 820px;
  margin: 0 auto 28px;
}

.quote-text em {
  color: var(--blue);
  font-style: italic;
}

.quote-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-3);
  letter-spacing: 0.04em;
  font-style: normal;
}

/* ================================================================
   18. CONTACT SECTION
   ================================================================ */
#contact { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

/* Contact link rows */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s var(--ease),
              background 0.3s var(--ease),
              transform 0.3s var(--ease-spring);
  text-decoration: none;
}

.c-link:hover {
  border-color: var(--border-h);
  background: var(--surface-h);
  transform: translateX(6px);
}

.c-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--surface-h);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-2);
  transition: background 0.3s, border-color 0.3s;
}

.c-icon svg { width: 18px; height: 18px; }

.c-link:hover .c-icon {
  background: var(--blue-dim);
  border-color: rgba(79, 140, 255, 0.25);
  color: var(--blue);
}

.c-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.c-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-1);
}

.c-arrow {
  width: 16px;
  height: 16px;
  color: var(--gray-3);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.c-link:hover .c-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* CTA card */
.cta-box {
  padding: 32px;
}

.cta-box-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.cta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-2);
}

.cta-list li svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ================================================================
   19. FOOTER
   ================================================================ */
#footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-3);
}

.footer-right {
  font-size: 13px;
  color: var(--gray-3);
}

/* ================================================================
   20. REVEAL / SCROLL ANIMATIONS
   ================================================================ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-tl {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.75s var(--ease-out),
              transform 0.75s var(--ease-out);
}

/* Stagger by data attribute */
.reveal-up   { transform: translateY(36px); }
.reveal-left { transform: translateX(-36px); }
.reveal-right{ transform: translateX(36px); }
.reveal-tl   { transform: translateX(-20px); }

/* Apply delay from style --delay */
[style*="--delay"] {
  transition-delay: var(--delay, 0ms);
}

.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-tl.in-view {
  opacity: 1;
  transform: none;
}

/* ================================================================
   21. CSS KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 60px) scale(1.05); }
  66%       { transform: translate(60px, -30px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(50px, -70px) scale(1.08); }
  66%       { transform: translate(-30px, 50px) scale(0.92); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 0.08; }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.5); }
  60%       { box-shadow: 0 0 0 8px rgba(79, 140, 255, 0); }
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 0.4; transform: translateX(-50%) translateY(0); }
}

/* ================================================================
   22. RESPONSIVE — TABLET (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 90px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 52px;
  }

  .hero-content { max-width: 100%; }

  .hero-name {
    font-size: clamp(54px, 10vw, 80px);
  }

  .hero-role, .hero-cta-wrap, .hero-stats {
    justify-content: center;
  }

  .hero-img-col { order: -1; }

  .hero-img-frame {
    width: 300px;
    height: 400px;
  }

  .hero-float-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }

  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* No last-child override needed — 4 cards sit in 2×2 naturally */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-col {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ================================================================
   23. RESPONSIVE — MOBILE (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --section-py: 70px;
  }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Hero */
  .hero-img-frame { width: 260px; height: 340px; }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-cta-wrap { flex-direction: column; align-items: center; }
  .hero-cta-wrap .btn { width: 100%; justify-content: center; }

  /* Build grid — single column on mobile */
  .build-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gal-tall { grid-row: auto; }

  /* Quote */
  .quote-mark-dec { font-size: 100px; }

  .quote-text {
    font-size: clamp(20px, 5vw, 28px);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Timeline */
  .timeline { padding-left: 44px; }

  /* Section head */
  .section-head { margin-bottom: 44px; }
}

/* ================================================================
   24. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  .hero-name { font-size: clamp(48px, 13vw, 64px); }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 220px);
  }

  .hero-img-frame { width: 220px; height: 290px; }

  .bc-top { flex-direction: column; gap: 12px; }
  .bc-badges { justify-content: flex-start; }
}
