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

:root {
  --bg: #050508;
  --surface: #0d0d14;
  --surface-2: #141420;
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --gold-dim: #7a5f28;
  --white: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.45);
  --border: rgba(255,255,255,0.07);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

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

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 100005;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 100004;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover .cursor-follower {
  border-color: rgba(201,168,76,0.8);
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loader-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-border-wrap {
  position: relative;
  padding: 40px 60px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-border-wrap::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(201, 168, 76, 0.1), var(--gold), transparent 30%);
  animation: spinSlow 3s linear infinite;
  z-index: 0;
}

.loader-border-wrap::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--bg);
  border-radius: 6px;
  z-index: 1;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2;
  margin-left: 0.12em; /* Compensate for letter-spacing of last letter */
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: 0.12em;
  color: rgba(201, 168, 76, 0.15);
  -webkit-text-stroke: 1px rgba(201, 168, 76, 0.5);
  position: relative;
  line-height: 1;
}

.loader-logo::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: var(--gold);
  -webkit-text-stroke: 0px;
  clip-path: inset(var(--fill-pct, 100%) 0 0 0); /* Controlled via JS */
  transition: clip-path 0.1s linear;
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.5));
}

.loader-percent {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
  opacity: 0.85;
}

.loader-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.8;
}

.loader-text .dots::after {
  content: '';
  animation: loadingDots 1.5s infinite steps(4, end);
}

@keyframes loadingDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.4s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(5,5,8,0.95);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}

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

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.btn-nav {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  color: var(--gold);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
  text-transform: uppercase;
}

.btn-nav:hover {
  background: rgba(201, 168, 76, 0.5);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: none; /* Let the custom cursor handle pointer-events */
  z-index: 1010;
  padding: 0;
  transition: background 0.4s, border-color 0.4s, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-toggle:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.3);
  transform: scale(1.05);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, background 0.4s ease;
}

/* Toggle Active State (X shape) */
.nav-toggle.active {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--gold);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--gold);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  min-width: 280px;
  height: 100vh;
  background: rgba(13, 13, 20, 0.25);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.mobile-menu-inner {
  text-align: center;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--gold);
  transform: scale(1.05);
}

.mobile-btn-nav {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 100px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 10px;
}

.mobile-btn-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* ============================================================
   SCROLL CONTAINER & SECTIONS
   ============================================================ */
.scroll-container {
  position: relative;
}

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  background: transparent;
}

#heroCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.canvas-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 18rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.9);
  margin-bottom: 28px;
  position: relative;
}

.hero-title::after {
  content: 'SHAHIR';
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: inherit;
  letter-spacing: inherit;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,0.15);
  transform: translate(4px, 4px);
  z-index: -1;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 48px;
}

.hero-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-arrow {
  animation: bounceY 1.8s ease-in-out infinite;
}

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

/* Floating Badges Container */
.hero-badges-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
}

.badge-1 { top: 20%; left: 8%; animation: float1 6s ease-in-out infinite; }
.badge-2 { top: 35%; right: 8%; animation: float2 7s ease-in-out infinite; }
.badge-3 { bottom: 22%; left: 12%; animation: float3 5s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

/* ---- Skills Marquee ---- */
.skills-marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 50s linear infinite;
}

.marquee-track.marquee-reverse {
  animation: marqueeScrollReverse 50s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-item svg {
  stroke: var(--gold);
  fill: none;
}

.marquee-dot {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1rem;
  padding: 0 10px;
}

/* Specific Faster & Wider styling for Icons Marquee */
.icons-marquee .marquee-track {
  animation: marqueeScroll 18s linear infinite;
}

.icons-marquee .marquee-track.marquee-reverse {
  animation: marqueeScrollReverse 18s linear infinite;
}

.icons-marquee .marquee-item {
  padding: 0 45px;
}

.icons-marquee .marquee-dot {
  padding: 0 20px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.about-section {
  background: transparent;
  align-items: center;
  position: relative;
  z-index: 5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 100px 0;
}

.about-tag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(40px);
}

.about-title em {
  font-style: italic;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.about-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
}

.skill-pill {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.about-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 24px;
  opacity: 0;
  transform: scale(0.9);
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px) scale(1) !important;
}

.glow-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(240,208,128,0.04));
  border-color: var(--gold-dim);
}

/* ---- Experience Timeline ---- */
.experience-section {
  position: relative;
  z-index: 5;
  background: transparent;
  width: 100%;
}

