/* ==========================================================================
   AXOLV — Premium AI Automation Agency
   Complete Design System & Stylesheet
   Version: 2.0 — Redesign with Satoshi, Geist, premium animations
   ========================================================================== */

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Satoshi from Fontshare */
@font-face {
  font-family: 'Satoshi';
  src: url('https://cdn.fontshare.com/wf/WNPQAKBPGFVHQBRYZZAQBTSRWQKBXVAC/CWMG6TQYAJIRSV7HWMXO3BCAQIUYBVDG/JNTJT64RDXU673FKMVXIYVHMIRN5QO7V.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('https://cdn.fontshare.com/wf/WNPQAKBPGFVHQBRYZZAQBTSRWQKBXVAC/DZTNQAWOYZAHM5TAEUZF2YNCR3NWQK4Q/QYAWDIWNGMJHMVVQLPOCL6QFF6TQKPKX.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('https://cdn.fontshare.com/wf/WNPQAKBPGFVHQBRYZZAQBTSRWQKBXVAC/ZAM3NPMPOFMVMQNXC5KBBCETQCIDEDTS/G2FT2ZQJ4MKQSUJFJ6SQBTSWMWTQ54PB.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Geist from Vercel CDN */
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #F6F5F2;
  --bg-tertiary: #EEECEA;
  --bg-card: rgba(255, 255, 255, 0.75);

  /* Accent */
  --accent: #98fe00;
  --accent-glow: rgba(152, 254, 0, 0.2);
  --accent-dark: #131313;
  --accent-rgb: 152, 254, 0;

  /* Text */
  --text-primary: #131313;
  --text-secondary: #4a4a5a;
  --text-muted: #7c808c;

  /* Borders */
  --border-glass: #e5e5e5;
  --border-glass-hover: #131313;
  --border-glow-hover: rgba(19, 19, 19, 0.08);

  /* Typography */
  --font-headings: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;

  /* Layout */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --max-w: 1200px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition: all 0.6s var(--ease-out-expo);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.4s var(--ease-out-expo);
  --transition-premium: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; }


/* ==========================================================================
   3. CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(19, 19, 19, 0.12);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 19, 19, 0.12) var(--bg-primary);
}


/* ==========================================================================
   4. PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  /* Screen-dissolve fade-out over 0.5 seconds */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  animation: preloader-pulse 1.2s infinite ease-in-out alternate;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader-inner {
  display: flex;
  flex-direction: column; /* Centered vertical column stack */
  align-items: center;
  justify-content: center;
  gap: 14px; /* Balanced professional vertical gap between logo icon and text */
  /* Cinematic fade-in up motion using premium cubic-bezier over 0.8 seconds */
  animation: preloader-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloader-fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(10px); /* Smooth 10px vertical offset */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-text {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.04em; /* Premium tight editorial spacing */
  line-height: 1;
  text-align: center;
}

@keyframes preloader-pulse {
  from { transform: scale(0.92); opacity: 0.6; }
  to   { transform: scale(1);    opacity: 1; }
}


/* ==========================================================================
   5. AMBIENT GLOW BACKDROPS
   ========================================================================== */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.04;
  animation: blob-float 22s infinite alternate ease-in-out;
  will-change: transform;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -150px;
  left: -150px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: #00f2fe;
  bottom: -200px;
  right: -100px;
  animation-duration: 26s;
  opacity: 0.03;
}

@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -50px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.92); }
}


/* ==========================================================================
   6. CURSOR GLOW OVERLAY
   ========================================================================== */
.cursor-glow-overlay {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  /* Slightly increased center opacity (0.15) and mid-radius (0.04) for better visibility, with feathered edge (70%) */
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, rgba(var(--accent-rgb), 0.04) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  /* Changed from multiply to normal to ensure premium soft visibility on both light and dark backgrounds */
  mix-blend-mode: normal;
  display: none;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  will-change: transform;
}

@media (hover: hover) {
  .cursor-glow-overlay {
    display: block;
  }
}


/* ==========================================================================
   7. CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   8. TYPOGRAPHY SYSTEM
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
}

h1 { font-weight: 900; }
h2 { font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-dark), #333333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.gradient-text i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  -webkit-text-fill-color: transparent;
}

/* Underline permanently removed — no ::after on gradient-text */
.gradient-text::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* Also kill any inherited border/decoration on the italic child */
.gradient-text i,
.gradient-text span {
  text-decoration: none;
  border: none;
}



