@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700;800&family=Inter:wght@400;500&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* DARK MODE (Default) */
  --bg-primary: #030B0C;
  --bg-secondary: #011A1D;
  --bg-card: #012428;

  --accent-primary: #0FA4AF;
  --accent-secondary: #DA7B93;

  --text-primary: #AFDDE5;
  --text-heading: #AFDDE5;
  --text-muted: #367f80;
  --text-inverse: #030B0C;

  --border-color: #024950;
  --glass-bg: rgba(1, 26, 29, 0.7);

  --glow-primary: 0 0 25px rgba(15, 164, 175, 0.4);

  --gradient-text: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

  /* TYPOGRAPHY */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--easing);
  --transition-normal: 0.4s var(--easing);
  --transition-slow: 0.8s var(--easing);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* SPACING SYSTEM */
  --section-padding-desktop: 40px;
  --section-padding-tablet: 25px;
  --section-padding-mobile: 15px;
  --gap-badge-heading: 6px;
  --gap-heading-subheading: 8px;
  --gap-subheading-content: 15px;
}



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

html {
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-primary);
  /* Scroll behavior handled by Lenis */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

img,
video {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-heading);
}


.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* LENIS SMOOTH SCROLL */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-scroll-container] {
  will-change: transform;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}

.preloader-logo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(15, 164, 175, 0.6));
  background: rgba(15, 164, 175, 0.06);
  padding: 10px;
  box-sizing: border-box;
}

.preloader-logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #0FA4AF;
  border-right-color: rgba(15, 164, 175, 0.4);
  animation: preloaderSpin 1.2s linear infinite;
  z-index: 1;
}

.preloader-logo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: #a9fc81;
  border-left-color: rgba(169, 252, 129, 0.3);
  animation: preloaderSpin 2s linear infinite reverse;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

.preloader-logo-svg path {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawSvg 1.5s var(--easing) forwards;
}

@keyframes drawSvg {
  to {
    stroke-dashoffset: 0;
  }
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent-primary);
  height: 1.8rem;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(15, 164, 175, 0.5);
}

/* CURSOR (Desktop only) */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

@media (min-width: 1025px) {

  .custom-cursor-dot,
  .custom-cursor-ring {
    display: block;
  }
}

@media (max-width: 1024px) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
}

.custom-cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 40%, transparent);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.custom-cursor-ring.hover {
  width: 48px;
  height: 48px;
  background-color: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  border-color: var(--accent-primary);
}

/* SCROLL PROGRESS */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent-primary);
  width: 0%;
  z-index: 9998;
}

/* NAVBAR */
/* ════════════════════════════════════════════════════════════════
   3. UNIFIED TRENDY NAVBAR OVERHAUL (v2 - PRO)
   ════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 999;
  background: transparent;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  height: 85px;
  background: rgba(3, 11, 12, 0.88);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid rgba(15, 164, 175, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-brand img {
  height: 150px; /* 3x the standard 50px */
  width: auto;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.navbar.scrolled .nav-brand img {
  height: 65px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 36, 40, 0.4);
  border: 1px solid rgba(15, 164, 175, 0.1);
  border-radius: 50px;
  padding: 6px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.navbar:not(.scrolled) .nav-links {
  background: transparent;
  border-color: transparent;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover {
  color: var(--accent-primary);
  background: rgba(15, 164, 175, 0.1);
}

.nav-links a.active {
  color: var(--bg-primary);
  background: var(--accent-primary);
  box-shadow: 0 0 20px rgba(15, 164, 175, 0.4);
}

.nav-links a::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .nav-links:not(.active) {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
    padding: 0 5%;
    align-items: center;
  }

  /* Logo — visible and neat */
  .nav-brand img {
    height: 60px;
    width: auto;
  }
  .navbar.scrolled .nav-brand img {
    height: 52px;
  }

  /* Right side: Hire Me + hamburger — same row, same center */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
  }

  /* Hire Me: minimal compact pill */
  .nav-actions .btn {
    display: none !important;
  }

  /* Hide scrollbar on mobile */
  html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
  }
  html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Hamburger — match height of Hire Me */
  .menu-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(3, 11, 12, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    border-radius: 0;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    width: 80%;
    text-align: center;
    padding: 15px;
  }
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  /* Touch target */
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

/* Shimmer sweep effect on primary button */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.btn-primary:hover::after {
  left: 150%;
  transition: left 0.6s var(--easing);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

[data-theme="light"] .btn-primary {
  color: #FFFFFF;
  /* Ensure white text on teal in light mode */
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 5%, transparent);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn i {
  margin-right: 8px;
}

.btn i.right {
  margin-right: 0;
  margin-left: 8px;
  transition: transform var(--transition-fast);
}

.btn:hover i.right {
  transform: translateX(4px);
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  min-height: 44px;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-normal);
  transform-origin: left center;
}

/* LAYOUT UTILS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Main content wrapper for centering */
.main-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}


.section {
  padding: var(--section-padding-desktop) 0;
  position: relative;
}

@media (max-width: 1024px) {
  .section {
    padding: var(--section-padding-tablet) 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--gap-subheading-content);
}


.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: var(--gap-badge-heading);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-primary) 10%, transparent);
  animation: badge-pulse 3s infinite alternate;
}

@keyframes badge-pulse {
  0% {
    box-shadow: 0 0 5px color-mix(in srgb, var(--accent-primary) 10%, transparent);
  }

  100% {
    box-shadow: 0 0 15px color-mix(in srgb, var(--accent-primary) 30%, transparent);
  }
}

.section-title {
  font-size: clamp(0.9rem, 2.25vw, 1.5rem);
  margin-bottom: var(--gap-heading-subheading);
  font-weight: 800;
}


.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* PULSE DOT */
.pulse-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}



/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 180px;
  padding-bottom: 20px;
  /* Adjusted to visually push content down and center it under the navbar */
  position: relative;
  overflow: hidden;
}


.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent-primary) 15%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent-secondary) 10%, transparent) 0%, transparent 50%);
  animation: mesh-drift 12s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.2) translate(-5%, 5%);
  }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.8;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.04;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-label {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.26rem, 4.9vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}


.hero-title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.hero-title .word span {
  display: inline-block;
  transform: translateY(100%);
}

.hero-typing-container {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent-secondary);
  margin-bottom: 24px;
  height: 2.4rem;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1.26rem, 3.5vw, 1.96rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .btn,
.hero-cta .btn-demo-trigger {
  font-size: 1rem;
  padding: 13px 28px;
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-cta .btn,
  .hero-cta .btn-demo-trigger {
    width: 100%;
  }
}

.hero-stats-separator {
  width: 100%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), var(--border-color), transparent);
  margin: 60px auto 40px;
  opacity: 0.5;
}

.hero-stats {
  display: flex;
  gap: 80px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  will-change: transform, opacity;
  transition: transform 0.6s var(--easing);
}

.stat-item:hover {
  transform: translate3d(0, -5px, 0);
}


.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 2px;
  position: relative;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 9vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-heading);
  position: relative;
  /* Glowing text effect */
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent-primary) 20%, transparent);
}

.stat-symbol {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.stat-item .pulse-dot {
  width: 6px;
  height: 6px;
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
}


.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 12px;
  font-weight: 500;
}

/* Staggered entrance reveal classes handled by GSAP in main.js */
.hero-stats .stat-item {
  opacity: 0;
  transform: translateY(20px);
}

/* Subtle looping float animation with hardware acceleration */
@keyframes statFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

.stat-item.active-float {
  animation: statFloat 6s ease-in-out infinite;
}



/* =========================================================================
   BENTO MOSAIC PORTFOLIO SECTION
   ========================================================================= */

.bento-portfolio-section {
  padding: 80px 0;
  background-color: #080b12;
  /* Deep space dark */
  position: relative;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.bento-heading {
  font-size: clamp(1.1rem, 2.25vw, 1.8rem);
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-top: 16px;
  overflow: hidden;
}

.bento-heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.bento-subheading {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-flow: dense;
}

.bento-card-project {
  position: relative;
  background: rgba(12, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Base states for scroll entrance */
.bento-reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.bento-card-project:hover {
  /* Override below */
}

/* Sleek 'Tech Vault' Hover Animation */
.bento-card-project::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 40%, rgba(15, 164, 175, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 10;
}

.bento-card-project::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent-primary) 15%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.bento-card-project:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px color-mix(in srgb, var(--accent-primary) 10%, transparent);
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-card-project:hover::before,
.bento-card-project:hover::after {
  opacity: 1;
}

/* Ensure content stays above the hover effect */
.bento-card-project .bento-content,
.bento-card-project .bento-image-wrapper {
  position: relative;
  z-index: 2;
}




.size-large {

  grid-column: span 2;
}

.size-medium {
  grid-column: span 1;
}

/* Image Area */
.bento-image-wrapper {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card-project:hover .bento-img {
  transform: scale(1.05);
}

.bento-img-overlay {


  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(12, 12, 20, 1));
  z-index: 2;
}

/* Badges */
.bento-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}



.badge-blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.5);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.5);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.badge-green {
  background: rgba(169, 252, 129, 0.2);
  border: 1px solid rgba(169, 252, 129, 0.5);
  text-shadow: 0 0 10px rgba(169, 252, 129, 0.8);
  color: #a9fc81;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.badge-orange {
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.5);
  text-shadow: 0 0 10px rgba(234, 88, 12, 0.8);
}

.badge-purple-gradient {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
  border: 1px solid rgba(139, 92, 246, 0.5);
}

/* Floating Badges */
.bento-live-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(169, 252, 129, 0.15);
  border: 1px solid rgba(169, 252, 129, 0.4);
  color: #a9fc81;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.bento-live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #a9fc81;
  border-radius: 50%;
  box-shadow: 0 0 8px #a9fc81;
  animation: pulse-green 1.5s infinite;
}

.bento-floating-badge {
  position: absolute;
  bottom: 20px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.bento-n8n-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(234, 88, 12, 0.9);
  border: 1px solid #ea580c;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.5);
  backdrop-filter: blur(4px);
}


/* Content Area */
.bento-content {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 3;
  position: relative;
}

.bento-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.bento-hook {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  font-style: italic;
}