.experience-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 0 100px;
}

.experience-header {
  margin-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--fg);
  opacity: 0;
  transform: translateY(20px);
}

.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Central Line */
.experience-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.exp-item {
  position: relative;
  width: 50%;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-item:nth-child(odd) {
  align-self: flex-start;
  text-align: right;
  padding-right: 50px;
  transform: translateX(-40px);
}

.exp-item:nth-child(even) {
  align-self: flex-end;
  text-align: left;
  padding-left: 50px;
  transform: translateX(40px);
}

/* Timeline dots */
.exp-item::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--bg);
  box-sizing: content-box;
  z-index: 2;
}

.exp-item:nth-child(odd)::after {
  right: -11px;
}

.exp-item:nth-child(even)::after {
  left: -11px;
}

.exp-year {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.exp-role {
  font-size: 1.5rem;
  color: var(--fg);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.exp-company {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 400px;
  margin-top: 8px;
}

.exp-item:nth-child(odd) .exp-desc {
  margin-left: auto;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: rgba(5, 5, 8, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 5;
  padding-bottom: 100px;
  padding-top: 80px;
}

.cta-bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 20rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,0.05);
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
}

.cta-left {
  text-align: left;
}

.cta-right {
  text-align: left;
  position: relative;
}

.form-boy-illustration {
  position: absolute;
  bottom: calc(100% - 30px);
  right: 20px;
  width: 120px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.dot.pulse {
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,168,76,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
}

.gradient-text {
  color: var(--gold);
}

.cta-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: #0a0a0a;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  cursor: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(201,168,76,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, background 0.3s;
  cursor: none;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

.cta-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
  transform: translateY(-3px);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 100%;
  margin: 0;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px 18px 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.05);
}

.form-textarea {
  min-height: 120px;
  resize: none;
}

.form-label {
  position: absolute;
  left: 18px;
  top: 15px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease, font-size 0.3s ease;
}

/* Floating behavior when input is focused or not empty */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-8px);
  font-size: 0.75rem;
  color: var(--gold);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.form-input:focus ~ .form-line {
  transform: scaleX(1);
}

.form-submit {
  width: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 52px;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.form-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-success {
  font-weight: 600;
  color: #050508;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  z-index: 2;
}

.footer-copy,
.footer-credits {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   NOISE GRAIN OVERLAY
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

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

  .about-right {
    grid-template-columns: 1fr 1fr;
  }

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

  .cta-left {
    text-align: center;
  }

  .cta-socials {
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px;
  }

  .floating-badge { display: none; }

  /* Responsive Timeline */
  .experience-timeline::before {
    left: 20px;
  }
  
  .exp-item {
    width: 100%;
    padding-left: 60px !important;
    padding-right: 0 !important;
  }
  
  .exp-item:nth-child(odd),
  .exp-item:nth-child(even) {
    align-self: flex-start;
    text-align: left;
    transform: translateX(40px);
  }
  
  .exp-item::after {
    left: 14px !important;
    right: auto !important;
  }
  
  .exp-item:nth-child(odd) .exp-desc {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 5rem; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 2.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ============================================================
   CANVAS FRAME ANIMATION OVERLAY
   ============================================================ */
#heroCanvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ============================================================
   STICKY WHATSAPP BUTTON
   ============================================================ */
.whatsapp-sticky {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: rgba(201, 168, 76, 0.15); /* Glassy gold */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 999;
  cursor: none;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.whatsapp-sticky:hover {
  transform: translateY(-5px) scale(1.05);
  background: var(--gold);
  color: #050508;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-sticky {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-sticky svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================================
   SUCCESS POPUP MODAL
   ============================================================ */
.success-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.success-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-popup-card {
  background: rgba(13, 13, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(201, 168, 76, 0.2);
  border-radius: 24px;
  padding: 44px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.75) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-popup-overlay.active .success-popup-card {
  transform: scale(1) translateY(0);
}

.success-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.success-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--gold);
  stroke-miterlimit: 10;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--gold);
  fill: none;
}

.success-popup-overlay.active .checkmark-circle {
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3.5;
  stroke: var(--gold-light);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-popup-overlay.active .checkmark-check {
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes strokeCircle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-popup-title {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.success-popup-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 28px;
}

.success-popup-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #050508;
  border: none;
  padding: 13px 38px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.success-popup-btn:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.6);
}