.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.section-label::before {
  content: '//';
  font-weight: bold;
  color: var(--accent); /* Premium brand green accent color for slash indicators */
}

.section-title-wrapper {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   9. ANIMATION SYSTEM
   ========================================================================== */

/* --- Fade Up --- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scale Up --- */
.animate-scale-up {
  opacity: 0;
  transform: scale(0.96) translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.animate-scale-up.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- Slide Left --- */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Slide Right --- */
.animate-slide-right {
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Premium Clip Path Reveal (Left to Right) --- */
.animate-reveal-clip {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.4s var(--ease-out-expo),
              clip-path 1.2s var(--ease-out-expo);
  will-change: opacity, clip-path;
}

.animate-reveal-clip.visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* --- Smooth Blur In --- */
.animate-blur-in {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out-expo),
              filter 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
  will-change: opacity, filter, transform;
}

.animate-blur-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- Staggered Delays --- */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* --- Text Mask Reveal --- */
.text-mask {
  overflow: hidden;
  display: block;
  border: none;
  text-decoration: none;
}



.text-mask-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out-expo);
  will-change: transform;
}

.visible .text-mask-inner {
  transform: translateY(0);
}

/* Staggered text mask children */
.visible .text-mask:nth-child(1) .text-mask-inner { transition-delay: 0s; }
.visible .text-mask:nth-child(2) .text-mask-inner { transition-delay: 0.12s; }
.visible .text-mask:nth-child(3) .text-mask-inner { transition-delay: 0.24s; }

/* --- Text Reveal (word-by-word) --- */
.text-reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out-expo),
              filter 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.text-reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- Parallax Background --- */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}


/* ==========================================================================
   10. SECTION DIVIDERS
   ========================================================================== */
.section-divider {
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-glass) 20%,
    var(--border-glass) 80%,
    transparent
  );
  margin: 0;
  position: relative;
  z-index: 2;
}

.section-divider--dashed {
  background: none;
  border-top: 1px dashed var(--border-glass);
}

.section-divider--gradient {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 30%,
    var(--accent) 70%,
    transparent
  );
  opacity: 0.2;
}


/* ==========================================================================
   11. FLOATING PILL NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(-20px);
  animation: nav-slide-in 0.8s 0.3s var(--ease-out-expo) forwards;
}

@keyframes nav-slide-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-glass-wrapper {
  background: rgba(255, 255, 255, 0.06); /* Ultra-clear, highly transparent true glass tint */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25); /* Sharp, polished glass edge border */
  border-radius: 99px;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  /* Soft shadow combined with an inset white specular top-light stroke */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    0 4px 30px rgba(0, 0, 0, 0.03);
}

.site-header.scrolled .nav-glass-wrapper {
  background: rgba(255, 255, 255, 0.12); /* Maintains clear glassy reflection during scroll */
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.logo-3d-wrap {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: transform 0.5s var(--ease-spring),
              border-color 0.3s ease;
  perspective: 600px;
}

.logo-3d-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-link:hover .logo-3d-wrap {
  transform: scale(1.12) rotateY(15deg) rotateX(-5deg);
  border-color: var(--accent-dark);
}

.logo-dot {
  color: var(--accent-dark);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-dark);
  transition: width 0.4s var(--ease-out-expo);
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA Button */
.nav-cta-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--accent-dark);
  border: 1.5px solid var(--accent-dark);
  color: #ffffff;
  transition: background 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.25s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.nav-cta-btn:hover {
  background: transparent;
  color: var(--accent-dark);
  box-shadow: 0 0 20px rgba(19, 19, 19, 0.08);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 99px;
  position: absolute;
  transition: var(--transition);
}

.mobile-nav-toggle span:nth-child(1) { top: 4px; }
.mobile-nav-toggle span:nth-child(2) { top: 12px; }
.mobile-nav-toggle span:nth-child(3) { top: 20px; }

.mobile-nav-toggle.open span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
  background: var(--accent-dark);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}
.mobile-nav-toggle.open span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
  background: var(--accent-dark);
}