.bento-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Tags */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bento-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.bento-card-project.is-visible .bento-tags span {
  animation: tagFloat 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bento-card-project.is-visible .bento-tags span:nth-child(1) {
  animation-delay: 0.3s;
}

.bento-card-project.is-visible .bento-tags span:nth-child(2) {
  animation-delay: 0.4s;
}

.bento-card-project.is-visible .bento-tags span:nth-child(3) {
  animation-delay: 0.5s;
}

.bento-card-project.is-visible .bento-tags span:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes tagFloat {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bento-card-project:hover .bento-tags span {

  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* CTA Row */
.bento-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}


.bento-cta {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.bento-cta:hover {
  color: var(--accent-primary);
}

.bento-mini-pill {
  background: rgba(169, 252, 129, 0.1);
  border: 1px solid rgba(169, 252, 129, 0.3);
  color: #a9fc81;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bento-mini-pill:hover {
  background: rgba(169, 252, 129, 0.2);
  box-shadow: 0 0 10px rgba(169, 252, 129, 0.3);
}

/* Premium Fading Slider Layout */
.bento-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-track img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlider 15s infinite;
}

.slider-track .slide-1 {
  animation-delay: 0s;
}

.slider-track .slide-2 {
  animation-delay: 5s;
}

.slider-track .slide-3 {
  animation-delay: 10s;
}

@keyframes fadeSlider {

  0%,
  25% {
    opacity: 1;
  }

  33%,
  92% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.project-tnhappykids .bento-image-wrapper {
  margin-bottom: 0px;
}


/* Hero Glow */
.hero-glow {
  box-shadow: 0 0 40px rgba(169, 252, 129, 0.1);
  border-color: rgba(169, 252, 129, 0.2);
}

.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 20px rgba(169, 252, 129, 0.05);
  pointer-events: none;
}

.project-n8n-workflows.hero-glow {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

/* N8N Automation Layout */
.project-n8n-workflows {
  justify-content: space-between;
}

.bento-content-top {
  flex: none;
  padding-bottom: 40px;
}

/* Increased gap here */
.bento-sub-cards {

  display: flex;
  padding: 20px 24px;
  gap: 16px;
  align-items: center;
}

.bento-sub-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-sub-card .bento-img {
  height: 120px;
}

.bento-sub-card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento-sub-card-content h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.bento-sub-card-content .bento-tags {
  margin-bottom: 0;
  margin-top: auto;
}


.bento-flowing-dots {
  position: relative;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.traveling-dot {
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
  animation: travelDot 2s linear infinite;
}

@keyframes travelDot {
  0% {
    left: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Ghost Card */
.project-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  cursor: default;
  transition: all 0.3s ease;
}

.project-ghost:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02);
  background: rgba(255, 255, 255, 0.03);
}

.project-ghost::before,
.project-ghost::after {
  display: none;
}

.ghost-content h3 {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 16px 0 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.ghost-content p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.lock-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Muted Block (Loan Calculator) */
.bento-muted-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.bento-muted-block h5 {
  font-size: 0.42rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-muted-block h5 i {
  color: #06b6d4;
}

.bento-muted-block p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  line-height: 1.4;
}

.muted-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.muted-stats-grid .stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.muted-stats-grid .stat-item span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.muted-stats-grid .stat-item strong {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
}

.muted-results-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.result-item span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item strong {
  font-size: 0.9rem;
  color: #a9fc81;
  font-family: var(--font-mono);
}


/* Video */

.bento-video-wrapper {
  position: relative;
}

.bento-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 5;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bento-card-project:hover .bento-play-overlay {
  opacity: 0;
}

/* CTA Footer */
.bento-footer-cta {
  text-align: center;
  margin-top: 30px;
}

.bento-footer-cta p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bento-premium-btn {
  display: inline-flex;
  padding: 16px 32px;
  background: rgba(12, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-premium-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-premium-btn:hover {
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.bento-premium-btn:hover::before {
  opacity: 1;
}

/* Placeholders */

.placeholder-blue {
  background: linear-gradient(45deg, #1e3a8a, #3b82f6);
}

.placeholder-purple {
  background: linear-gradient(45deg, #4c1d95, #8b5cf6);
}

.placeholder-cyan {
  background: linear-gradient(45deg, #164e63, #06b6d4);
}

.placeholder-green {
  background: linear-gradient(45deg, #14532d, #22c55e);
}

.placeholder-amber {
  background: linear-gradient(45deg, #78350f, #f59e0b);
}

.placeholder-orange {
  background: linear-gradient(45deg, #7c2d12, #ea580c);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .size-large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .size-large,
  .size-medium {
    grid-column: span 1;
  }

  .bento-sub-cards {
    flex-direction: column;
  }

  .bento-flowing-dots {
    width: 2px;
    height: 40px;
  }

  @keyframes travelDot {
    0% {
      top: 0;
      opacity: 0;
    }

    20% {
      opacity: 1;
    }

    80% {
      opacity: 1;
    }

    100% {
      top: 100%;
      opacity: 0;
    }
  }
}

/* ABOUT SECTION (STORY LAYOUT) */

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

.about-photo-wrapper {
  position: relative;
  width: 100%;
}

.about-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
  position: relative;
  z-index: 3;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 0;
}

.social-btn:hover::before {
  transform: scale(1);
}

.social-btn:hover {
  transform: translateY(-5px);
}

.social-btn i {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.social-btn.linkedin {
  --bg-hover: #0077B5;
}
.social-btn.linkedin:hover i {
  color: #fff;
}
.social-btn.linkedin:hover {
  border-color: #0077B5;
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.social-btn.instagram {
  --bg-hover: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-btn.instagram:hover i {
  color: #fff;
}
.social-btn.instagram:hover {
  border-color: #bc1888;
  box-shadow: 0 10px 20px rgba(204, 35, 102, 0.3);
}

.social-btn.gmail {
  --bg-hover: #EA4335;
}
.social-btn.gmail:hover i {
  color: #fff;
}
.social-btn.gmail:hover {
  border-color: #EA4335;
  box-shadow: 0 10px 20px rgba(234, 67, 53, 0.3);
}

@keyframes slow-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--accent-primary) 20%, transparent);
  position: relative;
  z-index: 2;
}

.about-photo-glow {
  position: absolute;
  inset: -10px;
  background: var(--gradient-text);
  filter: blur(20px);
  opacity: 0.3;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.photo-title {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


.story-content h3 {
  font-size: 1.0rem;
  margin-bottom: 24px;
}

.story-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quote-block {
  margin: 40px 0;
  padding: 30px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--text-primary);
  position: relative;
}

.quote-block.featured {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 1.2rem;
}


.quote-block::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  color: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  line-height: 1;
  font-family: serif;
}

.why-different-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
}

.diff-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.tech-stack-section {
  margin-top: 80px;
}

@media (max-width: 768px) {
  .tech-stack-section {
    margin-top: 50px;
  }
}

.tech-stack-section h4 {
  margin: 40px 0 20px;
  font-size: 0.6rem;
}

.tech-group {
  margin-bottom: 24px;
}

.tech-group-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  display: block;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-tag {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: default;
}

.tech-tag:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent-primary) 20%, transparent);
  transform: translateY(-2px);
  color: var(--accent-primary);
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
}

.service-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-10px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 20%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
  transform: translateY(-5px) scale(1.1);
}

.service-card h3 {
  font-size: 0.7rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-secondary);
  background: color-mix(in srgb, var(--accent-secondary) 10%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* FEATURED PROJECT - TIKKA HOUSE */
.featured-project {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 120px 0;
}

.fp-header {
  text-align: center;
  margin-bottom: 60px;
}

.fp-header h2 {
  font-size: clamp(1.0rem, 2.0vw, 1.6rem);
  /* Reduced by 10% */
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 800;
}


.fp-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* CORE COMPONENTS */
.bento-card {
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 15%, var(--border-color));
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
}

.bento-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.video-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 10%, var(--border-color));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fp-video {
  width: 100%;
  display: block;
}

/* LEFT SIDE: MEDIA */

.fp-media-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fp-media-showcase .bento-card {
  width: 100%;
}

.fp-screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fp-screen {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  opacity: 0.85;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-screen.highlight-customer {
  border-color: color-mix(in srgb, var(--accent-primary) 30%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-primary) 10%, transparent);
}

.fp-screen.highlight-manager {
  border-color: color-mix(in srgb, var(--accent-secondary) 30%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-secondary) 30%, transparent);
}

.screen-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
  z-index: 2;
}

.fp-screen:hover {
  opacity: 1;
  transform: translateY(-5px);
  z-index: 5;
}

.fp-screen.highlight-customer:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px color-mix(in srgb, var(--accent-primary) 30%, transparent);
}

.fp-screen.highlight-manager:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 15px 40px color-mix(in srgb, var(--accent-secondary) 30%, transparent);
}

.fp-screen img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.screen-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  display: block;
}


/* RIGHT SIDE: CONTENT */
.fp-content-side {
  display: flex;
  flex-direction: column;
  gap: 40px;
}



.fp-summary h3 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.fp-summary p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.fp-info-block h4,
.fp-outcomes h4 {
  font-size: 0.63rem;
  font-family: var(--font-mono);
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.fp-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fp-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  color: var(--text-muted);
}

.fp-benefit-list i {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-top: 4px;
}

.fp-benefit-list span strong {
  color: var(--text-primary);
}

.fp-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fp-outcome-card {
  background: color-mix(in srgb, var(--accent-primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 10%, transparent);
  border-radius: var(--radius-md);
  padding: 20px 10px;
  text-align: center;
  transition: all var(--transition-normal);
}

.fp-outcome-card:hover {
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  border-color: var(--accent-primary);
}

.fp-outcome-card .stat-number {
  font-size: 2rem;
  color: var(--accent-primary);
  display: inline-block;
}

.fp-outcome-card .suffix {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.fp-outcome-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
}

.fp-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.fp-tech-row span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .fp-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}


/* Custom Audio UI */
.audio-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: color-mix(in srgb, var(--accent-primary) 5%, transparent);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 15%, transparent);
  min-width: 120px;
}

.audio-player-wrapper {
  background: color-mix(in srgb, var(--accent-primary) 5%, transparent);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 15%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.audio-main-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.audio-skip-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-skip-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
}

.custom-play-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--text-inverse);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition-fast);
  box-shadow: 0 0 25px color-mix(in srgb, var(--accent-primary) 40%, transparent);
}


.custom-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-primary) 60%, transparent);
}

.hidden-audio {
  display: none;
}

.audio-progress-container {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.audio-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  transition: width 0.1s linear;
}

.audio-visualizer {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
}

.audio-visualizer.paused .bar {
  animation-play-state: paused;
  transform: scaleY(0.2);
}

.audio-visualizer .bar {
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: audioBar 0.5s ease-in-out infinite alternate;
}

@keyframes audioBar {
  0% {
    transform: scaleY(0.2);
  }

  100% {
    transform: scaleY(1);
  }
}


.fp-audio-content {
  width: 100%;
  padding-top: 10px;
}

.fp-audio-content h4 {
  font-size: 0.75rem;
  margin-bottom: 8px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-audio-content h4 i {
  color: var(--accent-primary);
  font-size: 0.55rem;
}

.fp-audio-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 36px;
  /* Align with text after icon */
}


/* Image styling */




.fp-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fp-img-wrapper img {
  width: 100%;
  display: block;
}



.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
  transform: translateY(-100%);
  opacity: 0;
  z-index: 3;
}

.fp-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fp-tab-btn {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.fp-tab-btn:hover {
  background: color-mix(in srgb, var(--accent-primary) 5%, transparent);
}

.fp-tab-btn.active {
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  color: var(--accent-primary);
  border-left: 4px solid var(--accent-primary);
}

.fp-tab-btn i {
  transition: transform var(--transition-fast);
}

.fp-tab-btn.active i {
  transform: rotate(180deg);
}

.fp-tab-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--easing), padding 0.4s var(--easing);
  background: var(--bg-surface);
}

.fp-tab-content.active {
  padding: 24px;
  max-height: 1000px;
}

.fp-list {
  list-style: none;
}

.fp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.fp-list i {
  color: var(--accent-primary);
  margin-top: 4px;
}

.fp-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.fp-metric-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-align: center;
}

.fp-metric-card h4 {
  font-size: 1.0rem;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.fp-metric-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}



/* ===== ALL PROJECTS SECTION ===== */


/* ALL PROJECTS SECTION */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
}

