/* ═══════════════════════════════════════
   PREETH NAIR — PORTFOLIO STYLESHEET
   Gradient Colour · Deep Glassmorphism · Aurora
   ═══════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --color-gold:    #8A7650;
  --color-sage:    #8E977D;
  --color-cream:   #ECE7D1;
  --color-sand:    #DBCEA5;
  --color-bg:      #07090f;
  --color-surface: #0d1120;

  /* Gradient stops */
  --g-gold-1:  #c9a84c;
  --g-gold-2:  #8A7650;
  --g-gold-3:  #5c4e34;
  --g-amber:   #e8b86d;
  --g-teal:    #4ecdc4;
  --g-violet:  #7c5cbf;
  --g-rose:    #c47b6b;
  --g-sage:    #8E977D;

  /* Gradient shorthands */
  --grad-gold:    linear-gradient(135deg, var(--g-amber) 0%, var(--g-gold-2) 50%, var(--g-gold-3) 100%);
  --grad-text:    linear-gradient(135deg, var(--g-amber) 0%, var(--g-gold-1) 40%, var(--g-rose) 100%);
  --grad-aurora:  linear-gradient(135deg, var(--g-violet) 0%, var(--g-gold-2) 50%, var(--g-teal) 100%);
  --grad-card:    linear-gradient(145deg, rgba(201,168,76,0.07) 0%, rgba(126,92,191,0.05) 50%, rgba(78,205,196,0.04) 100%);
  --grad-btn:     linear-gradient(135deg, var(--g-amber) 0%, var(--g-gold-2) 60%, var(--g-gold-3) 100%);

  /* Glow */
  --glow-gold:    rgba(201, 168, 76, 0.55);
  --glow-gold-sm: rgba(201, 168, 76, 0.18);
  --glow-violet:  rgba(124, 92, 191, 0.35);
  --glow-teal:    rgba(78, 205, 196, 0.25);

  /* Glass */
  --glass-bg:      rgba(255, 255, 255, 0.035);
  --glass-bg-md:   rgba(255, 255, 255, 0.06);
  --glass-border:  rgba(201, 168, 76, 0.18);
  --glass-blur:    blur(18px);
  --glass-blur-sm: blur(10px);

  --sand-border: rgba(219, 206, 165, 0.14);

  --font-family: 'Inter', sans-serif;
  --font-body:    'OCR A Std', monospace;


  --nav-h:    72px;
  --max-w:    1240px;
  --radius:   18px;
  --radius-sm: 10px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--g-amber), var(--g-gold-2));
  border-radius: 3px;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Aurora body blobs ── */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 18s ease-in-out infinite alternate;
}
body::before {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(124,92,191,0.12) 0%, transparent 70%);
}
body::after {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  animation-delay: -9s;
}
@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,30px) scale(1.08); }
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease-in-out),
              backdrop-filter 0.4s,
              box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(219,206,165,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-text);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--glow-gold);
  transition: width 0.35s var(--ease-out-expo);
}
.nav-link:hover, .nav-link.active { color: var(--color-cream); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; z-index: 110; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--g-amber), var(--g-teal));
  border-radius: 2px;
  transition: transform 0.3s var(--ease-in-out), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(124,92,191,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(201,168,76,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(78,205,196,0.07) 0%, transparent 60%),
    var(--color-bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 80%);
}
#particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
}

.hero-eyebrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}
.hero-eyebrow-welcome {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-eyebrow-iam {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f5e6c0 0%, var(--g-amber) 35%, var(--color-cream) 65%, var(--g-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  opacity: 0;
  animation:
    fadeUp 0.9s var(--ease-out-expo) 0.35s forwards,
    shimmer 6s linear 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-typewriter {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 400;
  color: rgba(219,206,165,0.65);
  margin-bottom: 1.5rem;
  height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.5s forwards;
}
.typewriter-prefix { color: rgba(219,206,165,0.45); }
#typewriter-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.typewriter-cursor {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 200;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(219,206,165,0.45);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.65s forwards;
}

.hero-cta {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.8s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
  z-index: 3; opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}
.hero-scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--g-amber), var(--g-teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform:scaleY(1); opacity:0.9; }
  50%     { transform:scaleY(0.55); opacity:0.3; }
}