/* ==========================================================================
   12. HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Floating Badge */
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 6px 16px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 99px;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 4px 15px rgba(var(--accent-rgb), 0.3),
    0 0 0 0 rgba(var(--accent-rgb), 0.15);
  animation: float-badge 3s infinite alternate ease-in-out;
  will-change: transform;
}

@keyframes float-badge {
  0%   { transform: translateY(0)   rotate(0deg); }
  50%  { transform: translateY(-3px) rotate(-0.5deg); }
  100% { transform: translateY(-6px) rotate(0.5deg); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.04;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-line {
  display: block;
  line-height: 1.04;
  margin: 0;
  padding: 0;
}

.hero-title i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}


/* ==========================================================================
   13. BUTTONS
   ========================================================================== */
.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring),
              box-shadow 0.3s ease,
              background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

/* Magnetic hover CSS support — JS moves the button, CSS smooths it */
.btn {
  will-change: transform;
}

.btn-primary {
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(19, 19, 19, 0.08);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 30px rgba(19, 19, 19, 0.15),
    0 0 20px rgba(var(--accent-rgb), 0.2);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}


/* ==========================================================================
   14. 3D LOGO CENTERPIECE
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 50px; /* Shift down to balance perfectly with the main hero text */
}

.logo-3d-centerpiece {
  width: 480px; /* Scaled up to 480px to be noticeably bigger and bolder */
  height: 480px;
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
  z-index: 5;
}

.logo-3d-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-expo);
  will-change: transform;
}

/* Crystal-clear logo image — NO blur whatsoever */
.logo-img-wrap {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(30px);
  z-index: 2;
  pointer-events: none;
  animation: logo-antigravity-drift 8s infinite ease-in-out;
  will-change: transform;
}

@keyframes logo-antigravity-drift {
  0% {
    transform: translate3d(0, 0, 30px) rotateX(4deg) rotateY(-8deg) rotateZ(0deg);
  }
  25% {
    transform: translate3d(0, -12px, 30px) rotateX(-2deg) rotateY(6deg) rotateZ(-1deg);
  }
  50% {
    transform: translate3d(0, -24px, 30px) rotateX(-6deg) rotateY(12deg) rotateZ(-2deg);
  }
  75% {
    transform: translate3d(0, -12px, 30px) rotateX(1deg) rotateY(-2deg) rotateZ(-1deg);
  }
  100% {
    transform: translate3d(0, 0, 30px) rotateX(4deg) rotateY(-8deg) rotateZ(0deg);
  }
}

.logo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Transparent background with no borders or bounding boxes */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  /* Ensure NO blur on the logo */
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  image-rendering: -webkit-optimize-contrast;
}

.logo-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Transparent background with no borders or bounding boxes */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  /* Remove white background of video and render it transparent */
  mix-blend-mode: multiply;
  /* Eliminate browser gamma color-space mismatches by pushing near-whites to pure white */
  filter: contrast(1.04) brightness(1.04) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  image-rendering: -webkit-optimize-contrast;
}

.logo-img-wrap canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  image-rendering: -webkit-optimize-contrast;
}