[data-theme="light"] .filter-btn.active {
  color: #FFFFFF;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s var(--easing);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 26, 29, 0.95), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}


.project-card:hover .project-img-wrapper img {
  transform: scale(1.06);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link-overlay {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card:hover .project-link-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-link-overlay i {
  transition: transform var(--transition-fast);
}

.project-link-overlay:hover i {
  transform: translateX(4px);
}

.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.project-content h3 {
  font-size: 0.62rem;
  margin-bottom: 12px;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 4px 10px;
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 20%, transparent);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.project-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.project-link-text:hover {
  color: var(--accent-primary);
}

#showcase {
  background: var(--bg-secondary);
}

/* AUTOMATION SHOWCASE */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.workflow-connector {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 0;
}

.workflow-connector svg {
  width: 100%;
  height: 100%;
}

.workflow-connector path {
  stroke: var(--border-color);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  fill: none;
}

.workflow-path-anim {
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  fill: none;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.workflow-card .fp-img-wrapper {
  height: 200px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: none;
}

.workflow-card-content {
  padding: 24px;
}

.workflow-card-content h3 {
  font-size: 0.55rem;
  margin-bottom: 8px;
}

.workflow-card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CURRENT CLIENTS SECTION */
.clients-section {
  background: var(--bg-secondary);
}

.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.client-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.client-card h3 {
  font-size: 1.0rem;
  margin-bottom: 8px;
}

.client-industry {
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: block;
}

.client-highlight {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-style: italic;
  border-left: 3px solid var(--accent-primary);
  padding-left: 16px;
}

.client-services {
  list-style: none;
}

.client-services li {
  color: var(--text-muted);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.client-services i {
  color: var(--accent-primary);
  margin-top: 4px;
  font-size: 0.8rem;
}

.clients-cta {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.clients-cta p {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

/* CONTACT SECTION */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item.whatsapp .contact-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.contact-item.whatsapp:hover {
  border-color: #25D366;
}

.contact-details h4 {
  font-size: 0.45rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-details p,
.contact-details a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.contact-details a .pulse-dot {
  margin-left: 8px;
}

.contact-details a:hover {
  color: var(--accent-primary);
}

.availability-block {
  background: color-mix(in srgb, var(--accent-primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 20%, transparent);
  padding: 24px;
  border-radius: var(--radius-md);
}

.availability-block h4 {
  color: var(--accent-primary);
  font-size: 0.55rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.availability-block p {
  color: var(--text-muted);
  font-size: 1.4rem;
  text-transform: uppercase;
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.form-input,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select {
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230FA4AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1.2rem;
  padding-right: 2rem;
}

.form-select option {
  background: #0a0a14;
  color: var(--text-primary);
  padding: 12px;
}

/* --- MY STORY SECTION --- */
.photo-container {
  position: relative;
  display: block;
  width: 100%;
}

.photo-badge {
  background: rgba(12, 12, 20, 0.9);
  border: 1px solid rgba(169, 252, 129, 0.4);
  box-shadow: 0 4px 15px rgba(169, 252, 129, 0.15);
  border-radius: 8px;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  margin-top: -20px;
  z-index: 10;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  backdrop-filter: blur(10px);
}

.photo-badge .degree {
  color: #06b6d4;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.photo-badge .separator {
  color: rgba(255, 255, 255, 0.2);
}

.photo-badge .role {
  color: #a9fc81;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}


/* --- TECH VAULT (DRAG & DROP) --- */
.tech-vault-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

.vault-interaction-area {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  margin-top: 40px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding-bottom: 40px;
}

.tech-vault-container.unlocked {
  min-height: 400px;
}

.tech-vault-container.unlocked .vault-interaction-area {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  position: absolute;
}

.tech-bag {
  width: 100px;
  height: 100px;
  background: rgba(12, 12, 20, 0.9);
  border: 2px solid #06b6d4;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: #06b6d4;
  position: relative;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
}

.tech-bag.drag-over {
  transform: scale(1.1);
  border-color: #a9fc81;
  color: #a9fc81;
  box-shadow: 0 0 50px rgba(169, 252, 129, 0.5);
}

.lock-icon-small {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 1.2rem;
  background: #111;
  padding: 5px;
  border-radius: 50%;
  color: #ff0058;
}

.tech-key-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drag-instruction {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-key {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #a9fc81;
  cursor: grab;
  transition: transform 0.2s ease;
}

.tech-key:active,
.tech-key.is-dragging {
  cursor: grabbing;
  transform: scale(0.9) rotate(15deg) !important;
  box-shadow: 0 0 30px rgba(169, 252, 129, 0.8);
  animation: none;
}

/* Stage 2: Fluid Cluster */
.fluid-skills-cluster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.tech-vault-container.fluid-active .fluid-skills-cluster {
  opacity: 1;
}

.typewriter-container {
  font-size: 1.5rem;
  color: #a9fc81;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px rgba(169, 252, 129, 0.5);
  z-index: 20;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.fluid-nodes-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transition: transform 0.1s ease-out;
  /* For parallax */
}

.fluid-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 12px;
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-vault-container.fluid-active .fluid-node {
  opacity: 1;
  animation: floatNeuron 4s ease-in-out infinite alternate;
}

@keyframes floatNeuron {
  0% {
    margin-top: 0;
    margin-left: 0;
  }

  100% {
    margin-top: -15px;
    margin-left: 10px;
  }
}

.fluid-node img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* Stage 3: Organized Grid */
.organized-tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  margin: 0 auto;
}

.tech-vault-container.organized-active .organized-tech-grid {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.tech-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  width: calc(33.333% - 40px);
  min-width: 250px;
}

.tech-vault-container.organized-active .tech-category {
  opacity: 1;
  transform: translateY(0);
}

.tech-category:nth-child(1) {
  transition-delay: 0.1s;
}

.tech-category:nth-child(2) {
  transition-delay: 0.3s;
}

.tech-category:nth-child(3) {
  transition-delay: 0.5s;
}

.tech-category:nth-child(4) {
  transition-delay: 0.7s;
}

.tech-category:nth-child(5) {
  transition-delay: 0.9s;
}

.glow-title {
  color: #06b6d4;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  padding-bottom: 5px;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
}

.cat-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.cat-node {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  gap: 6px;
  transition: transform 0.3s ease;
  position: relative;
}

.cat-node:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: #a9fc81;
  box-shadow: 0 0 15px rgba(169, 252, 129, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.cat-node img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cat-node .reveal-text,
.cat-node span {
  font-size: 0.6rem;
  color: #fff;
  font-family: var(--font-mono);
  text-align: center;
  filter: blur(8px);
  opacity: 0;
  transition: all 1s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
}

.tech-vault-container.organized-active .cat-node .reveal-text,
.tech-vault-container.organized-active .cat-node span {
  filter: blur(0);
  opacity: 1;
  max-width: 60px;
  /* Expands to act like typewriter */
  transition-delay: 1.5s;
  /* Reveals after layout settles */
}



.form-input:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 10px -10px var(--accent-primary);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: -20px;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  min-height: 54px;
  font-size: 1.1rem;
}

.btn-submit .spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.btn-submit.loading span,
.btn-submit.loading i {
  display: none;
}

.btn-submit.loading .spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* FOOTER */
/* ═══════════════════════════════════════
   NEW TRENDY FOOTER
═══════════════════════════════════════ */
.footer-new {
  position: relative;
  background: #04090f;
  border-top: 1px solid rgba(15,164,175,0.15);
  padding: 0 0 0;
  overflow: hidden;
}

/* Glow orbs */
.footer-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.25;
}
.footer-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0FA4AF, transparent 70%);
  top: -100px; left: -100px;
}
.footer-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a9fc81, transparent 70%);
  bottom: 100px; right: -80px;
}

/* CTA Block */
.footer-cta-block {
  text-align: center;
  padding: 100px 20px 60px;
}
.footer-eyebrow {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0FA4AF;
  margin-bottom: 15px;
}
.footer-mega-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2.0rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 15px;
}
.footer-gradient-text {
  background: linear-gradient(135deg, #0FA4AF 0%, #a9fc81 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-cta-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
}
.footer-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #0FA4AF, #06b6d4);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(15,164,175,0.3);
}
.footer-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(15,164,175,0.5);
  color: #fff;
}
.footer-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.4);
  color: #25D366;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.footer-btn-wa:hover {
  background: #25D366;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(37,211,102,0.3);
}

/* Marquee */
.footer-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.footer-marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.footer-marquee-track:hover { animation-play-state: paused; }
.footer-dot { color: #0FA4AF; font-size: 0.6rem; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Links Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 60px 0 50px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Brand col */
.footer-brand-col { display: flex; flex-direction: column; gap: 16px; }
.footer-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(15,164,175,0.3);
  padding: 8px;
  background: rgba(15,164,175,0.05);
  filter: drop-shadow(0 0 10px rgba(15,164,175,0.3));
}
.footer-brand-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  line-height: 1.6;
}
.footer-brand-location {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-brand-location i { color: #0FA4AF; }

/* Nav cols */
.footer-col-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0FA4AF;
  margin-bottom: 20px;
}
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-list a {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.footer-nav-list a i { font-size: 0.7rem; transition: transform 0.25s; }
.footer-nav-list a:hover {
  color: #0FA4AF;
  transform: translateX(4px);
}
.footer-nav-list a:hover i { transform: translateX(3px); }

/* Social col */
.footer-social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.fsi {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
}
.fsi:hover { transform: translateY(-4px); }
.fsi-wa:hover { background:#25D366; border-color:#25D366; color:#fff; box-shadow:0 8px 20px rgba(37,211,102,0.3); }
.fsi-li:hover { background:#0077B5; border-color:#0077B5; color:#fff; box-shadow:0 8px 20px rgba(0,119,181,0.3); }
.fsi-em:hover { background:#0FA4AF; border-color:#0FA4AF; color:#fff; box-shadow:0 8px 20px rgba(15,164,175,0.3); }
.fsi-gh:hover { background:#333;    border-color:#555;    color:#fff; box-shadow:0 8px 20px rgba(0,0,0,0.4); }

.footer-contact-direct {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-contact-direct i { color: #0FA4AF; width: 14px; }

/* Bottom bar */
.footer-bottom-new {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-copy {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.35);
}
.footer-copy span { color: #0FA4AF; font-weight: 600; }

.footer-legal-links {
  display: flex;
  gap: 24px;
  margin-left: 40px;
}
.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.footer-legal-links a:hover {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .footer-bottom-new {
    flex-direction: column;
    gap: 15px;
  }
  .footer-legal-links {
    margin-left: 0;
    gap: 20px;
  }
}
.footer-rights {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* GSAP REVEAL UTILS */

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

/* MOBILE RESPONSIVE RULES */
@media (max-width: 1024px) {

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

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

  .fp-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-mega-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 998;
    transform: translateY(-100%);
    transition: transform 0.5s var(--easing);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.5rem;
  }


  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }

  .services-grid,
  .projects-grid,
  .workflow-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

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

  .about-photo-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-stats {
    gap: 80px;
    margin-top: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  .footer-brand-location { justify-content: center; }
  .footer-nav-list a { justify-content: center; }
  .footer-social-icons { justify-content: center; }
  .footer-contact-direct { justify-content: center; }
  .footer-bottom-new {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .footer-mega-title { font-size: 1.2rem; }
  .footer-cta-block { padding: 70px 16px 40px; }
  .footer-col-title { text-align: center; }

  .workflow-connector {
    display: none;
  }
}

@media (max-width: 430px) {
  .section {
    padding: 30px 0;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .contact-form {
    padding: 24px;
  }

  .fp-metric-card h4 {
    font-size: 0.75rem;
  }

  .media-cards {
    grid-template-columns: 1fr;
  }
}

/* IMAGE LIGHTBOX MODAL */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
}

.expandable-img {
  cursor: zoom-in;
}

/* --- SERVICES HOVER EXPAND ACCORDION --- */
.services-accordion-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 500px;
  margin: 0 auto;
  gap: 12px;
  padding: 0 20px;
}

.accordion-panel {
  position: relative;
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: #0f1016;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.accordion-panel.active {
  flex: 8;
  border-color: rgba(255, 255, 255, 0.2);
}

.panel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.accordion-panel.active .panel-bg {
  opacity: 0.8;
}

/* Vibrant Gradients for each panel */
.panel-bg-1 {
  background: linear-gradient(135deg, rgba(15, 16, 22, 0.9) 0%, rgba(6, 182, 212, 0.6) 100%);
}

.panel-bg-2 {
  background: linear-gradient(135deg, rgba(15, 16, 22, 0.9) 0%, rgba(169, 252, 129, 0.6) 100%);
}

.panel-bg-3 {
  background: linear-gradient(135deg, rgba(15, 16, 22, 0.9) 0%, rgba(139, 92, 246, 0.6) 100%);
}

.panel-bg-4 {
  background: linear-gradient(135deg, rgba(15, 16, 22, 0.9) 0%, rgba(236, 72, 153, 0.6) 100%);
}

.panel-bg-5 {
  background: linear-gradient(135deg, rgba(15, 16, 22, 0.9) 0%, rgba(245, 158, 11, 0.6) 100%);
}

.panel-bg-6 {
  background: linear-gradient(135deg, rgba(15, 16, 22, 0.9) 0%, rgba(239, 68, 68, 0.6) 100%);
}

.panel-collapsed-content {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.accordion-panel.active .panel-collapsed-content {
  opacity: 0;
  pointer-events: none;
}

.vert-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 2px;
  transform: rotate(180deg);
  white-space: nowrap;
}

.service-expand-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
}

.accordion-panel.active .service-expand-img {
  opacity: 1;
}

.panel-expanded-content {
  position: relative;
  z-index: 10;
  padding: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.accordion-panel.active .panel-expanded-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.expanded-inner {
  max-width: 500px;
}

.expanded-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}

.popularity-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--accent-primary);
  color: #030b0c;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(15, 164, 175, 0.4);
}

.expanded-subtitle {
  font-size: 1.1rem;
  color: #a9fc81;
  margin-bottom: 15px;
}

.expanded-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1.6;
  margin-bottom: 20px;
}

.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.benefit-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(5px);
}

.benefit-badge i {
  color: #a9fc81;
}

@media (max-width: 768px) {
  .services-accordion-container {
    flex-direction: column;
    height: 700px;
  }

  .accordion-panel {
    width: 100%;
  }

  .panel-collapsed-content {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .vert-text {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 2px;
  }

  .panel-expanded-content {
    padding: 20px;
  }

  .expanded-title {
    font-size: 1.5rem;
  }

  .expanded-subtitle {
    font-size: 1rem;
  }
}



/* NEW SERVICES GRID LAYOUT */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background-color: #050b0f;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  opacity: 0.8;
}

.card-teal::before {
  background: linear-gradient(90deg, #0FA4AF, rgba(15, 164, 175, 0.1));
}

.card-blue::before {
  background: linear-gradient(90deg, #06b6d4, rgba(6, 182, 212, 0.1));
}

.card-orange::before {
  background: linear-gradient(90deg, #fbbf24, rgba(251, 191, 36, 0.1));
}

.card-pink::before {
  background: linear-gradient(90deg, #ec4899, rgba(236, 72, 153, 0.1));
}

.service-card .card-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}

.card-teal .card-glow {
  background: #0FA4AF;
}

.card-blue .card-glow {
  background: #06b6d4;
}

.card-orange .card-glow {
  background: #fbbf24;
}

.card-pink .card-glow {
  background: #ec4899;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.card-teal .card-icon {
  color: #0FA4AF;
  border-color: rgba(15, 164, 175, 0.2);
}

.card-blue .card-icon {
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.2);
}

.card-orange .card-icon {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

.card-pink .card-icon {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.2);
}

.card-title-area {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-category {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.card-teal .card-category {
  color: #0FA4AF;
}

.card-blue .card-category {
  color: #06b6d4;
}

.card-orange .card-category {
  color: #fbbf24;
}

.card-pink .card-category {
  color: #ec4899;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.card-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 5px;
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 25px 0;
}

.before-after-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ba-header {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
}

.ba-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ba-before {
  flex: 1;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.ba-arrow {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 3px;
}

.card-teal .ba-arrow {
  color: #0FA4AF;
}

.card-blue .ba-arrow {
  color: #06b6d4;
}

.card-orange .ba-arrow {
  color: #fbbf24;
}

.card-pink .ba-arrow {
  color: #ec4899;
}

.ba-after {
  flex: 1;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.6;
}

.card-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.card-bullets li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.card-teal .card-bullets li::before {
  background: #0FA4AF;
  box-shadow: 0 0 5px #0FA4AF;
}

.card-blue .card-bullets li::before {
  background: #06b6d4;
  box-shadow: 0 0 5px #06b6d4;
}

.card-orange .card-bullets li::before {
  background: #fbbf24;
  box-shadow: 0 0 5px #fbbf24;
}

.card-pink .card-bullets li::before {
  background: #ec4899;
  box-shadow: 0 0 5px #ec4899;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.card-cta {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.card-cta:hover {
  opacity: 0.7;
}

.card-teal .card-cta {
  color: #0FA4AF;
}

.card-blue .card-cta {
  color: #06b6d4;
}

.card-orange .card-cta {
  color: #fbbf24;
}

.card-pink .card-cta {
  color: #ec4899;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-teal .card-badge {
  color: #0FA4AF;
  border: 1px solid rgba(15, 164, 175, 0.3);
  background: rgba(15, 164, 175, 0.05);
}

.card-blue .card-badge {
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
}

.card-orange .card-badge {
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.card-pink .card-badge {
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.05);
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ba-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ba-arrow {
    transform: rotate(90deg);
    margin-left: 20px;
  }

  .card-bullets {
    grid-template-columns: 1fr;
  }
}


/* HOVER EXPAND ACCORDION (REACT/FRAMER-MOTION STYLE IN VANILLA CSS) */
.hover-expand-container {
  display: flex;
  gap: 15px;
  width: 100%;
  height: 600px;
  margin: 0 auto;
}

.he-item {
  position: relative;
  flex: 1;
  /* collapsed width (approx 80px depending on container) */
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  background: #050b0f;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.he-item.active,
.he-item:hover {
  flex: 8;
  /* expanded width */
  border-color: rgba(255, 255, 255, 0.15);
}

.he-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.8s ease, opacity 0.6s ease;
}

.he-item.active .he-bg,
.he-item:hover .he-bg {
  transform: scale(1.05);
  opacity: 1;
  /* Brighter when expanded */
}

/* Gradient overlay for readability */
.he-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 11, 15, 1) 0%, rgba(5, 11, 15, 0.8) 30%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Collapsed text state */
.he-collapsed {
  position: absolute;
  bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.he-vert-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 2px;
  transform: rotate(180deg);
  white-space: nowrap;
}

.he-item.active .he-collapsed,
.he-item:hover .he-collapsed {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Content Box - Slides up, no fade, high readability */
.he-content-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Slide it down slightly and hide via overflow, but keep opacity 1 */
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.he-item.active .he-content-box,
.he-item:hover .he-content-box {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* The inner content has a fixed width so text doesn't wrap/squish while animating horizontally */
.he-content-inner {
  width: 550px;
  /* Fixed width to reveal cleanly like a sliding window */
  max-width: calc(100% - 80px);
  /* For mobile */
}

/* Header */
.he-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.he-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  border: 1px solid;
}

.he-category {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

.he-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease;
}

.he-item.active .he-title,
.he-item:hover .he-title {
  opacity: 1;
  transform: translateY(0);
}

.he-desc {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* BA Box */
.he-ba-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.he-ba-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.he-ba-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  min-width: 60px;
  padding-top: 2px;
}

.he-ba-text {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  font-weight: 500;
}

.text-white {
  color: #fff;
  font-weight: 500;
}

/* Bullets */
.he-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  margin: 0 0 25px 0;
}

.he-bullets li {
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.he-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--bullet-color);
  box-shadow: 0 0 5px var(--bullet-color);
  flex-shrink: 0;
}

/* Footer */
.he-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.he-cta {
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s;
}

.he-cta:hover {
  opacity: 1;
  text-shadow: 0 0 15px currentColor;
}

.he-cta i {
  transition: transform 0.3s ease;
}

.he-cta:hover i {
  transform: translateX(6px);
}

.he-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid;
  backdrop-filter: blur(5px);
}

@media (max-width: 992px) {
  .hover-expand-container {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }

  .he-item {
    flex: none;
    width: 100%;
    height: 80px;
    border-radius: 20px;
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .he-item.active,
  .he-item:hover {
    height: 650px;
    flex: none;
  }

  .he-collapsed {
    bottom: auto;
    top: 40px;
    transform: translateY(-50%);
  }

  .he-vert-text {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .he-content-inner {
    width: 100%;
  }

  .he-bullets {
    grid-template-columns: 1fr;
  }

  .he-content-box {
    padding: 25px;
  }

  .he-ba-row {
    flex-direction: column;
    gap: 5px;
  }

  .he-ba-label {
    min-width: auto;
  }
}


/* ML15 AnimeJS Category text styles */
.he-category.ml15 {
  font-weight: 900;
  font-size: 1.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  display: block;
  width: 100%;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 15px var(--cat-color), 0 0 30px var(--cat-color);
  line-height: 1.1;
  pointer-events: none;
}

.he-category.ml15 .word {
  display: inline-block;
  line-height: 1.2em;
  transform-origin: center center;
  /* GPU Acceleration for smoother animation */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* WHY US - 3D PERSPECTIVE SCROLL (REFINED) */
.perspective-section {
  position: relative;
  background: #030b0c;
  overflow: visible;
  /* Changed from hidden to avoid clipping */
}

.perspective-scroll-track {
  height: 350vh;
  /* More scroll space for smoother flow */
}

.sticky-perspective-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 100px;
  overflow: visible;
  /* Changed from hidden */
}

.perspective-3d-scene {
  width: 100%;
  max-width: 1100px;
  height: 80vh;
  /* Increased height */
  perspective: 1200px;
  /* Better perspective depth */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.perspective-text-content {
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  text-align: center;
  padding: 0 40px;
}

.text-line {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  /* Slightly brighter base */
  line-height: 1.3;
  margin-bottom: 35px;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.text-line.main {
  font-size: 3.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 900;
}

.text-line.is-active {
  color: #fff !important;
  text-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.text-line.highlight.is-active {
  color: #06b6d4 !important;
}

.text-line.final.is-active {
  background: linear-gradient(to right, #06b6d4, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.perspective-bottom-fade {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 40vh;
  /* Reduced height to show more text */
  background: linear-gradient(to bottom, transparent, #030b0c 80%);
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 768px) {
  .text-line {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .text-line.main {
    font-size: 2.2rem;
  }

  .perspective-3d-scene {
    height: 75vh;
  }
}

/* =========================================================================
   MANIFESTO — WHY XENATRIX AI (CINEMATIC SCROLL + AUDIO)
   ========================================================================= */

.manifesto-section {
  background: #030810;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.manifesto-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.manifesto-sticky-wrap {
  position: relative;
  z-index: 1;
  padding: 120px 5% 100px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Progress bar */
.manifesto-progress-track {
  display: none;
  position: absolute;
  top: 100px;
  left: 0;
  width: 3px;
  height: calc(100% - 180px);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  z-index: 5;
}

.manifesto-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  transition: height 0.12s linear;
}

.manifesto-inner {
  position: relative;
}

/* Title */
.manifesto-badge-row {
  margin-bottom: 25px;
  text-align: center;
}

.manifesto-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Lines container */
.manifesto-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each line */
.m-line {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.06);
  padding: 15px 0 15px 85px;
  position: relative;
  transition: color 0.4s ease, transform 0.4s ease, filter 0.4s ease, border-color 0.4s ease;
  letter-spacing: -0.02em;
  filter: blur(1.5px);
  will-change: color, transform, filter;
  border-left: none;
  cursor: pointer;
  user-select: none;
}

/* Line number */
.m-line::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 5px;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
  width: 38px;
  text-align: center;
}

/* Sound icon indicator (hidden by default) */
.m-line::after {
  content: '\f028';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 0.8rem;
  color: rgba(0, 229, 255, 0);
  transition: all 0.3s ease;
}

.m-line.is-playing::after {
  transform: translateY(-50%) scale(1);
  color: rgba(0, 229, 255, 0.6);
  animation: soundPulse 1s infinite alternate;
}

@keyframes soundPulse {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

/* Sub-lines */
.m-line.m-sub {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 600;
  padding-left: 100px;
  border-left: none;
}

.m-line.m-sub::before {
  left: 28px;
}

/* Highlight lines */
.m-line.m-highlight {
  color: rgba(255, 255, 255, 0.07);
}

/* Strikethrough words */
.m-strike {
  position: relative;
  color: inherit;
  transition: color 0.4s ease, text-decoration-color 0.4s ease;
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
}

/* Accent words */
.m-accent {
  color: rgba(0, 229, 255, 0.1);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

em {
  font-style: italic;
  color: inherit;
}

/* ---- HOVER STATE (mouse interaction) ---- */
.m-line:hover {
  color: rgba(255, 255, 255, 0.5);
  filter: blur(0.5px);
  transform: translateX(4px);
}

.m-line:hover::before {
  color: rgba(255, 255, 255, 0.2);
}

.m-line:hover .m-strike {
  color: rgba(255, 61, 113, 0.5);
  text-decoration-color: rgba(255, 61, 113, 0.3);
}

.m-line:hover .m-accent {
  color: rgba(0, 229, 255, 0.5);
}

/* ---- ACTIVE / READING STATE (scroll-triggered) ---- */
.m-line.is-reading {
  color: rgba(255, 255, 255, 0.95) !important;
  filter: blur(0px) !important;
  border-left-color: transparent;
  transform: translateX(10px);
}

.m-line.is-reading::before {
  color: #00E5FF;
}

.m-line.is-reading .m-strike {
  color: #ff3d71;
  text-decoration-color: rgba(255, 61, 113, 0.7);
}

.m-line.m-highlight.is-reading {
  color: #ffffff !important;
}

.m-line.is-reading .m-accent {
  color: #00E5FF;
  text-shadow: 0 0 25px rgba(0, 229, 255, 0.5), 0 0 50px rgba(0, 229, 255, 0.2);
}

/* ---- READ STATE (already scrolled past) ---- */
.m-line.is-read {
  color: rgba(255, 255, 255, 0.16);
  filter: blur(0px);
  transform: translateX(0);
  border-left-color: transparent;
}

.m-line.is-read::before {
  color: rgba(255, 255, 255, 0.07);
}

.m-line.is-read .m-strike {
  color: rgba(255, 61, 113, 0.2);
  text-decoration-color: rgba(255, 61, 113, 0.15);
}

.m-line.is-read .m-accent {
  color: rgba(0, 229, 255, 0.2);
  text-shadow: none;
}

/* Read state should still allow hover override */
.m-line.is-read:hover {
  color: rgba(255, 255, 255, 0.45);
  filter: blur(0px);
  transform: translateX(4px);
}

.m-line.is-read:hover .m-strike {
  color: rgba(255, 61, 113, 0.45);
  text-decoration-color: rgba(255, 61, 113, 0.3);
}

.m-line.is-read:hover .m-accent {
  color: rgba(0, 229, 255, 0.45);
}

/* ---- CLOSING ---- */
.manifesto-closing {
  margin-top: 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.manifesto-closing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.m-closing-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
  margin: 0 auto 25px;
}

.m-closing-line:last-child {
  margin: 25px auto 0;
}

.m-final {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .manifesto-sticky-wrap {
    padding: 60px 5% 50px;
  }

  .manifesto-badge-row {
    margin-bottom: 30px;
  }

  .manifesto-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .m-line {
    padding: 12px 0 12px 40px;
    font-size: clamp(1.1rem, 4.2vw, 1.6rem);
  }

  .m-line::before {
    font-size: 0.6rem;
    width: 28px;
    top: 12px;
  }

  .m-line::after {
    display: none;
  }

  .m-line.m-sub {
    padding-left: 55px;
    font-size: clamp(0.9rem, 3.2vw, 1.2rem);
  }

  .m-line.m-sub::before {
    left: 12px;
  }

  .manifesto-progress-track {
    display: none;
    display: none;
  }

  .manifesto-closing {
    margin-top: 40px;
  }

  .m-final {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  }
}



/* ═══════════════════════════════════════════
   TERMINAL DEMO PANEL
   ═══════════════════════════════════════════ */

/* --- Trigger Button --- */
.btn-demo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 164, 175, 0.5);
  background: rgba(15, 164, 175, 0.06);
  color: #0FA4AF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-demo-trigger:hover {
  border-color: rgba(15, 164, 175, 0.9);
  background: rgba(15, 164, 175, 0.12);
  box-shadow: 0 0 20px rgba(15, 164, 175, 0.2);
}

.btn-demo-trigger:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(15, 164, 175, 0.15), transparent);
  animation: shimmerSweep 0.6s ease forwards;
}

@keyframes shimmerSweep {
  to {
    left: 100%;
  }
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: demoDotPulse 1.5s infinite;
}

@keyframes demoDotPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 4px rgba(40, 200, 64, 0);
  }
}

/* --- Overlay --- */
.terminal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.terminal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Panel --- */
.terminal-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 560px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9999;
  background: #030f10;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(15, 164, 175, 0.3);
  border-left: 1px solid rgba(15, 164, 175, 0.15);
  border-right: 1px solid rgba(15, 164, 175, 0.15);
  box-shadow: 0 -20px 80px rgba(15, 164, 175, 0.12), 0 -4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-panel.is-open {
  transform: translateX(-50%) translateY(0);
}

/* --- Header --- */
.terminal-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(15, 164, 175, 0.1);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.tdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tdot-red {
  background: #ff5f57;
}

.tdot-yellow {
  background: #febc2e;
}

.tdot-green {
  background: #28c840;
  animation: demoDotPulse 2s infinite;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(15, 164, 175, 0.6);
}

.terminal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.terminal-close:hover {
  color: #fff;
}

/* --- Body --- */
.terminal-body {
  padding: 24px;
}

.terminal-typewriter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #0FA4AF;
  line-height: 1.8;
  min-height: 60px;
}

.terminal-typewriter .tw-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #0FA4AF;
  animation: twBlink 0.7s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes twBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* --- Form --- */
.terminal-form-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.tfield {
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tfield.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tfield label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(15, 164, 175, 0.7);
  margin-bottom: 4px;
}

.tfield input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(15, 164, 175, 0.05);
  border: 1px solid rgba(15, 164, 175, 0.2);
  border-radius: 8px;
  color: #AFDDE5;
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
  transition: all 0.25s ease;
}

.tfield input::placeholder {
  color: rgba(15, 164, 175, 0.3);
}

.tfield input:focus {
  border-color: rgba(15, 164, 175, 0.7);
  box-shadow: 0 0 0 3px rgba(15, 164, 175, 0.08);
  background: rgba(15, 164, 175, 0.08);
}

/* --- Submit --- */
.terminal-submit {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: linear-gradient(135deg, #0FA4AF, #DA7B93);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: inset 0 0 10px rgba(15, 164, 175, 0.2);
}

.terminal-submit.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 164, 175, 0.35);
}

.terminal-submit.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.tsub-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: rgba(255, 255, 255, 0.5);
}

.terminal-submit.is-loading .tsub-progress {
  animation: tsubProgressAnim 3s linear forwards;
}

@keyframes tsubProgressAnim {
  to {
    width: 100%;
  }
}

.tdots-anim {
  animation: tdotsAnim 1.2s infinite;
}

.tdots-anim:nth-child(2) {
  animation-delay: 0.2s;
}

.tdots-anim:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes tdotsAnim {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* --- Success --- */
.terminal-success {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #28c840;
  line-height: 1.8;
}

.terminal-success .ts-check {
  text-align: center;
  margin-top: 20px;
}

.terminal-success .ts-check i {
  font-size: 48px;
  color: #28c840;
  animation: tsCheckGlow 1.5s infinite alternate;
}

@keyframes tsCheckGlow {
  0% {
    text-shadow: 0 0 10px rgba(40, 200, 64, 0.3);
  }

  100% {
    text-shadow: 0 0 30px rgba(40, 200, 64, 0.6);
  }
}

.terminal-success .ts-message {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.terminal-success .ts-sub {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .terminal-panel {
    width: 100%;
    border-radius: 16px 16px 0 0;
  }

  .terminal-body {
    padding: 20px;
  }

  .tfield input {
    font-size: 16px;
  }
}



/* ── ORBITAL PROCESS SECTION ── */
.orbital-process-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: #030B0C;
  font-family: 'Space Grotesk', sans-serif;
}

.orbital-wrap {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 40px auto;
  max-width: 800px;
}

/* ── DYNAMIC ORBITAL PROCESS ── */
.process-section {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #030B0C;
  font-family: 'Space Grotesk', sans-serif;
}

.process-header {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 2;
}

.process-header h2 {
  font-size: clamp(0.8rem, 2.0vw, 1.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff;
}

.process-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Orbit Canvas & Rings */
.orbit-canvas {
  position: relative;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  flex-shrink: 0;
  z-index: 2;
  margin: 0 auto;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.18);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ring-1 {
  width: 58%;
  height: 58%;
}

.ring-2 {
  width: 78%;
  height: 78%;
}

.ring-3 {
  width: 98%;
  height: 98%;
}

.outer-visible {
  opacity: 1;
  animation: outerPulse 2s infinite;
}

@keyframes outerPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  }

  50% {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
  }
}

/* Center Orb & Nodes */
.orb-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(120px, 28vw);
  height: min(120px, 28vw);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.orb-pulse,
.orb-pulse-2 {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 65%);
  animation: pulsate 2.4s ease-in-out infinite;
}

.orb-pulse-2 {
  inset: -36px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 60%);
  animation-delay: 0.8s;
}

@keyframes pulsate {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.14);
    opacity: 0.5;
  }
}

.orb-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(6, 182, 212, 0.35), rgba(6, 182, 212, 0.06));
  border: 1.5px solid rgba(6, 182, 212, 0.55);
  cursor: pointer;
  box-shadow: 0 0 48px rgba(6, 182, 212, 0.25), 0 0 100px rgba(6, 182, 212, 0.09);
  transition: all 0.35s ease;
  overflow: hidden;
}