/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s var(--ease-out-expo);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--grad-btn);
  color: #1a1208;
  box-shadow: 0 0 22px rgba(201,168,76,0.35), 0 4px 16px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(201,168,76,0.6), 0 0 64px rgba(201,168,76,0.2), 0 8px 24px rgba(0,0,0,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: rgba(255,255,255,0.03);
  color: var(--g-amber);
  box-shadow: inset 0 0 0 1.5px rgba(201,168,76,0.45), 0 0 12px rgba(201,168,76,0.1);
}
.btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(201,168,76,0.08);
  box-shadow: inset 0 0 0 1.5px rgba(201,168,76,0.8), 0 0 24px rgba(201,168,76,0.4), 0 0 48px rgba(201,168,76,0.15);
}

.btn-large { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-full  { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════ */
section { padding: 6.5rem 0; position: relative; z-index: 1; }

.section-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.12;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--g-amber) 50%, var(--color-cream) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-heading em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 0.97rem;
  color: rgba(219,206,165,0.45);
  margin-bottom: 3.5rem;
  max-width: 500px;
}

/* ═══════════════════════════════════════
   GLASSMORPHISM CARDS — gradient borders
   ═══════════════════════════════════════ */
.glass-card {
  background: var(--grad-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radius);
  position: relative;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}
/* Gradient border via pseudo mask */
.glass-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(201,168,76,0.38) 0%,
    rgba(124,92,191,0.16) 40%,
    rgba(78,205,196,0.22) 80%,
    rgba(201,168,76,0.12) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Inner radial highlight */
.glass-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(ellipse 80% 60% at 20% 15%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.4),
    0 0 22px rgba(201,168,76,0.35),
    0 0 55px rgba(201,168,76,0.12),
    0 0 22px rgba(124,92,191,0.15),
    0 18px 50px rgba(0,0,0,0.55);
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
  background:
    radial-gradient(ellipse 70% 50% at 90% 50%, rgba(124,92,191,0.07) 0%, transparent 60%),
    var(--color-surface);
}
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }

.about-para { color: rgba(219,206,165,0.65); font-size: 0.96rem; margin-bottom: 1.3rem; max-width: 540px; }
.about-para strong {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.about-stack { margin: 1.75rem 0; }
.stack-label {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}
.stack-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack-pill {
  font-size: 0.78rem; font-weight: 500;
  padding: 0.32rem 0.9rem; border-radius: 100px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--g-amber);
  letter-spacing: 0.03em;
  transition: background 0.25s, box-shadow 0.25s;
}
.stack-pill:hover { background: rgba(201,168,76,0.15); box-shadow: 0 0 10px rgba(201,168,76,0.3); }

.about-goal {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.9rem; color: rgba(219,206,165,0.6);
  font-style: italic;
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(201,168,76,0.06) 0%, rgba(124,92,191,0.04) 100%);
  border-left: 2px solid var(--g-amber);
  margin-top: 1.5rem;
}
.goal-icon {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}

/* About image */
.about-image-wrap { position: relative; display: flex; justify-content: center; align-items: center; }

.about-image-ring {
  position: absolute;
  width: 295px; height: 295px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
              linear-gradient(135deg, rgba(201,168,76,0.5), rgba(124,92,191,0.3), rgba(78,205,196,0.4)) border-box;
  animation: ringPulse 4.5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { transform:scale(1); opacity:0.6; box-shadow: 0 0 20px rgba(201,168,76,0.15); }
  50%     { transform:scale(1.04); opacity:1; box-shadow: 0 0 40px rgba(201,168,76,0.3), 0 0 60px rgba(124,92,191,0.15); }
}