/* Glass panels — subtle, never blurring the logo */
.glass-panel {
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.panel-back {
  background: rgba(0, 0, 0, 0.008);
  transform: translateZ(-20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.panel-front {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
  transform: translateZ(60px);
  pointer-events: none;
  /* Absolutely no blur on the front panel */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Decorative ring */
.hero-visual-decor-ring {
  position: absolute;
  width: 510px;
  height: 180px;
  border: 1px dashed rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  transform: rotate(-15deg);
  animation: ring-rotate 40s infinite linear;
  top: 50%;
  left: 50%;
  margin-top: -90px;
  margin-left: -255px;
  z-index: 1;
  will-change: transform;
}

@keyframes ring-rotate {
  from { transform: rotate(-15deg); }
  to   { transform: rotate(345deg); }
}


/* ==========================================================================
   15. TECH STACK MARQUEE
   ========================================================================== */
.marquee-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

/* Gradient edge fade masks */
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.marquee-row {
  display: flex;
  width: max-content;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee-move-left 35s linear infinite;
  padding-right: 24px;
  will-change: transform;
}

.marquee-row:nth-child(2) .marquee-track {
  animation: marquee-move-right 42s linear infinite;
}

.marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s var(--ease-spring),
              box-shadow 0.3s ease;
  cursor: default;
  white-space: nowrap;
}

.marquee-badge:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.marquee-badge:hover .tech-name {
  color: #ffffff;
}

.marquee-badge:hover .tech-num {
  color: var(--accent);
}

.marquee-tech-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee-tech-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.marquee-badge .tech-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.marquee-badge .tech-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

@keyframes marquee-move-left {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-move-right {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}


/* ==========================================================================
   16. STATS SECTION
   ========================================================================== */
.stats-section {
  padding: 50px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-glass);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
}

.stat-number .counter-value {
  display: inline-block;
  min-width: 1.2ch;
}

.stat-number .stat-suffix {
  color: var(--accent-dark);
  font-weight: 700;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}


/* ==========================================================================
   17. SERVICES GRID (6 CARDS IN 2-COLUMN GRID)
   ========================================================================== */
.services-section {
  padding: 50px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); /* Exact 16px border-radius matching other cards */
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: var(--transition-premium);
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Spacious 2-column horizontal split */
  gap: 36px;
  align-items: center;
  overflow: hidden;
  /* 3D tilt support */
  transform-style: preserve-3d;
  will-change: transform;
  height: 100%;
}

/* Elegant inset border glow on hover — no top green bar */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md); /* Updated to match 16px */
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, rgba(19,19,19,0.08), rgba(19,19,19,0.03)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(19, 19, 19, 0.15); /* Sleek, structural dark border highlight on hover */
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 6px 15px rgba(0, 0, 0, 0.03); /* Subtle, deep ambient drop-shadow behind lifted card */
  background: #ffffff;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--text-primary);
  transition: background 0.4s var(--ease-out-expo),
              border-color 0.3s ease,
              transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease;
  flex-shrink: 0;
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, transform 0.4s var(--ease-spring);
}

/* Allow explicit fill overrides (e.g. the dot in lock icon) */
.service-icon-box svg [fill="currentColor"] {
  fill: var(--text-primary);
  stroke: none;
  transition: fill 0.3s ease;
}

.service-card:hover .service-icon-box svg [fill="currentColor"] {
  fill: #ffffff;
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px) scale(1.05);
}

.service-card:hover .service-icon-box svg {
  stroke: #ffffff;
  transform: scale(1.1);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  width: 100%;
}

.service-list li {
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  transition: color 0.2s ease;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '→';
  color: var(--accent-dark);
  font-weight: bold;
  font-size: 0.85rem;
}

.service-card:hover .service-list li {
  color: var(--text-primary);
}

/* Dedicated Image Wrapper inside Card */
.service-card-image-wrap {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.01);
  position: relative;
  flex-shrink: 0;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

/* Graphic micro-interaction Zoom on Card Hover */
.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card:hover .service-card-image-wrap {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03), inset 0 0 40px rgba(0,0,0,0.01);
}


/* ==========================================================================
   18. APPROACH ROADMAP (4 STEPS)
   ========================================================================== */
.approach-section {
  padding: 50px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.approach-section .section-title {
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(19, 19, 19, 0.08); /* Premium contrast enhancement */
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.approach-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06); /* Clean light border */
  border-radius: 16px; /* Exact 16px rounded-corner cards matching Team */
  padding: 40px 32px;
  position: relative;
  transition: var(--transition-premium);
  will-change: transform;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); /* Faint ambient shadow to blend beautifully */
}

.approach-card:hover {
  border-color: rgba(152, 254, 0, 0.4); /* Custom green border transition */
  transform: translateY(-5px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.04),
    0 0 24px rgba(152, 254, 0, 0.08); /* Mild ambient green glow on hover */
}

.approach-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent); /* Custom green brand accent color for numbers */
  margin-bottom: 24px;
  display: block;
  line-height: 1;
}

.approach-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.approach-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ==========================================================================
   19. ABOUT / TEAM CARDS (5 BIO CARDS)
   ========================================================================== */
/* ==========================================================================
   19. ABOUT / TEAM CARDS (1x5 PORTRAIT GRID)
   ========================================================================== */
.about-section-new {
  padding: 50px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.about-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 48px;
}