.orb-btn::before {
  content: '';
  position: absolute;
  inset: 12% 18% 0 0;
  width: 28%;
  height: 22%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.orb-btn:hover {
  box-shadow: 0 0 70px rgba(6, 182, 212, 0.45), 0 0 140px rgba(6, 182, 212, 0.15);
  transform: scale(1.06);
  border-color: rgba(6, 182, 212, 0.85);
}

.orb-icon {
  font-size: 20px;
  color: #fff;
  margin-bottom: 5px;
}

.orb-label {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 80%;
}

/* Nodes Styling */
.step-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s, opacity 0.5s;
  z-index: 8;
  border: 1.5px solid transparent;
  opacity: 0;
}

.step-node.visible {
  opacity: 1;
}

.step-node:hover {
  transform: scale(1.18) !important;
}

.step-node.active-node {
  transform: scale(1.22) !important;
  box-shadow: 0 0 30px currentColor;
}

.sn-num {
  font-size: clamp(7px, 1.2vw, 9px);
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.8;
}

.sn-icon {
  font-size: clamp(22px, 4.5vw, 34px);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.sn-label {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  white-space: normal;
  padding: 0 4px;
  max-width: 90%;
  line-height: 1.1;
}

/* SVG Connecting Lines & Arrows */
.orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.svg-line {
  stroke: #06b6d4;
  stroke-width: 2;
  stroke-dasharray: 10, 10;
  animation: dashFlow 1s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

.svg-line.visible {
  opacity: 0.4;
}

.svg-line.active {
  opacity: 1;
  stroke-width: 3;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -20;
  }
}

/* Detail Panel */
.detail-panel {
  margin: 40px auto 0;
  width: min(480px, 90vw);
  background: rgba(11, 15, 26, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px 26px;
  position: relative;
  z-index: 4;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-height: 140px;
}

.detail-panel.show {
  opacity: 1;
  transform: translateY(0);
}

.dp-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dp-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid currentColor;
}

.dp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.dp-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(240, 244, 255, 0.75);
  line-height: 1.8;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dp-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.dp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.dp-dot.active {
  background: #06b6d4;
  transform: scale(1.5);
  box-shadow: 0 0 10px #06b6d4;
}

.process-hint {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

/* ─── FAQ SECTION ─── */
.faq-section {
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  background: #060810;
}

.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 75% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header h2 {
  font-size: clamp(0.8rem, 2.0vw, 1.25rem);
  font-weight: 800;
  color: #fff;
}

.faq-header p {
  color: rgba(240, 244, 255, 0.5);
  margin-top: 10px;
  font-size: .95rem;
}

.faq-bot-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.faq-bot-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #06b6d4, #8b5cf6);
  border-radius: 2px 0 0 2px;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-avatar i {
  font-size: 18px;
  color: #06b6d4;
}

.bot-intro {
  flex: 1;
  min-width: 0;
}

.bot-intro strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #06b6d4;
  margin-bottom: 2px;
}

.bot-intro span {
  font-size: 12px;
  color: rgba(240, 244, 255, 0.5);
}

.bot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
  flex-shrink: 0;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.open {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: -3px 0 0 0 #06b6d4, 0 0 20px rgba(6, 182, 212, 0.07);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  gap: 14px;
  user-select: none;
  transition: background .2s;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-q-text {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  line-height: 1.45;
  color: #fff;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 244, 255, 0.5);
  font-size: 13px;
  flex-shrink: 0;
  transition: all .35s ease;
}

.faq-item.open .faq-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  color: #06b6d4;
  transform: rotate(45deg);
}

.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.open .faq-answer-wrap {
  max-height: 400px;
}

.faq-answer-content {
  padding: 0 22px 20px;
}

.faq-typing-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.faq-mini-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-mini-av i {
  font-size: 11px;
  color: #06b6d4;
}

.faq-answer-text {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: rgba(240, 244, 255, .75);
  line-height: 1.8;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

/* Add spinning animations to orbital rings */
.ring-1 {
  animation: spinCW 25s linear infinite;
}

.ring-2 {
  animation: spinCCW 40s linear infinite;
}

.ring-3 {
  animation: spinCW 60s linear infinite;
}

@keyframes spinCW {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinCCW {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.process-hint {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .process-section {
    padding: 80px 15px;
  }

  .orbit-canvas {
    width: min(320px, 85vw);
    height: min(320px, 85vw);
  }

  .detail-panel {
    width: 100%;
    padding: 20px;
    min-height: 120px;
  }

  .dp-title {
    font-size: 1rem;
  }

  .dp-desc {
    font-size: 12px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .orbit-canvas {
    width: min(280px, 95vw);
    height: min(280px, 95vw);
  }

  .orb-label {
    font-size: 7px;
  }

  .orb-icon {
    font-size: 16px;
  }

  .process-header h2 {
    font-size: 0.9rem;
  }
}

.process-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(15, 164, 175, 0.06) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  z-index: 0;
}

.infographic-wrap {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.infographic-line-container {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1;
}

.info-line-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
}

.info-line-progress {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0FA4AF, #DA7B93);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-particle {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 15px #0FA4AF, 0 0 5px #fff;
  z-index: 2;
  opacity: 0;
  transition: left 2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

.info-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.info-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(#030B0C, #030B0C) padding-box,
    linear-gradient(135deg, var(--c1), var(--c2)) border-box;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: #030B0C;
  cursor: pointer;
}

.info-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px var(--glow), 0 0 80px rgba(15, 164, 175, 0.1);
}

.orbit-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
}

.dot-1 {
  animation: orbit 4s linear infinite;
}

.dot-2 {
  animation: orbit 4s linear infinite reverse;
  animation-delay: -2s;
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(54px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(54px) rotate(-360deg);
  }
}

.info-svg {
  width: 60px;
  height: 60px;
}

.info-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.info-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0 10px;
}

.info-connector {
  position: absolute;
  right: -12px;
  top: 35px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-muted);
  background: #030B0C;
  animation: connectorPulse 2s infinite;
}

@keyframes connectorPulse {
  0% {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
  }

  50% {
    border-color: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
  }
}

/* SVG ANIMATIONS */
.post-card {
  animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.svg-heart {
  animation: heartPulse 1.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.svg-phone {
  animation: ringPhone 1s infinite;
  transform-origin: center;
}

@keyframes ringPhone {

  0%,
  100% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }
}

.svg-wave {
  animation: ringWave 2s infinite;
  transform-origin: center;
  opacity: 0;
}

.wave-2 {
  animation-delay: 0.6s;
}

@keyframes ringWave {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.svg-draw {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawLine 2s infinite alternate;
}

.line-2 {
  animation-delay: 0.2s;
}

.line-3 {
  animation-delay: 0.4s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.svg-pen {
  animation: penWrite 2s infinite;
}

@keyframes penWrite {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-5px, -5px);
  }
}

.svg-cursor {
  animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.svg-flame {
  animation: flicker 0.2s infinite alternate;
  transform-origin: top;
}

@keyframes flicker {
  from {
    transform: scaleY(1);
    opacity: 1;
  }

  to {
    transform: scaleY(1.3);
    opacity: 0.8;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .infographic-line-container {
    display: none;
  }

  .info-connector {
    right: 50%;
    bottom: -32px;
    top: auto;
    transform: translateX(50%) rotate(90deg);
    animation: connectorPulseMobile 2s infinite;
  }

  @keyframes connectorPulseMobile {
    0% {
      transform: translateX(50%) rotate(90deg);
    }

    50% {
      transform: translateX(50%) rotate(90deg) scale(1.1);
      border-color: var(--accent-primary);
    }

    100% {
      transform: translateX(50%) rotate(90deg);
    }
  }

  .info-step {
    padding-bottom: 20px;
  }
}

/* ── PRICING SECTION ── */
.pricing-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

/* ── CURRENCY SWITCHER ── */
.pr-currency-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.curr-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

#curr-toggle:checked~.curr-label:last-child,
#curr-toggle:not(:checked)~.curr-label:first-child {
  color: var(--accent-primary);
}

.curr-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.curr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.curr-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  transition: 0.4s;
}

.curr-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 0 10px var(--accent-primary);
}

input:checked+.curr-slider:before {
  transform: translateX(20px);
}

/* ── CARD ── */
.pr-card {
  position: relative;
  background: rgba(1, 36, 40, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 164, 175, 0.15);
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

/* INITIAL STATE FOR SPLIT ANIMATION */
.reveal-center-item {
  opacity: 0;
  transform: scale(0.8);
}

.pr-card:hover {
  background: rgba(1, 36, 40, 0.6);
  border-color: var(--accent-primary);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(15, 164, 175, 0.2);
}

.pr-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, var(--gc) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pr-card:hover .pr-glow {
  opacity: 1;
}

.pr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pr-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ic);
  background: color-mix(in srgb, var(--ic) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 25%, transparent);
}

