/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css?family=Roboto:700');

/* CSS Custom Properties */
:root {
    --midnight-navy: #000000;
    --electric-indigo: #000000;
    --neon-green: #000000;
    --ice-white: #000000;
    --gradient: linear-gradient(135deg, #000000 0%, #000000 100%);
    --gradient-animated: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
    --glow-effect: none;
    --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-glow: none;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 120px 0;
    --element-spacing: 2rem;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Sticky utilities */
    --sticky-bar-offset: 88px; /* approx bar height + spacing */
}

/* Global styles with white background and black text */
html, body {
    background-color: #ffffff !important;
    background-image: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    cursor: url('assets/custom-cursor.png') 16 16, pointer;
}

* {
    background-color: transparent;
    cursor: url('assets/custom-cursor.png') 16 16, pointer;
    color: #000000 !important;
}

/* Ensure all sections have white background */
section, .hero, .hero-canvas, .navbar, .footer, .modal, .chatbot-container, 
.elevate-section, .services-section, .portfolio-section, .cases-section, .about-section, 
.contact-section, .founder-section, .showcase-section, .culture-section, .vision-section, 
.story-section, .team-collage, .process-timeline, .about-content, .contact-content {
    background-color: #ffffff !important;
    background-image: none !important;
    background: #ffffff !important;
    color: #000000 !important;
}

/* Ensure pseudo-elements also have white background */
section::before, section::after, .hero::before, .hero::after, 
.navbar::before, .navbar::after, .footer::before, .footer::after {
    background-color: #ffffff !important;
    background-image: none !important;
    background: #ffffff !important;
}



/* Viking Game Section Styles */
.viking-game-section {
    padding: var(--section-padding);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.viking-game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    pointer-events: none;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.game-canvas-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#gameCanvas {
    display: block;
    border-radius: 20px;
    background: #2d4a3e; /* Keep game canvas background dark for contrast */
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: var(--transition-smooth);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.game-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.game-instructions {
    text-align: center;
    color: var(--midnight-navy);
    max-width: 400px;
    padding: 2rem;
}

.game-instructions h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-key {
    width: 40px;
    height: 40px;
    background: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.control-text {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
}

.start-game-btn {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #000000;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(92, 51, 255, 0.6);
}

.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.game-score, .game-lives {
    background: rgba(255, 255, 255, 0.8);
    color: var(--midnight-navy);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.coupon-display {
    background: #000000;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-deep);
    animation: couponAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.coupon-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.coupon-content p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.coupon-code {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px dashed rgba(0, 0, 0, 0.5);
}

.coupon-label {
    display: block;
    color: rgba(247, 249, 252, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.coupon-value {
    display: block;
    color: #000000;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: none;
}

.copy-coupon-btn, .play-again-btn {
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    background: #ffffff;
    color: var(--midnight-navy);
    border: 2px solid #000000;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.copy-coupon-btn:hover, .play-again-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 255, 77, 0.4);
}

@keyframes couponAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design for Game */
@media (max-width: 768px) {
    #gameCanvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .game-instructions {
        padding: 1rem;
    }
    
    .game-instructions h3 {
        font-size: 1.5rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .coupon-content h3 {
        font-size: 1.5rem;
    }
    
    .coupon-value {
        font-size: 1.5rem;
    }
}

/* Particle Animation */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #000000;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite linear;
    box-shadow: none;
}

/* Keyframe Animations */
@keyframes gradientShift {
    0%, 100% { background: #ffffff; }
    50% { background: #ffffff; }
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(320px); }
}

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

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design for Loading Screen */
@media (max-width: 768px) {
    .loading-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .loading-bar {
        width: 250px;
    }
    
    .loading-glow {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .loading-content {
        padding: 0 1rem;
    }
    
    .loading-bar {
        width: 200px;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
}

/* Mobile Sticky Action Bar */
.sticky-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    /* Leave room for notches and default spacing */
    padding: 12px calc(12px + env(safe-area-inset-left)) 12px calc(12px + env(safe-area-inset-right));
    /* Polished glass background with subtle border and shadow */
    background: color-mix(in oklab, #ffffff 94%, transparent);
    border-top: 1px solid color-mix(in oklab, #000 10%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    transform: translateY(110%);
    transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.06);
    z-index: 1002;
}

/* Reveal state (toggled by JS after scroll threshold) */
.sticky-mobile-bar.is-visible {
    transform: translateY(0%);
}

.sticky-mobile-bar .sticky-btn {
    flex: 1 1 auto;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    border: 1px solid rgba(0,0,0,0.12);
    color: #0a0a0a !important; /* override global */
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.sticky-mobile-bar .sticky-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.sticky-mobile-bar .sticky-btn:active { transform: translateY(0) scale(0.98); }
.sticky-mobile-bar .sticky-btn:focus-visible { outline: 2px solid var(--brand, #7C3AED); outline-offset: 2px; }

.sticky-mobile-bar .sticky-btn.primary {
    background: linear-gradient(135deg, color-mix(in oklab, var(--brand, #7C3AED) 90%, white) 0%, var(--brand, #7C3AED) 100%);
    border-color: var(--brand, #7C3AED);
    color: var(--btn-text, #ffffff) !important;
    box-shadow: 0 8px 18px rgba(124,58,237,0.25);
}

.sticky-mobile-bar .sticky-btn.ghost { background: #fff; }

/* Icon inside sticky button */
.sticky-mobile-bar .sticky-btn .ico { font-size: 18px; line-height: 1; }

/* Keep content from clipping under chat bubble when bar is visible */
body.has-sticky-bar #stickyBar { padding-right: calc(96px + env(safe-area-inset-right)); }

@media (prefers-reduced-motion: reduce) {
    .sticky-mobile-bar { transition: none; }
}

/* Ensure content isn’t obscured by the sticky bar on very small screens */
@supports (padding: max(0px)) {
    body { padding-bottom: max(72px, env(safe-area-inset-bottom)); }
}

/* Hide sticky bar on larger screens */
@media (min-width: 900px) { .sticky-mobile-bar { display: none; } }

/* Desktop Quick Actions Dock */
.desktop-cta-dock {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  padding: 8px;
  background: color-mix(in oklab, #ffffff 94%, transparent);
  border: 1px solid color-mix(in oklab, #000 10%, transparent);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 1104;
  opacity: 0; transform: translateY(6px);
  pointer-events: none;
}

/* Reveal the dock alongside sticky bar behavior for continuity */
@media (min-width: 900px) {
  body.has-sticky-bar .desktop-cta-dock { opacity: 1; transform: none; pointer-events: auto; }
}

.desktop-cta-dock .dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #0a0a0a !important; /* override global */
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.desktop-cta-dock .dock-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.desktop-cta-dock .dock-btn:active { transform: translateY(0) scale(0.98); }
.desktop-cta-dock .dock-btn:focus-visible { outline: 2px solid var(--brand, #7C3AED); outline-offset: 2px; }
.desktop-cta-dock .dock-btn.primary { background: var(--brand, #7C3AED); border-color: var(--brand, #7C3AED); color:#fff !important; box-shadow: 0 8px 18px rgba(124,58,237,0.25); }
.desktop-cta-dock .ico { font-size: 18px; line-height: 1; }

@media (max-width: 899px) { .desktop-cta-dock { display: none; } }

/* Lead Form Sheet (mobile modal) */
.lead-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 200ms ease; z-index: 1003; }
.lead-overlay.is-open { opacity: 1; visibility: visible; }

.lead-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top-left-radius: 20px; border-top-right-radius: 20px; box-shadow: 0 -10px 30px rgba(0,0,0,0.15); transform: translateY(105%); transition: transform 240ms cubic-bezier(0.2,0,0,1); z-index: 1004; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
.lead-sheet.is-open { transform: translateY(0%); }
.lead-sheet header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.lead-sheet h3 { font-family: var(--font-heading); font-size: 20px; margin:0; }
.lead-close { appearance:none; background:transparent; border:0; font-size:24px; line-height:1; padding:8px; }
.lead-steps { display:flex; gap:8px; margin-bottom:12px; }
.lead-step { width:28px; height:28px; border-radius:14px; display:grid; place-items:center; border:1px solid #e5e7eb; color:#111; font-weight:600; }
.lead-step.active { background:#7C3AED; color:#fff; border-color:#7C3AED; }
.lead-form .form-group { margin-bottom:12px; }
.lead-form label { display:block; font-size:14px; margin-bottom:6px; }
.lead-form input, .lead-form textarea { width:100%; padding:12px; border:1px solid #e5e7eb; border-radius:12px; font-size:16px; }
.lead-form .error { color:#EF4444; font-size:12px; margin-top:4px; min-height:16px; }
.lead-actions { display:flex; gap:8px; margin-top:8px; }
.lead-btn { flex:1 1 auto; min-height:48px; border-radius:14px; border:1px solid #e5e7eb; background:#fff; font-weight:600; }
.lead-btn.primary { background:#7C3AED; color:#fff; border-color:#7C3AED; }

/* Mobile nav toggle behavior */
.nav-menu.is-open { position: fixed; top:56px; right:0; left:0; background:#fff; padding:16px; display:flex; flex-direction:column; gap:12px; border-top:1px solid #eee; z-index:1001; }
@media (min-width: 900px) {
  .nav-menu.is-open { position: static; flex-direction: row; gap: 2rem; padding: 0; border: 0; }
}

/* Mobile nav visibility */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; }
  .nav-menu.is-open { display: flex; }
}

/* Lazy image CLS helpers */
img[loading="lazy"] { content-visibility: auto; }
@supports (contain-intrinsic-size: 1px) {
  img[loading="lazy"] { contain-intrinsic-size: 800px 450px; }
}

/* Reserve navbar height to reduce CLS */
.nav-container { min-height: 56px; }

/* Common image containers aspect ratios */
.service-detail-visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.case-studies-section .case-study img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.blog-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ==========================
   Testimonials (Case Studies)
   Mobile-first, scroll-snap carousel
   ========================== */
.testimonials-section { padding: 72px 0; background: #ffffff; }
.testimonials-section .section-header { text-align: center; margin-bottom: 18px; }

/* Controls (desktop only) */
.testimonials-section .t-controls { position: relative; display: flex; justify-content: space-between; gap: 8px; margin: 8px 16px 6px; }
.testimonials-section .t-nav { appearance: none; border: 1px solid #e5e7eb; background:#fff; color:#111; width:40px; height:40px; border-radius:12px; font-size:22px; line-height:1; display:grid; place-items:center; cursor:pointer; transition: transform 120ms ease; }
.testimonials-section .t-nav:active { transform: scale(0.98); }
.testimonials-section .t-nav + .t-nav { margin-left: 8px; }

/* Track */
.testimonials-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 16px;
  margin: 0 -16px;
}
.testimonials-grid::-webkit-scrollbar { height: 6px; }
.testimonials-grid::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 6px; }

/* Card */
.testimonial {
  flex: 0 0 86%;
  max-width: 380px;
  scroll-snap-align: center;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #7C3AED, #22D3EE) border-box;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.testimonial .testimonial-content { padding: 20px; }
.testimonial .quote-mark { width: 24px; height: 24px; color: #7C3AED !important; opacity: .9; margin-bottom: 8px; }
.testimonial blockquote { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color:#111; }
.testimonial .testimonial-footer { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color:#fff !important; background: linear-gradient(135deg, #7C3AED, #22D3EE); box-shadow: 0 4px 14px rgba(124,58,237,0.35); }
.testimonial .author-meta h4 { margin: 0; font-size: 15px; font-weight: 700; color:#111; }
.testimonial .author-meta span { display:block; font-size: 13px; color:#6b7280; }
.testimonial .rating { font-size: 14px; letter-spacing: 2px; color: #F59E0B !important; margin-top: 2px; }
.testimonial .kpi-pill { margin-left: auto; background: #F5F3FF; color: #7C3AED !important; border: 1px solid #E9D5FF; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Desktop layout */
@media (min-width: 900px) {
  .testimonials-section { padding: 96px 0; }
  .testimonials-section .t-controls { display: none; }
  .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; padding: 0; margin: 0; }
  .testimonial { flex: none; max-width: none; scroll-snap-align: unset; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-grid { scroll-behavior: auto; }
}

/* Consent banner */
.consent-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); background:#111827; color:#fff; border-radius: 12px; padding: 12px; z-index: 1100; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: none; }
.consent-banner.is-visible { display: block; }
.consent-banner .consent-actions { display:flex; gap:8px; margin-top:8px; }
.consent-banner .consent-btn { flex:1 1 auto; min-height: 44px; border-radius: 10px; border: 1px solid #374151; background:#1f2937; color:#fff; font-weight:600; }
.consent-banner .consent-btn.primary { background:#7C3AED; border-color:#7C3AED; }

/* Theme variables */
:root { --brand:#7C3AED; --sticky-bg:rgba(11,11,12,0.84); --btn-text:#ffffff; }

/* CTA override to use brand token */
.cta-button { background: var(--brand, #7C3AED) !important; color:#fff !important; animation:none !important; }
.cta-button:hover { background: var(--brand, #7C3AED) !important; }
.cta-button span, .magnetic span { color: #fff !important; -webkit-text-fill-color: #fff !important; }

/* Universal hero centering fix */
.hero { display: grid; place-items: center; }
.hero .hero-content { position: relative !important; left:auto !important; top:auto !important; transform:none !important; margin:0 auto !important; display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; text-align:center !important; width:100%; max-width:800px; }

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff !important;
    background-image: none !important;
    background: #ffffff !important;
    color: var(--midnight-navy);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent fixed navbar from overlapping top content */
    padding-top: var(--nav-h, 56px);
}

/* Remove any subtle hero pseudo-element that may appear as a dot */
body .hero .hero-content::before { display: none !important; content: none !important; }

/* Hide decorative particles on non-careers pages to avoid stray dots */
html:not([data-page="careers"]) .particle { display: none !important; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--neon-green);
    outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    color: #000000;
    -webkit-text-fill-color: #000000;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #000000;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    z-index: 999;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--midnight-navy);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    cursor: url('assets/custom-cursor.png') 16 16, pointer;
}

.nav-link:hover {
    color: #000000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--midnight-navy);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff !important;
    background-image: none !important;
    /* Enhanced centering for perfect alignment */
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    /* Additional viewport centering */
    position: relative;
    overflow-x: hidden;
    /* Ensure perfect centering across all devices */
    display: grid;
    place-items: center;
    /* Control vertical offset using a variable to avoid !important clashes */
    --hero-transform: translateY(-7vh);
}

/* Brain container sizing and spacing */
.brain-wrap {
    width: min(560px, 92vw);
    height: clamp(180px, 28vh, 340px);
    margin: 0 auto 12px;
    position: relative;
}

/* Ensure brain canvas fills its wrapper */
#app { width: 100%; height: 100%; }

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    background-image: none !important;
    opacity: 1;
    pointer-events: none; /* don't block taps/scroll */
}



.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    /* Enhanced centering properties */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: #ffffff !important;
    background-image: none !important;
    border-radius: 50%;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

/* Animated Text Styles */
.flip-container {
    display: inline-block;
    text-align: center;
    min-width: 200px;
    height: 1.2em;
    overflow: hidden;
    vertical-align: middle;
    line-height: 1.2;
    margin-top: 0.08em; /* tighter spacing to the line above */
}

#flip {
    position: relative;
    width: 100%;
    text-align: center;
    animation: show 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0;
    padding: 0;
}

#flip > div {
    /* Solid black version */
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 800;
    font-size: 1em;
    line-height: 1.2;
    height: 1.2em;
    margin: 0;
    padding: 0;
    text-align: center;
    display: block;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

@keyframes show {
    0% { transform: translateY(0); }
    4% { transform: translateY(0); }
    12% { transform: translateY(-1.2em); }
    20% { transform: translateY(-1.2em); }
    28% { transform: translateY(-2.4em); }
    36% { transform: translateY(-2.4em); }
    44% { transform: translateY(-3.6em); }
    52% { transform: translateY(-3.6em); }
    60% { transform: translateY(-4.8em); }
    68% { transform: translateY(-4.8em); }
    76% { transform: translateY(-6em); }
    84% { transform: translateY(-6em); }
    92% { transform: translateY(-7.2em); }
    100% { transform: translateY(-7.2em); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    color: #000000;
    line-height: 1.05;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    animation: gradientShift 3s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background: #ffffff; }
    50% { background: #ffffff; }
}

.hero-line {
    display: block;
    position: relative;
    color: #000000;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.hero-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transform: translateY(0);
    line-height: 1.8;
    /* Enhanced subtitle centering */
    text-align: center;
    width: 100%;
    display: block;
    color: #000000;
}

/* Metallic chrome text utility (also applied to #flip > div above) */
.chrome-text {
    /* Solid black for hero line */
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 900;
    letter-spacing: 0.04em;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #000000;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: #000000;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #000000;
    animation: scrollAnimation 2s infinite;
    border-radius: 2px;
}

@keyframes scrollAnimation {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* Buttons */
.cta-button, .magnetic {
    background: #7C3AED; /* brand primary */
    border: none;
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    min-height: 48px;
    cursor: url('assets/custom-cursor.png') 16 16, pointer;
    transition: var(--transition-elastic);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-deep);
    animation: buttonGlow 3s ease-in-out infinite;
    /* Enhanced button centering */
    margin: 0 auto;
    text-align: center;
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: var(--shadow-deep), 0 0 16px rgba(124, 58, 237, 0.35); }
    50% { box-shadow: var(--shadow-deep), 0 0 22px rgba(34, 211, 238, 0.3); }
}

.cta-button::before, .magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: left 0.5s;
}

.cta-button:hover::before, .magnetic:hover::before {
    left: 100%;
}

.cta-button:hover, .magnetic:hover {
    transform: scale(1.05) rotate(1deg) translateY(-2px);
    box-shadow: var(--shadow-deep), var(--glow-effect);
    background: #6D28D9;
    animation: buttonHover 0.6s ease-in-out infinite alternate;
}

@keyframes buttonHover {
    0% { background: #7C3AED; }
    100% { background: #6D28D9; }
}

.cta-button:active, .magnetic:active {
    transform: scale(0.98) translateY(1px);
    transition: all 0.1s ease;
}

.cta-button span, .magnetic span {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: var(--transition-smooth);
}

.cta-button:hover span, .magnetic:hover span {
    text-shadow: 0 0 10px rgba(11, 13, 23, 0.3);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #000000;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* What We Elevate Section */
.elevate-section {
    background: #000000;
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3.5rem;
    margin-top: 5rem;
}

.pillar {
    text-align: center;
    padding: 3.5rem 2.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: none !important;
    border: 2px solid rgba(194, 255, 77, 0.3);
    transition: var(--transition-elastic);
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 20px;
    z-index: 0;
}

.pillar:hover::before {
    opacity: 0.1;
}

.pillar:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(247, 249, 252, 0.1);
    border-color: #000000;
    box-shadow: var(--shadow-deep), var(--glow-effect);
}

.pillar > * {
    position: relative;
    z-index: 1;
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: #000000;
    transition: var(--transition-elastic);
    filter: none;
}

.pillar:hover .pillar-icon {
    transform: scale(1.1) rotate(5deg);
    color: #000000;
    filter: none;
    animation: iconPulse 1s ease-in-out infinite alternate;
}

@keyframes iconPulse {
    0% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1.15) rotate(-5deg); }
}

.pillar h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #000000;
    transition: var(--transition-smooth);
    font-weight: 700;
}

.pillar:hover h3 {
    color: #000000;
    transform: translateY(-2px);
}

.pillar p {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.7;
    transition: var(--transition-smooth);
}

.pillar:hover p {
    opacity: 1;
    transform: translateY(-2px);
}

/* Services Section */
.services-section {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.services-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-container::-webkit-scrollbar {
    display: none;
}

.service-panel {
    min-width: 400px;
    padding: 3rem;
    background: rgba(247, 249, 252, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(247, 249, 252, 0.1);
    scroll-snap-align: start;
    transition: var(--transition-elastic);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 20px;
    z-index: 0;
}

.service-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: #000000;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-panel:hover::before {
    opacity: 0.15;
}

.service-panel:hover::after {
    opacity: 1;
    animation: serviceGlow 2s ease-in-out infinite alternate;
}

@keyframes serviceGlow {
    0% { transform: scale(0.8) rotate(0deg); }
    100% { transform: scale(1.2) rotate(180deg); }
}

.service-panel:hover {
    background: rgba(247, 249, 252, 0.1);
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg) scale(1.03);
    border-color: #000000;
    box-shadow: var(--shadow-deep), 
                0 20px 40px rgba(92, 51, 255, 0.3),
                0 0 30px rgba(194, 255, 77, 0.2);
}

.service-panel > * {
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.service-panel:hover > * {
    transform: translateZ(20px);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    text-shadow: 0 0 20px rgba(92, 51, 255, 0.3);
}

.service-panel:hover .service-number {
    text-shadow: 0 0 30px rgba(92, 51, 255, 0.5);
    transform: translateY(-5px) scale(1.1);
}

.service-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-panel:hover h3 {
    transform: translateY(-3px) scale(1.05);
}

.service-panel p {
    margin-bottom: 2rem;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.service-panel:hover p {
    opacity: 1;
    transform: translateY(-2px);
}

.service-panel ul {
    list-style: none;
}

.service-panel li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.service-panel li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.service-panel:hover li {
    opacity: 1;
    transform: translateX(5px);
}

.service-panel:hover li::before {
    color: #000000;
    transform: translateX(5px) scale(1.2);
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    opacity: 0.3;
}

/* Portfolio Section Styles */
.portfolio-section {
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* Portfolio Stats Section */
.portfolio-stats-section {
    background: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Final hero centering enforcement (highest specificity) */
body .hero, body .legal-hero { display: grid !important; place-items: center !important; min-height: 60vh; }
body .hero .hero-content, body .legal-hero .hero-content { position: relative !important; left: auto !important; top: auto !important; transform: var(--hero-transform, none) !important; margin: 0 auto !important; max-width: 800px !important; padding: 0 2rem !important; text-align: center !important; }

.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.portfolio-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--ice-white);
}

.portfolio-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--neon-cyan);
    font-weight: 600;
}

.feature-text p {
    margin: 0;
    color: rgba(247, 249, 252, 0.8);
    line-height: 1.5;
}

.portfolio-cta {
    margin-top: 2rem;
}

.cta-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(247, 249, 252, 0.6);
    text-align: center;
}

.portfolio-visual {
    position: relative;
}

.portfolio-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.portfolio-image-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(247, 249, 252, 0.8);
}

/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    z-index: 1105; /* above sticky bar and consent banner */
    font-weight: 600;
}

/* When sticky action bar is visible, lift chat button above it */
body.has-sticky-bar .chatbot-toggle {
    bottom: calc(var(--sticky-bar-offset) + env(safe-area-inset-bottom));
}

.chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.toggle-icon {
    font-size: 1.2rem;
}

.chatbot-container {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
    width: 400px;
    height: 600px;
    background: #ffffff !important;
    background-image: none !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1106;
    overflow: hidden;
}

/* Lift open chat window when sticky bar is shown */
body.has-sticky-bar .chatbot-container {
    bottom: calc(var(--sticky-bar-offset) + 16px + env(safe-area-inset-bottom));
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: #ffffff !important;
    background-image: none !important;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #000000;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 1.2rem;
}

.chatbot-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
}

.chatbot-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
    color: #000000;
}

.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #000000;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #ffffff !important;
    background-image: none !important;
}

.message {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--neon-cyan);
}

.message-content {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    border-top-left-radius: 5px;
    max-width: 80%;
}

.user-message .message-content {
    background: rgba(0, 255, 255, 0.1);
    border-top-left-radius: 15px;
    border-top-right-radius: 5px;
    margin-left: auto;
}

.user-message {
    flex-direction: row-reverse;
}

.message-content p {
    margin: 0;
    color: #000000;
    line-height: 1.4;
    font-size: 0.9rem;
}

.chatbot-input {
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    gap: 0.5rem;
}

/* Button-first mode: hide input/send */
.chatbot-container.button-mode .chatbot-input input,
.chatbot-container.button-mode .chatbot-input .send-button { display: none !important; }

.chatbot-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    padding: 0.8rem 1rem;
    color: #000000;
    font-size: 0.9rem;
}

.chatbot-input input::placeholder {
    color: rgba(247, 249, 252, 0.5);
}

.chatbot-input input:focus {
    outline: none;
    border-color: #000000;
}

.send-button {
    background: #000000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--ice-white);
}

.send-button:hover {
    background: var(--neon-cyan);
    transform: scale(1.1);
}

.send-button svg {
    width: 16px;
    height: 16px;
}

/* Make rich card messages seamless */
.message-content:has(.chat-card) {
    background: transparent;
    padding: 0;
}

/* Chatbot: Button-first quick UI */
.chat-quickbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chip-btn {
    appearance: none;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.06);
    color: #000;
    border-radius: 999px;
    padding: 10px 14px;
    line-height: 1;
    font-size: 14px;
    min-height: 44px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.chip-btn.primary {
    background: var(--brand, #7C3AED);
    border-color: var(--brand, #7C3AED);
    color: #fff;
}
.chip-btn:hover { transform: translateY(-1px); }
.chip-btn:active { transform: translateY(0) scale(0.98); }
.chip-btn:focus-visible { outline: 2px solid var(--brand, #7C3AED); outline-offset: 2px; }

.chat-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 12px;
    animation: chat-in 220ms cubic-bezier(0.2,0,0,1);
}
.chat-card-title { font-weight: 700; margin: 0 0 6px 0; font-size: 16px; color: #000; }
.chat-card-text { margin: 6px 0 10px; color: #111; font-size: 14px; line-height: 1.4; }
.chat-list { margin: 6px 0 10px 1rem; color: #111; font-size: 14px; }
.btn-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 6px; }

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.06);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.action-btn.primary { background: var(--brand, #7C3AED); color: #fff; border-color: var(--brand, #7C3AED); }
.action-btn.ghost { background: transparent; }
.action-btn:hover { transform: translateY(-1px); }
.action-btn:active { transform: translateY(0) scale(0.98); }
.action-btn:focus-visible { outline: 2px solid var(--brand, #7C3AED); outline-offset: 2px; }
.card-footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }

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

/* Chat form inside messages */
.chat-form { display: grid; gap: 10px; margin-top: 6px; }
.chat-form .field { display: grid; gap: 6px; }
.chat-form .field span { font-size: 12px; color: #333; }
.chat-form input, .chat-form textarea, .chat-form select {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.16);
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 12px 12px;
  min-height: 44px;
  font-size: 14px;
  color: #000;
}
.chat-form textarea { min-height: 88px; resize: vertical; }
.chat-form .error { color: #b00020; font-size: 12px; }

/* Appear animation for messages */
.message.chat-appear .message-content,
.message .chat-appear { animation: chat-in 200ms cubic-bezier(0.2,0,0,1); }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .chat-card, .message.chat-appear .message-content { animation: none !important; } }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000000;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Design for Portfolio and Chatbot */
@media (max-width: 992px) {
    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .chatbot-container {
        width: 350px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .portfolio-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chatbot-container {
        width: calc(100vw - 2rem);
        height: calc(100vh - 4rem);
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: calc(16px + env(safe-area-inset-right));
        left: calc(16px + env(safe-area-inset-left));
    }
    
    .chatbot-toggle { bottom: calc(16px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); }
    body.has-sticky-bar .chatbot-container { bottom: calc(var(--sticky-bar-offset) + 16px + env(safe-area-inset-bottom)); }
    body.has-sticky-bar .chatbot-toggle { bottom: calc(var(--sticky-bar-offset) + env(safe-area-inset-bottom)); }
    /* Keep the toggle compact on very small screens */
    @media (max-width: 380px) {
        .chatbot-toggle { padding: 0.75rem 0.9rem; }
        .chatbot-toggle .toggle-text { display: none; }
    }
}

/* Case Studies Section */
.cases-section {
    background: #000000;
}

/* Case Studies Page Specific Styles */
.case-studies-section {
    background: #ffffff;
    padding: 6rem 0;
}

/* Process Showcase Section */
.process-showcase {
    background: #ffffff;
    padding: 6rem 0;
}

.process-showcase-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Ensure step numbers are visible with high specificity */
.process-showcase .step-number {
    background: #000000 !important;
    color: #ffffff !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 2rem !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Mobile responsive adjustments for process showcase */
@media (max-width: 768px) {
    .process-showcase {
        padding: 4rem 0;
    }
    
    .process-showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .process-step {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .process-showcase .step-number {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        background: #000000 !important;
        color: #ffffff !important;
        text-align: center !important;
        line-height: 1 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.case-study {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.case-study:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.case-study:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #000000;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.case-category {
    color: #ffffff !important;
    font-weight: 600;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 700;
}

.case-content p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.read-more-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

.read-more-btn:hover {
    background: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Ensure View Details button text is visible with high specificity */
.case-study .read-more-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-size: 0.9rem !important;
}

.case-study .read-more-btn:hover {
    background: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.case-item {
    background: rgba(247, 249, 252, 0.05);
    backdrop-filter: none !important;
    border: 1px solid rgba(247, 249, 252, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition-elastic);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-deep);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.case-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-animated);
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.case-item:hover::before {
    opacity: 0.1;
}

.case-item:hover::after {
    opacity: 0.5;
}

.case-item:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
    background: rgba(247, 249, 252, 0.1);
    border-color: #000000;
    box-shadow: var(--shadow-deep), 
                0 25px 50px rgba(194, 255, 77, 0.2),
                0 0 40px rgba(92, 51, 255, 0.3);
}

.case-item > * {
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.case-item:hover > * {
    transform: translateZ(10px);
}

.case-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-elastic);
    filter: brightness(0.8) contrast(1.1);
}

.case-item:hover .case-image img {
    transform: scale(1.05) translateZ(20px);
    filter: brightness(1) contrast(1.2) saturate(1.2);
}

.case-content {
    padding: 2rem;
    position: relative;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ice-white);
    transition: var(--transition-smooth);
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-item:hover .case-content h3 {
    transform: translateY(-3px) scale(1.05);
    text-shadow: none;
}

.case-content p {
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

.case-item:hover .case-content p {
    opacity: 1;
    transform: translateY(-2px);
}

.case-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.case-metrics span,
.case-metrics .metric {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    color: #000000 !important;
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.case-item:hover .case-metrics span,
.case-item:hover .case-metrics .metric {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    text-shadow: none;
}

/* Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 600;
}

.step-content p {
    opacity: 0.8;
    color: #333333;
    line-height: 1.6;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-section {
    background: #ffffff !important;
    color: #000000;
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.about-section * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5C33FF;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.team-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-image {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.team-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.team-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.team-member {
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 2rem;
    transition: var(--transition-elastic);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    color: #333333;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 25px;
    z-index: 0;
}

.team-member::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: #ffffff;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.team-member:hover::before {
    opacity: 0.1;
}

.team-member:hover::after {
    opacity: 1;
    animation: teamGlow 2s ease-in-out infinite alternate;
}

@keyframes teamGlow {
    0% { transform: scale(0.8) rotate(0deg); }
    100% { transform: scale(1.2) rotate(180deg); }
}

.team-member:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg) scale(1.03);
    background: rgba(247, 249, 252, 0.1);
    border-color: #000000;
    box-shadow: var(--shadow-deep), 
                0 25px 50px rgba(194, 255, 77, 0.2),
                0 0 40px rgba(92, 51, 255, 0.3);
}

.team-member > * {
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.team-member:hover > * {
    transform: translateZ(15px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 3px solid var(--neon-green);
    transition: var(--transition-elastic);
    filter: brightness(0.9) contrast(1.1);
    box-shadow: 0 0 20px rgba(194, 255, 77, 0.3);
}

.team-member:hover img {
    transform: scale(1.1) rotateZ(5deg) translateZ(30px);
    border-color: #000000;
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
    box-shadow: 0 0 30px rgba(92, 51, 255, 0.5),
                0 10px 20px rgba(194, 255, 77, 0.3);
    animation: teamImageFloat 3s ease-in-out infinite alternate;
}

@keyframes teamImageFloat {
    0% { transform: scale(1.1) rotateZ(5deg) translateZ(30px) translateY(0px); }
    100% { transform: scale(1.1) rotateZ(-5deg) translateZ(30px) translateY(-5px); }
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--ice-white);
    transition: var(--transition-smooth);
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-member:hover h3 {
    transform: translateY(-5px) scale(1.05);
    text-shadow: none;
}

.team-member .role {
    color: #000000;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.team-member:hover .role {
    color: #000000;
    transform: translateY(-3px);
    text-shadow: none;
}

.team-member p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.team-member:hover p {
    opacity: 1;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-section {
    background: #000000;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-details {
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: #000000;
    margin-bottom: 0.5rem;
}


/* Contact Form */
.contact-form {
    background: rgba(247, 249, 252, 0.05);
    backdrop-filter: none !important;
    border: 1px solid rgba(247, 249, 252, 0.1);
    border-radius: 25px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0.05;
    border-radius: 25px;
    z-index: 0;
}

.contact-form > * {
    position: relative;
    z-index: 1;
}

.form-progress {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(247, 249, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-elastic);
    position: relative;
    overflow: hidden;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.progress-step.active {
    background: #000000;
    color: #000000;
    box-shadow: none;
    transform: scale(1.1);
}

.progress-step.active::before {
    opacity: 1;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-smooth);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-step.prev {
    transform: translateX(-50px);
}

.form-step h3 {
    margin-bottom: 2rem;
    text-align: center;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ice-white);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(247, 249, 252, 0.1);
    border-radius: 15px;
    background: rgba(247, 249, 252, 0.05);
    backdrop-filter: none !important;
    color: var(--ice-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-elastic);
    position: relative;
    z-index: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(247, 249, 252, 0.5);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    background: rgba(247, 249, 252, 0.1);
    box-shadow: 0 0 20px rgba(194, 255, 77, 0.2),
                inset 0 0 20px rgba(194, 255, 77, 0.1);
    transform: translateY(-2px) scale(1.01);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(194, 255, 77, 0.7);
    transform: translateY(-2px);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label {
    color: #000000;
    text-shadow: none;
    transform: translateY(-2px);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23c2ff4d' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%235c33ff' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.form-prev,
.form-next,
.form-submit {
    padding: 1rem 2rem;
    border: 2px solid #000000;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-elastic);
    position: relative;
    overflow: hidden;
}

.form-prev {
    background: transparent;
    color: #000000;
}

.form-prev::before,
.form-next::before,
.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: var(--transition-smooth);
    z-index: -1; /* keep decorative sweep behind the label */
}

.form-prev:hover::before,
.form-next:hover::before,
.form-submit:hover::before {
    left: 0;
}

.form-prev:hover,
.form-next:hover,
.form-submit:hover {
    color: #000000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(194, 255, 77, 0.3);
}

.form-prev span,
.form-next span,
.form-submit span {
    position: relative;
    z-index: 1;
}

.form-next,
.form-submit {
    background: #000000;
    color: #ffffff !important; /* override global * { color:#000 !important } */
    -webkit-text-fill-color: #ffffff !important;
    border-color: transparent;
}

/* Ensure next/submit buttons remain legible on hover */
.form-next:hover,
.form-submit:hover { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }

.error-message {
    color: #ff4757;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #ffffff !important;
    background-image: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-cta {
    background: #ffffff !important;
    background-image: none !important;
    padding: 3rem 0;
    text-align: center;
}

.footer-cta h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-content {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin: 1rem 0 2rem;
    opacity: 0.8;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight-navy);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--midnight-navy);
    transition: var(--transition-smooth);
    cursor: url('assets/custom-cursor.png') 16 16, pointer;
}

.social-links a:hover {
    background: #000000;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #000000;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--midnight-navy);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
    cursor: url('assets/custom-cursor.png') 16 16, pointer;
}

.footer-links a:hover {
    opacity: 1;
    color: #000000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    background-image: none !important;
    z-index: 1000;
    backdrop-filter: none !important;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: #ffffff !important;
    background-image: none !important;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--midnight-navy);
    font-size: 2rem;
    cursor: url('assets/custom-cursor.png') 16 16, pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-description {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.modal-metrics {
    display: flex;
    gap: 1rem;
}

.modal-metrics span {
    background: #000000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition-smooth);
        overflow-y: auto;
        z-index: 999;
        /* Ensure menu is above other elements */
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #C2FF4D;
    }
    
    .nav-toggle {
        display: flex;
        cursor: pointer;
        z-index: 1000;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #0A0A0A;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .services-container {
        flex-direction: column;
    }
    
    .service-panel {
        min-width: auto;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    .hero { --hero-transform: translateY(-10vh); min-height: 92vh; }
    .scroll-indicator { display: none; }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        /* Ensure perfect centering on mobile */
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content {
        /* Enhanced mobile centering */
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        position: relative;
        left: auto;
        top: auto;
    }

    .section-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .pillars-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-collage {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero { --hero-transform: translateY(-12vh); }
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        /* Enhanced mobile centering */
        width: 100%;
        max-width: 100%;
        position: relative;
        left: auto;
    }
    .brain-wrap { height: clamp(180px, 36vh, 300px); margin-bottom: 8px; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 0.75rem; }
    
    .pillar,
    .service-panel,
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .case-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .case-metrics span,
    .case-metrics .metric {
        white-space: normal;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .case-content p {
        font-size: 0.95rem;
    }
    
    .case-study .read-more-btn {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.85rem !important;
        width: 100%;
        margin-top: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
}

/* Founder Section Styles */
.founder-section {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.founder-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    pointer-events: none;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.founder-media {
    position: relative;
}

.founder-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.founder-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.founder-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.founder-video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.founder-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.founder-info {
    padding-left: 2rem;
}

.founder-badge {
    display: inline-block;
    background: #000000;
    color: var(--ice-white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder-title {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 2rem;
    font-weight: 500;
}

.founder-story {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(247, 249, 252, 0.8);
    margin-bottom: 2rem;
}

.founder-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.founder-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ice-white);
    font-size: 1.2rem;
}

.contact-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--ice-white);
    font-weight: 600;
}

.contact-info p {
    margin: 0;
    color: var(--neon-cyan);
    font-weight: 500;
}

/* Responsive Design for Founder Section */
@media (max-width: 992px) {
    .founder-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .founder-info {
        padding-left: 0;
    }
    
    .founder-image-container {
        transform: none;
        max-width: 400px;
        margin: 0 auto 2rem auto;
    }
    
    .founder-video-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .founder-name {
        font-size: 2.5rem;
    }
    
    .founder-highlights {
        justify-content: center;
    }
    
    .founder-contact {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .founder-content {
        gap: 2rem;
    }
    
    .founder-name {
        font-size: 2rem;
    }
    
    .founder-image {
        height: 300px;
    }
    
    .founder-video {
        height: 200px;
    }
    
    .highlight-item {
         padding: 0.6rem 1rem;
         font-size: 0.8rem;
     }
 }

/* Showcase Section Styles */
.showcase-section {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    pointer-events: none;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    height: 600px;
    position: relative;
    z-index: 2;
}

.showcase-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.showcase-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.showcase-large {
    grid-row: 1 / 3;
}

.showcase-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    padding: 2rem;
    color: var(--ice-white);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.showcase-overlay p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Responsive Design for Showcase Section */
@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }
    
    .showcase-large {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }
    
    .showcase-item {
        height: 250px;
    }
    
    .showcase-large {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .showcase-large {
        grid-column: 1;
        grid-row: auto;
    }
    
    .showcase-item {
        height: 200px;
    }
    
    .showcase-overlay {
        padding: 1.5rem;
    }
    
    .showcase-overlay h3 {
        font-size: 1.2rem;
    }
}

/* Culture Section Styles */
.culture-section {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.culture-text {
    padding-right: 2rem;
}

.culture-values {
    margin-top: 2rem;
}

.value-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--electric-indigo);
    transition: var(--transition-smooth);
}

.value-item:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.value-item h4 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.value-item p {
    color: rgba(247, 249, 252, 0.8);
    line-height: 1.6;
    margin: 0;
}

.culture-visuals {
    position: relative;
    display: grid;
    gap: 2rem;
}

.culture-image-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(5deg);
    transition: var(--transition-smooth);
}

.culture-image-main:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.culture-image-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.culture-image-secondary {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-3deg);
    transition: var(--transition-smooth);
}

.culture-image-secondary:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.culture-image-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Responsive Design for Culture Section */
@media (max-width: 992px) {
    .culture-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .culture-text {
        padding-right: 0;
    }
    
    .culture-image-main,
    .culture-image-secondary {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .value-item {
        padding: 1rem;
    }
    
    .culture-image-main img {
        height: 250px;
    }
    
    .culture-image-secondary img {
        height: 150px;
    }
}

/* Vision Visual Styles */
.vision-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.vision-visual img {
    width: 100%;
    max-width: 600px;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-deep);
    transition: var(--transition-smooth);
}

.vision-visual img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Member Image Styles */
.member-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.member-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-green);
    transition: var(--transition-elastic);
    filter: brightness(0.9) contrast(1.1);
    box-shadow: 0 0 20px rgba(194, 255, 77, 0.3);
}

.member-image img:hover {
    transform: scale(1.1);
    border-color: #000000;
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
    box-shadow: 0 0 30px rgba(92, 51, 255, 0.5);
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .vision-visual img {
        height: 200px;
        max-width: 300px;
    }
    
    .member-image img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vision-visual img {
        height: 150px;
        max-width: 250px;
    }
    
    .member-image img {
        width: 80px;
        height: 80px;
    }
}

/* Story Section Styles */
.story-section {
    padding: 8rem 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    pointer-events: none;
}

.story-content {
    position: relative;
    z-index: 2;
}

.story-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    counter-reset: timeline-counter;
    overflow: hidden;
}

/* Timeline vertical line removed */

.timeline-item {
    position: relative;
    margin: 6rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 150px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    counter-increment: timeline-counter;
    padding: 0 3rem;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }

.timeline-year {
    position: absolute;
    left: 50%;
    color: #000000;
    font-size: 2.2rem;
    font-weight: 700;
    z-index: 3;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    line-height: 1;
    padding: 0 2rem;
    margin: 0;
    white-space: nowrap;
    background: #ffffff;
}

/* Removed connecting lines and arrows */

.timeline-content {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 2rem;
    width: calc(50% - 100px);
    position: relative;
    margin: 2rem 0;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: #000000;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: #000000;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #000000;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #000000;
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin: 1.5rem 0 0;
    font-weight: 400;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for Timeline */
@media (max-width: 992px) {
    .story-timeline {
        padding: 3rem 1rem;
    }
    
    .story-timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin: 4rem 0 4rem 25px;
        padding: 0;
        min-height: auto;
        align-items: flex-start;
    }
    
    .timeline-year {
        left: 0;
        font-size: 1.4rem;
        padding: 0 1.5rem 0 0.5rem;
        transform: translateY(-50%);
        background: #fff;
    }
    
    .timeline-year::before {
        display: none;
    }
    
    .timeline-year::after {
        left: auto;
        right: 0;
        width: 15px;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin: 0 0 0 20px;
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
        margin-top: 0;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.4rem;
    }
    
    .timeline-content p {
         font-size: 1rem;
     }
 }

/* Vision Section Styles */
.vision-section {
    padding: 8rem 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    pointer-events: none;
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 600px;
}

.vision-text {
    position: relative;
}

.vision-text h3 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.vision-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #ffffff;
    opacity: 0.95;
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.vision-pillars .pillar {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(194, 255, 77, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-pillars .pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vision-pillars .pillar:hover {
    transform: translateY(-10px);
    border-color: #000000;
    box-shadow: none;
}

.vision-pillars .pillar:hover::before {
    opacity: 1;
}

.vision-pillars .pillar h4 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #000000;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.vision-pillars .pillar p {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Enhanced Member Info Styles */
.member-info {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(194, 255, 77, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-info:hover {
    transform: translateY(-5px);
    border-color: #000000;
    box-shadow: none;
}

.member-info:hover::before {
    opacity: 1;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.member-info p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.member-info .read-more {
    background: #ffffff;
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-block;
}

.member-info .read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(194, 255, 77, 0.3);
}

/* Mobile Responsive for Vision Section */
@media (max-width: 768px) {
    .vision-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        min-height: auto;
        text-align: center;
    }
    
    .vision-text h3 {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .vision-text p {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .vision-pillars {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vision-visual img {
        max-width: 100%;
        height: 350px;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
}

h1, h2, h3, h4, h5, h6, p, span, li, a, label, th, td {
    color: #000 !important;
}

.text-gradient, .gradient-text, .text-gradient * {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #000 !important;
    background-clip: initial !important;
    color: #000 !important;
}

/* ===== IMPROVED FAQ SECTION ===== */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-accordion {
    margin-bottom: 4rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 51, 255, 0.5);
}

.faq-question:hover {
    background: rgba(92, 51, 255, 0.05);
    color: #5C33FF;
}

.faq-question[aria-expanded="true"] {
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: white;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.question-text {
    flex: 1;
    margin-right: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-question[aria-expanded="true"] {
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: white;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    box-shadow: 0 4px 20px rgba(92, 51, 255, 0.15);
    border-color: #5C33FF;
    background: linear-gradient(135deg, rgba(92, 51, 255, 0.02), rgba(194, 255, 77, 0.02));
}

.faq-question:hover {
    background: rgba(92, 51, 255, 0.05);
    color: #5C33FF;
}

.faq-question:focus {
    outline: 2px solid #5C33FF;
    outline-offset: 2px;
}

.faq-question {
    transition: all 0.3s ease;
}

.answer-content {
    padding: 2rem;
    line-height: 1.6;
    color: #555;
}

.answer-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-list {
    background: rgba(92, 51, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.timeline-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.timeline-list li::before {
    content: "•";
    color: #5C33FF;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.answer-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.highlight-icon {
    font-size: 1.2rem;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.difference-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.diff-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.diff-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.diff-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.support-icon {
    font-size: 1.2rem;
}

.budget-ranges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.budget-range {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.range-amount {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #5C33FF;
    margin-bottom: 0.25rem;
}

.range-desc {
    font-size: 0.85rem;
    color: #666;
}

.answer-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.meta-tag {
    background: #e8f4fd;
    color: #0366d6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.faq-cta {
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
    color: white;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-cta-btn.primary {
    background: white;
    color: #5C33FF;
}

.faq-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.faq-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ===== IMPROVED OTHER WAYS TO CONNECT SECTION ===== */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-method-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-method-card.featured {
    border: 2px solid #FFD700;
    background: linear-gradient(135deg, #fff, #f8f9ff);
}

.contact-method-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.method-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.method-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(92, 51, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-method-card:hover .method-glow {
    opacity: 1;
}

.method-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
}

.status-dot.active {
    background: #2196F3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.status-dot.popular {
    background: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.status-text {
    color: #666;
}

.method-content {
    margin-bottom: 2rem;
}

.method-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.method-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.detail-icon {
    font-size: 1rem;
    color: #5C33FF;
}

.method-actions {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.method-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(92, 51, 255, 0.3);
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.method-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(92, 51, 255, 0.4);
}

.method-primary-btn.featured {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.method-primary-btn.featured:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-text {
    font-weight: 600;
}

.btn-icon {
    font-size: 1.1rem;
}

.method-response-time {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.method-response-time strong {
    color: #5C33FF;
    font-weight: 700;
}

.method-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.contact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5C33FF;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-container {
        padding: 0 1rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .answer-content {
        padding: 1.5rem;
    }

    .difference-grid,
    .support-options,
    .budget-ranges {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-method-card {
        padding: 1.5rem;
    }

    .method-icon {
        font-size: 2.5rem;
    }

    .method-glow {
        width: 50px;
        height: 50px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta {
        padding: 2rem 1.5rem;
    }

    .contact-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

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