@media (max-width: 900px) {
  .about-header-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

.about-header-new .left-side {
  max-width: 520px;
}

.about-header-new .right-side {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Custom button "About Us" with lime-green arrow box */
.btn-about {
  display: inline-flex;
  align-items: center;
  background: #131313;
  color: #ffffff;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  border: 1px solid #131313;
}

.btn-about span {
  padding: 0 28px;
  display: block;
}

.btn-about .arrow-box {
  background: var(--accent); /* Lime green */
  color: var(--accent-dark);  /* Black arrow */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 3px;
  transition: transform 0.4s var(--ease-spring);
}

.btn-about:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 19, 19, 0.15);
}

.btn-about:hover .arrow-box {
  transform: rotate(45deg);
}

/* Team Grid new (1x5 Layout) */
.team-grid-new {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .team-grid-container {
    overflow-x: auto;
    padding-bottom: 20px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-glass) transparent;
  }
  
  .team-grid-container::-webkit-scrollbar {
    height: 6px;
  }
  .team-grid-container::-webkit-scrollbar-thumb {
    background-color: var(--border-glass);
    border-radius: 3px;
  }

  .team-grid-new {
    grid-template-columns: repeat(5, 220px);
    width: max-content;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .team-grid-container {
    overflow-x: visible;
    padding-bottom: 0;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .team-grid-new {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
  }
}

.team-card-new {
  position: relative;
  border-radius: 18px; /* Clean, smooth rounded corners */
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Structural border outline */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); /* Faint ambient shadow */
  transition: var(--transition-premium);
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Focus starts perfectly from the head down */
  transition: var(--transition-premium);
  display: block;
}

.team-card-new:hover,
.team-card-new:active {
  transform: translateY(-5px);
  border-color: rgba(19, 19, 19, 0.15); /* Sleek, structural dark border highlight on hover */
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 6px 15px rgba(0, 0, 0, 0.03); /* Subtle, deep ambient drop-shadow behind lifted card */
}

.team-card-new:hover img {
  transform: scale(1.04);
}