.pr-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lc);
  background: color-mix(in srgb, var(--lc) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--lc) 25%, transparent);
  padding: 3px 10px;
  border-radius: 50px;
}

/* Ensure no forced uppercase for case-sensitivity */
.pricing-section *,
.pr-modal * {
  text-transform: none !important;
}

.pr-title {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  margin: 0;
}

.pr-hook {
  font-size: 0.78rem;
  color: var(--text-muted, #367f80);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.pr-price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.pr-from {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
}

.pr-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ac);
  line-height: 1;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  letter-spacing: -0.02em;
}

.pr-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--bc) 30%, transparent);
  background: color-mix(in srgb, var(--bc) 8%, transparent);
  color: var(--bc);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pr-trigger:hover {
  background: color-mix(in srgb, var(--bc) 16%, transparent);
  border-color: color-mix(in srgb, var(--bc) 60%, transparent);
  transform: none;
}

.pr-trigger i {
  transition: transform 0.25s ease;
}

.pr-trigger:hover i {
  transform: translateX(4px);
}

/* ── TYPEWRITER ── */
.typewriter-trigger {
  min-height: 1.5em;
}

.typewriter-trigger::after {
  content: '|';
  animation: blink 0.7s infinite;
  margin-left: 2px;
  color: var(--accent-primary);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Static Hover State */
.pr-card:hover {
  transform: translateY(-12px) scale(1.02);
}

.pr-custom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 164, 175, 0.05);
  border: 1px dashed rgba(15, 164, 175, 0.3);
  border-radius: 16px;
  padding: 22px 28px;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pr-custom-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pr-custom-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading, #AFDDE5);
  margin: 0 0 3px;
}