.about-image-container {
  width: 260px; height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
              linear-gradient(135deg, var(--g-amber), var(--g-violet), var(--g-teal)) border-box;
  box-shadow:
    0 0 28px rgba(201,168,76,0.4),
    0 0 60px rgba(201,168,76,0.12),
    0 0 24px rgba(124,92,191,0.2);
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.about-img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.img-fallback-content { position:absolute; inset:0; display:none; align-items:center; justify-content:center; }
.fallback-initials {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-image-container.img-fallback .about-img { display: none; }
.about-image-deco {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,191,0.22) 0%, transparent 70%);
  bottom: -20px; right: calc(50% - 185px);
  z-index: 1; filter: blur(20px);
}

/* ═══════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════ */
.projects {
  background:
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(78,205,196,0.05) 0%, transparent 60%),
    var(--color-bg);
}
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.project-card { padding: 2.25rem; display: flex; flex-direction: column; gap: 1.25rem; cursor: default; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-number {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700; line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(124,92,191,0.12));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.35s;
}
.project-card:hover .card-number {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-github-link { color: rgba(219,206,165,0.3); transition: color 0.25s, transform 0.25s; padding: 4px; }
.card-github-link:hover { color: var(--g-amber); transform: translateY(-2px); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  background: linear-gradient(135deg, var(--color-cream) 0%, rgba(232,184,109,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem; line-height: 1.3;
}
.card-desc { font-size: 0.9rem; color: rgba(219,206,165,0.55); line-height: 1.75; }
.card-desc strong {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.card-footer { margin-top: auto; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em;
  padding: 0.28rem 0.78rem; border-radius: 100px;
  background: rgba(142,151,125,0.1);
  border: 1px solid rgba(142,151,125,0.28);
  color: var(--color-sage);
  transition: all 0.25s;
}
.project-card:hover .tag {
  background: rgba(142,151,125,0.18);
  border-color: rgba(142,151,125,0.5);
  box-shadow: 0 0 10px rgba(142,151,125,0.2);
}

/* ═══════════════════════════════════════
   SKILLS — BUBBLE LAYOUT
   ═══════════════════════════════════════ */
.skills {
  background:
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(201,168,76,0.06) 0%, transparent 60%),
    var(--color-surface);
}

.bubble-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(219,206,165,0.5);
  letter-spacing: 0.05em;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid;
}
.ld-gold   { background: rgba(138,118,80,0.35);   border-color: rgba(201,168,76,0.7); }
.ld-teal   { background: rgba(78,205,196,0.25);   border-color: rgba(78,205,196,0.7); }
.ld-violet { background: rgba(124,92,191,0.25);   border-color: rgba(124,92,191,0.7); }
.ld-sage   { background: rgba(142,151,125,0.25);  border-color: rgba(142,151,125,0.7); }

.bubble-wrap {
  position: relative;
  width: 100%;
  height: 720px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  border: 1.5px solid;
}
.bubble:hover {
  transform: scale(1.09);
  z-index: 10;
}
.bubble .bname {
  font-weight: 600;
  line-height: 1.2;
  padding: 0 8px;
}
.bubble .blevel {
  font-size: 0.65rem;
  margin-top: 5px;
  opacity: 0.7;
  letter-spacing: 0.03em;
}

.b-gold {
  background: rgba(138,118,80,0.18);
  border-color: rgba(201,168,76,0.55);
  color: #e8b86d;
  box-shadow: 0 0 18px rgba(201,168,76,0.12);
}
.b-gold:hover { box-shadow: 0 0 32px rgba(201,168,76,0.35); }

.b-teal {
  background: rgba(78,205,196,0.12);
  border-color: rgba(78,205,196,0.45);
  color: #4ecdc4;
  box-shadow: 0 0 18px rgba(78,205,196,0.1);
}
.b-teal:hover { box-shadow: 0 0 32px rgba(78,205,196,0.3); }

.b-violet {
  background: rgba(124,92,191,0.14);
  border-color: rgba(124,92,191,0.45);
  color: #a78cdf;
  box-shadow: 0 0 18px rgba(124,92,191,0.1);
}
.b-violet:hover { box-shadow: 0 0 32px rgba(124,92,191,0.3); }

.b-sage {
  background: rgba(142,151,125,0.14);
  border-color: rgba(142,151,125,0.45);
  color: #b0ba9a;
  box-shadow: 0 0 18px rgba(142,151,125,0.1);
}
.b-sage:hover { box-shadow: 0 0 32px rgba(142,151,125,0.3); }

@media (max-width: 767px) {
  .bubble-wrap { height: 900px; }
}

/* ═══════════════════════════════════════
   RESUME
   ═══════════════════════════════════════ */
.resume {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,92,191,0.08) 0%, transparent 65%),
    var(--color-bg);
  text-align: center;
}
.resume-inner { max-width: 620px; margin: 0 auto; }
.resume-sub { font-size: 0.97rem; color: rgba(219,206,165,0.45); margin-bottom: 2.5rem; }
.resume-btn { margin: 0 auto; }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(78,205,196,0.05) 0%, transparent 60%),
    var(--color-surface);
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }

.form-group { margin-bottom: 1.3rem; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-cream);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form-input::placeholder { color: rgba(219,206,165,0.22); }
.form-input:focus {
  background: rgba(255,255,255,0.05);
  border-color: var(--g-amber);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 0 16px rgba(201,168,76,0.15);
}
.form-textarea { resize: vertical; min-height: 140px; }

.contact-intro {
  padding: 2rem;
  background: var(--grad-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  position: relative;
}
.contact-intro::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(201,168,76,0.3), rgba(78,205,196,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.contact-intro p { font-size: 0.97rem; color: rgba(219,206,165,0.55); line-height: 1.8; }

.social-links { display: flex; flex-direction: column; gap: 1rem; }
.social-link {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.88rem; color: rgba(219,206,165,0.55);
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--grad-card);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  position: relative;
  transition: color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.social-link::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-sm);
  padding: 1px;
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(78,205,196,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.social-link svg { flex-shrink: 0; color: var(--g-amber); }
.social-link:hover {
  color: var(--color-cream);
  box-shadow: 0 0 16px rgba(201,168,76,0.2), 0 0 8px rgba(78,205,196,0.1);
  transform: translateX(5px);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  padding: 2rem 0;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(201,168,76,0.18);
}
.footer-text {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(219,206,165,0.28);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(6rem);
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.6rem;
  background: rgba(13,17,32,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 100px;
  font-size: 0.87rem; color: var(--color-cream);
  box-shadow: 0 0 24px rgba(201,168,76,0.25), 0 8px 40px rgba(0,0,0,0.6);
  z-index: 9999;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.55s;
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-btn);
  color: #1a1208;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

.section-reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.section-reveal.visible { opacity:1; transform:translateY(0); }

.section-reveal .project-card,
.section-reveal .skill-category {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}
.section-reveal.visible .project-card:nth-child(1),
.section-reveal.visible .skill-category:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.1s; }
.section-reveal.visible .project-card:nth-child(2),
.section-reveal.visible .skill-category:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.2s; }
.section-reveal.visible .project-card:nth-child(3),
.section-reveal.visible .skill-category:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.3s; }
.section-reveal.visible .skill-category:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.4s; }
.fade-in-hero { opacity:1; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 1280px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-grid   { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,9,15,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column; align-items: center;
    gap: 0; padding: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo), padding 0.4s var(--ease-out-expo);
    border-bottom: 1px solid transparent;
  }
  .nav-links.open {
    max-height: 500px; padding: 1.5rem 0;
    border-bottom-color: rgba(201,168,76,0.2);
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 0.9rem 2rem; font-size: 0.95rem; }
  .nav-link::after { display: none; }
  .about-image-wrap { order: -1; }
  .about-image-container { width: 200px; height: 200px; }
  .about-image-ring      { width: 230px; height: 230px; }
  section { padding: 4.5rem 0; }
  .hero-cta { gap: 0.75rem; }
  .btn { padding: 0.72rem 1.4rem; font-size: 0.84rem; }
  .toast { bottom: 1.25rem; font-size: 0.8rem; padding: 0.75rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
  html { scroll-behavior: auto; }
  .section-reveal,
  .section-reveal .project-card,
  .section-reveal .skill-category { opacity:1; transform:none; transition:none; }
}