.card-img-wrap {
  width: calc(100% - 32px); /* 16px margin left and right */
  margin: 16px 16px 0 16px; /* Top margin to give head breathing room */
  aspect-ratio: 1 / 1.15; /* Balanced portrait photo container */
  border-radius: 10px; /* Smooth rounded corners for the photo itself */
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

/* Card content styles */
.card-content-new {
  padding: 16px 20px 22px 20px; /* Aligned with photo margins */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px; /* Spacing between elements */
  flex-grow: 1;
}

.team-card-new .team-name-new {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.team-card-new .team-role-new {
  font-size: 0.82rem;
  color: var(--text-muted); /* Faded dark grey */
  font-weight: 400; /* Regular weight */
  margin: 0;
  line-height: 1.3;
}

/* Minimalist clickable connect row button */
.card-connect-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto; /* Aligns the Connect link perfectly at the bottom of the card content across all cards */
  padding-top: 8px; /* Safe padding spacing above the link row */
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary); /* Soft charcoal grey */
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.card-connect-link .connect-icon {
  color: #0077b5; /* Official blue LinkedIn monogram */
  width: 13px;
  height: 13px;
  display: block;
  transition: transform 0.25s ease;
}

.card-connect-link:hover {
  color: #0077b5; /* Highlight entire link on hover */
  transform: translateX(2px); /* Gentle slide-to-right micro-interaction on hover */
}

.card-connect-link:hover .connect-icon {
  transform: scale(1.15); /* Soft scaling on hover */
}

/* Targeted Typography Scaling for Long Team Member Names */
.team-name-new.font-scale-down {
  font-size: 0.98rem; /* Scale down just enough so names fit perfectly on a single horizontal line */
}


/* ==========================================================================
   20. CASE STUDIES — PREMIUM PORTFOLIO LAYOUT
   ========================================================================== */
.cases-section {
  padding: 50px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  position: relative;
}

/* ---- Portfolio wrapper ---- */
.cases-portfolio {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---- Individual portfolio card ---- */
.case-portfolio-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 56px;
  transition: var(--transition-premium);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.case-portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(152,254,0,0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.case-portfolio-card:hover {
  box-shadow: 0 32px 80px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  border-color: rgba(19,19,19,0.15);
  transform: translateY(-5px);
}

.case-portfolio-card:hover::before {
  opacity: 1;
}

/* Flipped card — image on right, text on left */
.case-portfolio-card--flip {
  /* CSS grid order handles the flip */
}

/* ---- Image column ---- */
.case-portfolio-img-col {
  position: relative;
}

.case-portfolio-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0d1117;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.6s var(--ease-out-expo),
              box-shadow 0.6s ease;
}

.case-portfolio-card:hover .case-portfolio-img-wrap {
  transform: scale(1.02);
  box-shadow:
    0 32px 70px rgba(0,0,0,0.16),
    0 8px 20px rgba(0,0,0,0.10);
}

.case-portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

.case-portfolio-card:hover .case-portfolio-img-wrap img {
  transform: scale(1.04);
}

/* Dark overlay that fades in on hover */
.case-portfolio-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(0,0,0,0.55) 100%
  );
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.case-portfolio-card:hover .case-portfolio-img-overlay {
  opacity: 0.6;
}

/* Floating tech tag pills at bottom of image */
.case-portfolio-tags-float {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.case-portfolio-card:hover .case-portfolio-tags-float {
  opacity: 1;
  transform: translateY(0);
}

.case-float-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---- Content column ---- */
.case-portfolio-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.case-portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.case-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-category-pill svg {
  flex-shrink: 0;
  color: var(--accent-dark);
}

.case-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.case-portfolio-title {
  font-family: var(--font-headings);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.case-portfolio-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---- Metrics row ---- */
.case-metrics-row {
  display: flex;
  gap: 0;
  width: 100%;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--bg-secondary);
}

.case-metric-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-right: 1px solid var(--border-glass);
  transition: background 0.3s ease;
}

.case-metric-chip:last-child {
  border-right: none;
}

.case-portfolio-card:hover .case-metric-chip {
  background: #ffffff;
}

.case-metric-val {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.case-metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---- Bullet list ---- */
.case-portfolio-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.case-portfolio-list li {
  font-size: 0.91rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.case-portfolio-list li svg {
  flex-shrink: 0;
  color: var(--accent-dark);
  margin-top: 2px;
}

/* ---- CTA link ---- */
.case-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(19,19,19,0.2);
  padding-bottom: 2px;
  letter-spacing: -0.01em;
  transition: gap 0.25s var(--ease-out-expo),
              border-color 0.25s ease,
              color 0.25s ease;
}

.case-cta-link:hover {
  gap: 14px;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.case-cta-link svg {
  transition: transform 0.25s var(--ease-out-expo);
}

.case-cta-link:hover svg {
  transform: translateX(3px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .case-portfolio-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px;
  }
  .case-portfolio-card--flip .case-portfolio-content {
    order: 1;
  }
  .case-portfolio-card--flip .case-portfolio-img-col {
    order: 2;
  }
  .case-portfolio-tags-float {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .case-portfolio-card {
    padding: 24px;
    gap: 28px;
  }
  .case-metrics-row {
    flex-wrap: wrap;
  }
  .case-metric-chip {
    min-width: 33%;
  }
}




/* ==========================================================================
   21. ACCORDION FAQ
   ========================================================================== */
.faq-section {
  padding: 50px 0;
  position: relative;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
}

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glass);
}

.faq-details {
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.faq-summary {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::marker {
  display: none;
  content: "";
}

.faq-summary:hover {
  color: var(--text-muted);
}

.faq-icon-marker {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out-expo),
              color 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  display: inline-block;
  line-height: 1;
}

.faq-details[open] .faq-icon-marker {
  transform: rotate(45deg);
  color: var(--accent-dark);
}

.faq-answer-content {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding: 0 0 26px 0;
  max-width: 740px;
  animation: slide-down-faq 0.35s var(--ease-out-expo) forwards;
}

@keyframes slide-down-faq {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   22. CONTACT SECTION & FORM
   ========================================================================== */
.contact-section {
  padding: 50px 0;
  position: relative;
}

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

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-boxes {
  margin: 40px 0;
}

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-dark);
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.contact-info-box:hover .contact-icon-wrap {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: scale(1.05);
}

.contact-info-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-info-val {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contact-info-val:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.01);
}

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

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

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-dark);
  box-shadow:
    0 0 0 3px rgba(19, 19, 19, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.form-select option {
  background: #ffffff;
  color: var(--text-primary);
}

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

.contact-form-card .btn {
  width: 100%;
}

/* Success Message */
.submit-success-msg {
  display: none;
  text-align: center;
  padding: 40px 0;
  animation: fade-in 0.5s ease forwards;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow:
    0 4px 15px rgba(var(--accent-rgb), 0.25),
    0 0 0 6px rgba(var(--accent-rgb), 0.08);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   23. SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--accent-dark);
  border-top: 1px solid var(--accent-dark);
  padding: 50px 0 30px;
  position: relative;
  z-index: 10;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 30px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.footer-brand .logo-link {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand .logo-link .logo-dot {
  color: var(--accent); /* Premium lime green dot in dark footer */
}

.footer-brand .logo-link:hover {
  color: #ffffff;
}

.footer-brand .logo-link:hover .logo-3d-wrap {
  transform: scale(1.12) rotateY(15deg) rotateX(-5deg);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-brand p {
  color: #a3a3a3;
  font-size: 0.94rem;
  max-width: 320px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-links-wrap h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
}

.footer-links-wrap ul {
  list-style: none;
}

.footer-links-wrap ul li {
  margin-bottom: 12px;
}

.footer-links-wrap ul li a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #a3a3a3;
  transition: color 0.25s ease,
              padding-left 0.25s ease;
}

.footer-links-wrap ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright-text {
  font-size: 0.83rem;
  color: #666666;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  color: #a3a3a3;
  transition: background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s var(--ease-spring);
  font-weight: 600;
}

.social-link:hover {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}

.footer-social-link-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  color: #a3a3a3;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-social-link-item:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: currentColor;
}


/* ==========================================================================
   24. UTILITY CLASSES
   ========================================================================== */

/* About title (used inline in contact) */
.about-title {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
}


/* ==========================================================================
   25. RESPONSIVE DESIGN
   ========================================================================== */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  html { font-size: 15px; }

  .hero-grid,
  .case-card-horizontal,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

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

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid,
  .about-grid-visual,
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .service-card-image-wrap {
    order: -1;
    aspect-ratio: 1.6 / 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  html { font-size: 14px; }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: right 0.5s var(--ease-out-expo);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  }

  .nav-links.open {
    right: 0;
  }

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

  .nav-cta-btn {
    display: none;
  }

  .services-section,
  .approach-section,
  .about-section-new,
  .cases-section,
  .faq-section,
  .contact-section {
    padding: 40px 0; /* Compact professional mobile section padding */
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }

  .section-title {
    font-size: 2.2rem;
  }

  .services-grid,
  .about-grid-visual,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .about-grid-visual-row2 {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item::after {
    display: none;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .contact-form-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links-wrap {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .logo-3d-centerpiece {
    width: 240px;
    height: 240px;
  }

  .hero-visual-decor-ring {
    width: 320px;
    height: 110px;
    margin-left: -160px;
    margin-top: -55px;
  }

  .case-card-horizontal {
    padding: 28px;
    gap: 32px;
  }

  .case-title {
    font-size: 1.6rem;
  }

  .marquee-section::before,
  .marquee-section::after {
    width: 60px;
  }
}

/* --- Small Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .service-card,
  .approach-card,
  .team-card {
    padding: 32px 24px;
  }

  .nav-glass-wrapper {
    padding: 8px 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 20px 8px;
  }
}


/* ==========================================================================
   26. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-fade-up {
    opacity: 1;
    transform: none;
  }

  .text-mask-inner {
    transform: none;
  }
}


/* ==========================================================================
   27. PRINT STYLES
   ========================================================================== */
@media print {
  .site-header,
  .bg-ambient-layer,
  .cursor-glow-overlay,
  .preloader,
  .marquee-section,
  .hero-visual-decor-ring {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }
}


/* ==========================================================================
   28. TYPEWRITER CURSOR STYLES
   ========================================================================== */
.type-cursor {
  display: inline-block;
  color: var(--text-primary);
  font-weight: 300;
  margin-left: 2px;
  animation: cursor-blink 0.8s infinite steps(2);
  line-height: 1;
  vertical-align: middle;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* --- Left Aligned Premium Headings & Reveals --- */
.heading-left-premium {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
  color: #172212; /* Deep muted premium brand green with excellent contrast */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.animate-heading-reveal {
  opacity: 0;
  transform: translateX(-20px) translateY(5px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.animate-heading-reveal.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