.pr-custom-sub {
  font-size: 13px;
  color: var(--text-muted, #367f80);
  margin: 0;
}

.pr-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(15, 164, 175, 0.05);
  padding: 10px 24px;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pr-disclaimer i {
  color: var(--accent-primary);
  font-size: 14px;
}

/* ── MODAL OVERLAY ── */
.pr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pr-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── MODAL ── */
.pr-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: min(680px, 95vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #030f10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  z-index: 9001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 164, 175, 0.3) transparent;
}

.pr-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.pr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.pr-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.pr-modal-inner {
  padding: 36px;
}

/* ── MODAL CONTENT STYLES ── */
.pm-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pm-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.pm-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.pm-sub {
  font-size: 13px;
  color: rgba(175, 221, 229, 0.5);
  margin: 0;
}

.pm-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.pm-tier {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pm-tier.recommended {
  border-color: var(--tier-color, rgba(15, 164, 175, 0.5));
  background: color-mix(in srgb, var(--tier-color, #0FA4AF) 6%, transparent);
}

.pm-tier-badge {
  position: absolute;
  top: -1px;
  right: 12px;
  background: var(--tier-color, #0FA4AF);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
}

.pm-tier-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.pm-tier-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tier-color, #0FA4AF);
  font-family: var(--font-heading, sans-serif);
  line-height: 1;
  margin: 0;
}

.pm-tier-desc {
  font-size: 11px;
  color: rgba(175, 221, 229, 0.4);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.pm-tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  color: rgba(175, 221, 229, 0.7);
  line-height: 1.4;
}

.pm-tier-features li::before {
  content: '✓';
  color: var(--tier-color, #0FA4AF);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pm-note {
  background: rgba(15, 164, 175, 0.06);
  border: 1px solid rgba(15, 164, 175, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: rgba(175, 221, 229, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pm-note strong {
  color: #0FA4AF;
}

.pm-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pm-cta a,
.pm-cta button {
  flex: 1;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 140px;
}

.pm-btn-primary {
  background: linear-gradient(135deg, #0FA4AF, #024950);
  color: white;
  border: none;
}

.pm-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.pm-btn-secondary {
  background: transparent;
  color: rgba(175, 221, 229, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pm-tiers {
    grid-template-columns: 1fr;
  }

  .pr-modal-inner {
    padding: 24px 20px;
  }

  .pr-custom-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.faq-answer-text::after {
  content: '|';
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #06b6d4;
  margin-left: 2px;
  vertical-align: middle;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════════════════════
   XENATRIX AI — COMPREHENSIVE FIXES & ENHANCEMENTS PATCH
   Applied on top of base style.css
   ════════════════════════════════════════════════════════════════ */

/* ── OVERRIDE: tfield input font-size (was nested bug) ── */
.tfield input {
  font-size: 16px;
}

/* ════════════════════════════════════════════════════════════════
   1. UNIFORM SPACING SYSTEM OVERRIDE
   Desktop: 30px section gap, 15px inner gap
   Mobile:  20px section gap, 10px inner gap
   ════════════════════════════════════════════════════════════════ */
:root {
  --gap-section: 15px;
  --gap-inner: 8px;
  --gap-section-mobile: 10px;
  --gap-inner-mobile: 5px;
  /* Keep existing section padding vars */
  --section-padding-desktop: 45px;
  --section-padding-tablet: 30px;
  --section-padding-mobile: 25px;
}

/* Section headers uniform bottom gap */
.section-header,
.fp-header,
.portfolio-header,
.faq-header,
.process-header,
.about-section .section-header {
  margin-bottom: var(--gap-section) !important;
}

/* Inner content gaps */
.section-badge+h2,
.section-badge+.section-title,
.section-badge+.bento-heading,
.section-badge+.manifesto-title {
  margin-top: var(--gap-inner) !important;
}

h2+p,
h2+.section-subtitle,
.section-title+.section-subtitle,
.section-title+p {
  margin-top: var(--gap-inner) !important;
}

/* ════════════════════════════════════════════════════════════════
   2. UNIFIED TRENDY SECTION SEPARATOR
   Single definition — replaces ALL .section-divider instances
   ════════════════════════════════════════════════════════════════ */
.section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 40px 0;
  background: transparent;
  overflow: visible;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(15, 164, 175, 0.15) 20%,
      rgba(15, 164, 175, 0.6) 45%,
      rgba(218, 123, 147, 0.6) 55%,
      rgba(15, 164, 175, 0.15) 80%,
      transparent 100%);
}

/* Glowing center dot */
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow:
    0 0 8px 2px rgba(15, 164, 175, 0.8),
    0 0 20px 4px rgba(15, 164, 175, 0.4);
  animation: dividerPulse 2.5s ease-in-out infinite;
}

@keyframes dividerPulse {

  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

@media (max-width: 768px) {
  .section-divider {
    margin: 20px 0;
  }
}

/* ════════════════════════════════════════════════════════════════

/* Hire Me button */
.nav-actions .btn-primary {
  font-size: 0.82rem;
  padding: 8px 20px;
  letter-spacing: 0.03em;
}

/* Theme toggle */
.theme-toggle {
  background: rgba(1, 36, 40, 0.5);
  border: 1px solid rgba(15, 164, 175, 0.15);
}

/* Mobile nav full-screen overlay */
@media (max-width: 768px) {
  .navbar {
    height: 64px;
    padding: 0 5%;
  }

  .navbar.scrolled {
    height: 58px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(3, 11, 12, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 998;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
    border: none;
    padding: 20px;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 32px;
    letter-spacing: 0.12em;
    width: 220px;
    text-align: center;
  }

  .nav-links a.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
  }
}

/* ════════════════════════════════════════════════════════════════
   4. ENHANCED CLIENTS / REVIEWS SECTION
   ════════════════════════════════════════════════════════════════ */

/* Marquee strip */
.clients-marquee-wrapper {
  overflow: hidden;
  position: relative;
  margin-bottom: 50px;
  border-top: 1px solid rgba(15, 164, 175, 0.1);
  border-bottom: 1px solid rgba(15, 164, 175, 0.1);
  padding: 14px 0;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.clients-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.clients-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.clients-marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 18s linear infinite;
  width: max-content;
}

.cm-item {
  display: flex;
  align-items: center;
  padding: 0 40px;
  border-right: 1px solid rgba(15, 164, 175, 0.15);
  white-space: nowrap;
}

.cm-item span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.cm-item:hover span {
  opacity: 1;
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* Review cards grid */
.review-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-section);
  margin-bottom: 50px;
}

/* 3D flip card */
.review-card {
  perspective: 1000px;
  height: 320px;
  cursor: pointer;
}

.review-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover .review-card-inner,
.review-card.flipped .review-card-inner {
  transform: rotateY(180deg);
}

.review-front,
.review-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

/* Colored top border accent */
.review-front::before,
.review-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--rev-color, var(--accent-primary));
  opacity: 0.8;
}

/* Subtle glow on hover */
.review-card:hover .review-front,
.review-card:hover .review-back {
  border-color: var(--rev-color, var(--accent-primary));
  box-shadow: 0 0 30px rgba(15, 164, 175, 0.1), inset 0 0 40px rgba(15, 164, 175, 0.03);
}

.review-back {
  transform: rotateY(180deg);
  background: var(--bg-secondary);
  justify-content: space-between;
  align-items: center;
}

.review-quote-icon {
  font-size: 1.4rem;
  color: var(--rev-color, var(--accent-primary));
  opacity: 0.5;
  margin-bottom: var(--gap-inner);
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(175, 221, 229, 0.85);
  flex: 1;
  font-style: italic;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin: var(--gap-inner) 0;
  font-size: 0.75rem;
  color: #f59e0b;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.review-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Back side metrics */
.review-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-inner);
  width: 100%;
}

.review-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(15, 164, 175, 0.05);
  border: 1px solid rgba(15, 164, 175, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 8px;
}

.rm-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--rev-color, var(--accent-primary));
}

.rm-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.review-back-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Flip hint */
.review-card::after {
  content: 'Hover to see results →';
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.review-card:not(:hover)::after {
  opacity: 0.5;
}

/* Trust bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.trust-item i {
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* Mobile responsive reviews */
@media (max-width: 768px) {
  .review-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-section-mobile);
  }

  .review-card {
    height: auto;
    perspective: none;
  }

  .review-card-inner {
    transform-style: flat;
    transform: none !important;
  }

  .review-back {
    transform: none;
    position: static;
    margin-top: 12px;
    border-radius: var(--radius-lg);
  }

  .review-front {
    position: static;
    backface-visibility: visible;
  }

  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    padding: 4px 0;
  }

  .cm-item {
    padding: 0 24px;
  }
}

/* ════════════════════════════════════════════════════════════════
   5. GLOBAL MOBILE RESPONSIVENESS FIXES
   ════════════════════════════════════════════════════════════════ */

/* Container never overflows */
.container {
  padding: 0 5%;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container {
    padding: 0 4%;
  }
}

/* Section padding reset */
@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }

  /* Section headings */
  .section-title {
    font-size: clamp(0.8rem, 3.0vw, 1.2rem) !important;
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(0.75rem, 2.75vw, 1.1rem);
  }

  h3 {
    font-size: clamp(0.6rem, 2.25vw, 0.8rem);
  }

  /* Section gaps */
  .section-header {
    margin-bottom: var(--gap-section-mobile) !important;
  }

  .section-badge+h2,
  .section-badge+.section-title {
    margin-top: var(--gap-inner-mobile) !important;
  }

  h2+p,
  h2+.section-subtitle,
  .section-title+.section-subtitle {
    margin-top: var(--gap-inner-mobile) !important;
  }
}

/* ── Hero Section ── */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    min-height: 100svh;
    text-align: center;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-availability {
    margin: 0 auto;
    padding: 6px 14px;
    font-size: 0.7rem;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 5.6vw, 2.24rem) !important;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    max-width: 90%;
    text-align: center;
  }

  .hero-typing-container {
    font-size: 1rem;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .hero-cta .btn,
  .hero-cta .btn-demo-trigger {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .hero-stats {
    gap: 30px !important;
    margin-top: 30px;
    justify-content: center;
  }

  .hero-stats-separator {
    margin: 30px auto 20px;
  }
}

/* ── Featured Project ── */
@media (max-width: 768px) {
  .featured-project {
    padding: var(--section-padding-mobile) 0;
  }

  .fp-layout {
    grid-template-columns: 1fr !important;
    gap: var(--gap-section-mobile);
  }

  .fp-header h2 {
    font-size: clamp(0.7rem, 2.5vw, 1.0rem);
  }

  .fp-outcome-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-inner-mobile);
  }

  .fp-outcome-card {
    padding: 12px 8px;
  }

  .fp-screenshot-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-inner-mobile);
  }

  .fp-tech-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── Bento Portfolio ── */
@media (max-width: 768px) {
  .bento-portfolio-section {
    padding: var(--section-padding-mobile) 0;
  }

  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: var(--gap-section-mobile);
  }

  .size-large,
  .size-medium {
    grid-column: span 1 !important;
  }

  .bento-card-project {
    overflow: hidden;
  }

  .bento-content {
    padding: 16px;
  }

  .bento-title {
    font-size: 1.05rem;
  }

  .bento-desc {
    font-size: 0.85rem;
  }

  .muted-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .bento-footer-cta {
    padding: 24px 0 0;
    text-align: center;
  }
}

/* ── About Section ── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: var(--gap-section-mobile);
    text-align: center;
  }

  .about-photo-wrapper {
    max-width: 340px !important;
    margin: 0 auto !important;
  }

  .story-content {
    text-align: left;
  }

  .story-content h3 {
    font-size: 0.65rem;
  }

  .story-content p {
    font-size: 0.9rem;
  }

  .why-different-grid {
    grid-template-columns: 1fr !important;
    gap: var(--gap-section-mobile);
  }

  .diff-card {
    padding: 20px;
  }

  .tech-vault-container {
    min-height: 350px;
  }

  .organized-tech-grid {
    grid-template-columns: 1fr !important;
    gap: var(--gap-section-mobile);
  }
}

/* ── Services Section ── */
@media (max-width: 768px) {
  .hover-expand-container {
    flex-direction: column !important;
    height: auto !important;
    gap: 12px !important;
  }

  .he-item {
    flex: none !important;
    width: 100% !important;
    min-height: 70px;
    height: auto !important;
    max-height: 70px;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
    border-radius: 16px !important;
    overflow: hidden;
  }

  .he-item.active {
    max-height: 1200px !important;
  }

  .he-collapsed {
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 20px !important;
    right: auto !important;
    writing-mode: horizontal-tb !important;
  }

  .he-vert-text {
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }

  .he-content-box {
    position: relative !important;
    bottom: auto !important;
    padding: 30px 20px 20px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .he-content-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .he-bullets {
    grid-template-columns: 1fr 1fr !important;
  }

  .he-title {
    font-size: 1.2rem !important;
  }

  .he-category.ml15 {
    font-size: 1.2rem !important;
  }
}

/* ── Manifesto Section ── */
@media (max-width: 768px) {
  .manifesto-sticky-wrap {
    padding: 60px 5% 60px !important;
  }

  .m-line {
    font-size: clamp(1.2rem, 4.5vw, 2rem) !important;
    padding: 14px 0 !important;
  }

  .m-highlight {
    font-size: clamp(1.4rem, 5vw, 2.2rem) !important;
  }

  .m-sub {
    font-size: 0.85rem !important;
  }

  .manifesto-title {
    font-size: 1.6rem !important;
    text-align: center;
  }

  .m-final {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem) !important;
  }
}

/* ── Process Section ── */
@media (max-width: 768px) {
  .process-section {
    padding: var(--section-padding-mobile) 5% !important;
  }

  .process-header {
    text-align: center;
    padding: 0 5%;
    margin-bottom: var(--gap-section-mobile);
  }

  .process-header h2 {
    font-size: 0.9rem !important;
  }

  .orbit-canvas {
    width: min(300px, 88vw) !important;
    height: min(300px, 88vw) !important;
  }

  .detail-panel {
    width: 90vw !important;
    margin: 0 auto;
    padding: 20px !important;
  }

  .process-cta {
    margin-top: 30px !important;
  }
}

/* ── Pricing Section ── */
@media (max-width: 768px) {
  .pricing-section {
    padding: var(--section-padding-mobile) 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: var(--gap-section-mobile);
  }

  .pr-card {
    padding: 24px 20px;
  }

  .pr-custom-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
    padding: 20px;
  }

  .pr-currency-wrap {
    justify-content: center;
    margin-bottom: var(--gap-section-mobile);
  }
}

/* ── FAQ Section ── */
@media (max-width: 768px) {
  .faq-section {
    padding: var(--section-padding-mobile) 0;
  }

  .faq-inner {
    padding: 0 5%;
  }

  .faq-q-text {
    font-size: 0.9rem;
  }
}

/* ── Contact Section ── */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: var(--gap-section-mobile);
  }

  .contact-info-list {
    gap: 12px;
  }

  .contact-item {
    padding: 14px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: var(--gap-inner-mobile) !important;
  }

  .contact-form-wrapper {
    padding: 0;
  }
}


/* ── Terminal Panel ── */
@media (max-width: 768px) {
  .terminal-panel {
    width: 100% !important;
    height: 92dvh !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(100%) !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .terminal-panel.is-open {
    transform: translateY(0) !important;
  }

  .terminal-body {
    padding: 20px !important;
  }

  .tfield input {
    font-size: 16px !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   6. ALIGNMENT & CENTERING FIXES
   ════════════════════════════════════════════════════════════════ */

/* All section headers must be centered */
.section-header,
.fp-header,
.portfolio-header .bento-heading,
.faq-header,
.process-header {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Center badges */
.section-badge {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

/* Cards center text on mobile */
@media (max-width: 480px) {
  .diff-card {
    text-align: center;
  }

  .bento-content {
    text-align: left;
  }

  .hero-stats .stat-item {
    align-items: center;
    text-align: center;
  }
}

/* ════════════════════════════════════════════════════════════════
   7. MISC BUG FIXES
   ════════════════════════════════════════════════════════════════ */

/* Fix overflow in hero on small screens */
.hero-pattern,
.hero-mesh,
.global-bg-animation {
  max-width: 100%;
  overflow: hidden;
}

/* Fix bento sub-cards stacking on mobile */
@media (max-width: 768px) {
  .bento-sub-cards {
    flex-direction: column !important;
    gap: 16px;
  }

  .bento-sub-card {
    width: 100% !important;
  }
}

/* Fix hero-stats wrapping on small phone */
@media (max-width: 380px) {
  .hero-stats {
    gap: 20px !important;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Fix nav-actions btn hiding + theme toggle on mobile */
@media (max-width: 768px) {
  .nav-actions .btn {
    display: none;
  }

  .nav-actions {
    gap: 12px;
  }
}

/* Fix about photo badge overflow on small screens */
@media (max-width: 480px) {
  .photo-badge {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px;
    font-size: 0.78rem;
  }

  .photo-badge .separator {
    display: none;
  }
}

/* Fix contact item hover on mobile (translateX causes overflow) */
@media (max-width: 768px) {
  .contact-item:hover {
    transform: none;
  }
}

/* Fix process orbit centering */
.orbit-canvas {
  margin: 0 auto;
}

/* Ensure section backgrounds don't cause horizontal scroll */
body {
  overflow-x: hidden;
}

/* ════════════════════════════════════════════════════════════════
   8. LIGHT THEME COMPATIBILITY
   ════════════════════════════════════════════════════════════════ */
[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 164, 175, 0.2);
}

[data-theme="light"] .nav-links a {
  color: var(--text-primary);
}

[data-theme="light"] .nav-links a.active {
  color: #fff;
}

[data-theme="light"] .section-divider::after {
  background: var(--accent-primary);
  box-shadow:
    0 0 8px 2px rgba(15, 164, 175, 0.7),
    0 0 20px 4px rgba(15, 164, 175, 0.3);
}

/* ════════════════════════════════════════════════════════════════
   9. ANIMATION PERFORMANCE FIXES
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track {
    animation-duration: 40s;
  }

  .section-divider::after {
    animation: none;
  }

  .review-card-inner {
    transition-duration: 0.2s;
  }
}

/* ════════════════════════════════════════════════════════════════
   10. SMALL SCREEN TYPOGRAPHY SCALING
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.3rem !important;
  }

  .btn {
    font-size: 0.85rem;
    padding: 10px 18px;
  }

  .section-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }
}

/* ════════════════════════════════════════════════════════════════
   11. ENHANCED CONTACT SECTION — TABS, CALENDAR, ANIMATIONS
   ════════════════════════════════════════════════════════════════ */

/* Section base */
.contact-section-enhanced {
  position: relative;
  overflow: hidden;
}

/* Floating glow orbs */
.contact-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.contact-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0FA4AF, transparent 70%);
  top: -100px;
  right: -150px;
  animation: floatGlow1 8s ease-in-out infinite alternate;
}

.contact-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: floatGlow2 10s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 40px) scale(1.2); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.15); }
}

/* Floating particles container */
.contact-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-floating-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(15, 164, 175, 0.4);
  animation: contactFloat linear infinite;
  opacity: 0;
}

@keyframes contactFloat {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* Quick connect row */
.quick-connect-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.quick-connect-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-connect-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-connect-btn:hover::before {
  opacity: 1;
}

.qc-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.qc-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
  color: #25D366;
}

.qc-email {
  background: rgba(15, 164, 175, 0.1);
  border: 1px solid rgba(15, 164, 175, 0.3);
  color: #0FA4AF;
}

.qc-email:hover {
  background: rgba(15, 164, 175, 0.2);
  border-color: #0FA4AF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 164, 175, 0.25);
  color: #0FA4AF;
}

/* Contact item shine effect */
.contact-item-animated {
  position: relative;
  overflow: hidden;
}

.contact-item-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(15, 164, 175, 0.08), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.contact-item-animated:hover .contact-item-shine {
  left: 100%;
}

/* ── Tab Navigation ── */
.contact-tabs {
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 0;
  overflow: hidden;
}

.contact-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  border-radius: 12px;
}

.contact-tab i {
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-tab:hover {
  color: var(--text-primary);
}

.contact-tab:hover i {
  transform: scale(1.2);
}

.contact-tab.active {
  color: #fff;
}

.contact-tab.active i {
  color: #0FA4AF;
  text-shadow: 0 0 12px rgba(15, 164, 175, 0.5);
}

/* Tab slider indicator */
.tab-slider {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background: rgba(15, 164, 175, 0.12);
  border: 1px solid rgba(15, 164, 175, 0.3);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 0 20px rgba(15, 164, 175, 0.1);
}

/* ── Tab Content ── */
.contact-tab-content {
  display: none;
  opacity: 0;
}

.contact-tab-content.active {
  display: block;
  opacity: 1;
  animation: tabFadeIn 0.4s ease forwards;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tabFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ── Form Enhancements ── */
.contact-form {
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 16px 16px;
}

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

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0FA4AF, #06b6d4, #a9fc81);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.form-input:focus ~ .form-line,
.form-select:focus ~ .form-line {
  width: 100%;
}

/* Submit Button Enhanced */
.contact-submit-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 164, 175, 0.8), rgba(6, 182, 212, 0.9));
  border: 1px solid rgba(15, 164, 175, 0.5);
  transition: all 0.4s ease;
}

.contact-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.contact-submit-btn:hover::before {
  left: 100%;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(15, 164, 175, 0.3);
}

.contact-submit-btn .btn-text,
.contact-submit-btn .btn-loading,
.contact-submit-btn .btn-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Calendar Section ── */
.calendar-intro {
  text-align: center;
  padding: 40px 30px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-bottom: none;
}

.calendar-intro-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(15, 164, 175, 0.1);
  border: 2px solid rgba(15, 164, 175, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0FA4AF;
  animation: calendarPulse 2s ease-in-out infinite;
}

@keyframes calendarPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15, 164, 175, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(15, 164, 175, 0); }
}

.calendar-intro h3 {
  font-size: 0.75rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.calendar-intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}

.calendly-embed-wrapper {
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.calendly-embed-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, transparent 85%, rgba(10, 10, 20, 0.8));
}

.calendar-fallback {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.calendar-fallback p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.calendar-fallback a {
  color: #0FA4AF;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.calendar-fallback a:hover {
  color: #a9fc81;
}

/* ── Confetti Particles ── */
.confetti-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  z-index: 99999;
  pointer-events: none;
  animation: confettiBurst 1s ease-out forwards;
}

@keyframes confettiBurst {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0);
    opacity: 0;
  }
}

/* ── Contact Enhanced Responsive ── */
@media (max-width: 1024px) {
  .contact-glow-1 { width: 350px; height: 350px; }
  .contact-glow-2 { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
  .contact-tabs {
    border-radius: 14px;
  }

  .contact-tab {
    padding: 14px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .contact-tab i {
    font-size: 1rem;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .quick-connect-row {
    flex-direction: column;
  }

  .quick-connect-btn {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .calendar-intro {
    padding: 30px 20px 20px;
  }

  .calendar-intro-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .calendar-intro h3 {
    font-size: 0.62rem;
  }

  .calendly-inline-widget {
    min-height: 550px !important;
  }

  .contact-glow-1 { width: 250px; height: 250px; right: -100px; }
  .contact-glow-2 { width: 200px; height: 200px; left: -80px; }

  .contact-submit-btn {
    min-height: 50px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  /* Footer: side-by-side Navigate and Services */
  .footer-links-grid {
    grid-template-columns: 1fr 1fr !important;
    text-align: center;
    gap: 30px 15px !important;
  }
  .footer-brand-col { grid-column: 1 / -1; align-items: center; }
  .footer-social-col { grid-column: 1 / -1; align-items: center; }
  
  .footer-nav-col { align-items: center; }
  .footer-cta-btns { flex-direction: column; align-items: center; }
  .footer-btn-primary, .footer-btn-wa { width: 100%; justify-content: center; }

  .contact-tab span {
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 20px 14px;
  }

  .calendar-intro {
    padding: 24px 16px 16px;
  }

  .calendly-inline-widget {
    min-height: 500px !important;
  }

  .form-group {
    margin-bottom: 22px;
  }
}

@media (max-width: 380px) {
  .contact-tab {
    padding: 12px 8px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .contact-tab i {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 16px 12px;
  }

  .contact-submit-btn {
    min-height: 46px;
    font-size: 0.88rem;
  }
}

/* ══════════════════════════════════════
   LEAD CONFIRMATION POPUP MODAL
══════════════════════════════════════ */
.lead-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popupOverlayIn 0.3s ease forwards;
}
@keyframes popupOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lead-popup-card {
  background: linear-gradient(135deg, #0d1b2a 0%, #0a1628 100%);
  border: 1px solid rgba(15,164,175,0.3);
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 60px rgba(15,164,175,0.15), 0 25px 60px rgba(0,0,0,0.6);
  animation: popupCardIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  position: relative;
  overflow: hidden;
}
.lead-popup-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle,rgba(15,164,175,0.08),transparent 70%);
  pointer-events: none;
}
@keyframes popupCardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lead-popup-header { text-align: center; margin-bottom: 24px; }
.lead-popup-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(15,164,175,0.12);
  border: 2px solid rgba(15,164,175,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem; color: #0FA4AF;
  animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(15,164,175,0.3); }
  50%      { box-shadow: 0 0 0 12px rgba(15,164,175,0); }
}
.lead-popup-header h3 { font-size: 0.7rem; color: #fff; margin-bottom: 3.0px; }
.lead-popup-header p  { font-size: 0.88rem; color: var(--text-muted); }
.lead-popup-header p strong { color: #0FA4AF; }
.lead-popup-details {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 16px 20px;
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.lead-detail-row { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; }
.lead-detail-label {
  color: #0FA4AF; font-weight: 700; min-width: 80px;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.5px; padding-top: 1px;
}
.lead-detail-value { color: var(--text-primary); flex: 1; word-break: break-word; line-height: 1.4; }
.lead-popup-actions { display: flex; gap: 12px; }
.lead-popup-send {
  flex: 1; padding: 14px 20px;
  background: linear-gradient(135deg,#0FA4AF,#06b6d4);
  border: none; border-radius: 12px; color: #fff;
  font-size: 0.95rem; font-weight: 700;
  font-family: var(--font-body); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.lead-popup-send::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent);
  transition: left 0.5s ease;
}
.lead-popup-send:hover::before { left: 100%; }
.lead-popup-send:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,164,175,0.35); }
.lead-popup-close {
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: var(--text-muted);
  font-size: 0.9rem; font-family: var(--font-body); cursor: pointer;
  transition: all 0.3s ease;
}
.lead-popup-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.lead-popup-overlay.closing { animation: popupOverlayOut 0.3s ease forwards; }
.lead-popup-overlay.closing .lead-popup-card { animation: popupCardOut 0.25s ease forwards; }
@keyframes popupOverlayOut { to { opacity: 0; } }
@keyframes popupCardOut { to { opacity: 0; transform: translateY(20px) scale(0.95); } }
@media (max-width: 480px) {
  .lead-popup-card { padding: 24px 18px; border-radius: 18px; }
  .lead-popup-actions { flex-direction: column; }
  .lead-detail-label { min-width: 70px; }
}

/* ── SCROLL TO TOP ── */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.85);
  border: 1.5px solid rgba(15, 164, 175, 0.5);
  color: #0FA4AF;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: #0FA4AF;
  border-color: #0FA4AF;
  color: #fff;
  box-shadow: 0 6px 24px rgba(15, 164, 175, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 16px;
    font-size: 0.85rem;
  }
}
