/* ================================
   QSS Technosoft - Modern Website Styles
   ================================ */

/* CSS Variables */
:root {
    /* Primary Colors - QSS Brand */
    --primary: #E63946;
    --primary-dark: #C1121F;
    --primary-light: #FF6B6B;

    /* Secondary/Accent Colors */
    --accent: #4361EE;
    --accent-light: #4CC9F0;

    /* Neutral Colors */
    --dark: #0D1117;
    --dark-lighter: #161B22;
    --gray-900: #1F2937;
    --gray-800: #374151;
    --gray-700: #4B5563;
    --gray-600: #6B7280;
    --gray-500: #9CA3AF;
    --gray-400: #D1D5DB;
    --gray-300: #E5E7EB;
    --gray-200: #F3F4F6;
    --gray-100: #F9FAFB;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1440px;
    --container-padding: 60px;
}

/* Full width container variant */
.container--full {
    max-width: 100%;
    padding: 0 var(--container-padding);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

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

/* Wide container for sections that need more width */
.container--wide {
    max-width: 1600px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn--outline {
    border: 2px solid var(--gray-300);
    color: var(--dark);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Ensure minimum touch target size on mobile */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
    }

    .btn--large {
        min-height: 48px;
    }

    .nav__link {
        min-height: 44px;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }

    .service-card__link,
    .footer__links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

.btn--full {
    width: 100%;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

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

/* ================================
   Header & Navigation (Hexaview-inspired)
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--gray-100);
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav__logo {
    display: flex;
    align-items: center;
}

/* Logo Image Styles — official QSS PNG logo, white background blends with header */
.logo-img {
    height: 55px;
    width: auto;
    transition: opacity 0.3s ease;
    display: block;
}

/* Legacy text logo styles (kept for fallback) */
.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-sub {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__item {
    position: relative;
    cursor: pointer;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    padding: 8px 14px;
    transition: color 0.2s ease, background-color 0.2s ease;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md);
    cursor: pointer !important;
}

.nav__link:hover,
.nav__item.active > .nav__link {
    color: var(--primary);
    background: transparent;
}

.dropdown-icon {
    width: 10px;
    height: 6px;
    transition: transform 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
    pointer-events: none;
}

.nav__link * {
    pointer-events: none;
}

.nav__item:hover .dropdown-icon,
.nav__item.active .dropdown-icon {
    opacity: 1;
}

.nav__item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.nav__item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin-bottom: var(--space-sm);
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* ================================
   Mega Menu Styles (Hexaview-style)
   ================================ */
.megamenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    pointer-events: none;
}

.megamenu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav__item.has-megamenu {
    position: relative;
    cursor: pointer;
}

.nav__item.has-megamenu > .nav__link {
    position: relative;
    cursor: pointer !important;
}

/* Ensure pointer cursor across the entire nav link area */
.nav__item.has-megamenu > .nav__link::before {
    content: '';
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 500px;
    max-width: 700px;
    padding-top: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease-out, visibility 0s linear 0.18s;
    z-index: 999;
}

.megamenu__inner {
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    padding: 32px 40px;
}

.nav__item.has-megamenu.active .megamenu,
.nav__item.has-megamenu:focus-within .megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.18s ease-out, visibility 0s linear 0s;
}

.nav__item.has-megamenu.active .dropdown-icon,
.nav__item.has-megamenu:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

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

.megamenu__column {
    padding: 0;
}

.megamenu__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.megamenu__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.megamenu__list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-800);
    font-size: 0.9375rem;
    font-weight: 400;
    transition: color 0.2s ease;
    border-radius: 0;
}

.megamenu__list li a:hover {
    color: var(--primary);
    background: transparent;
}

.megamenu__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    flex-shrink: 0;
}

.megamenu__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.megamenu__list li a:hover .megamenu__icon {
    color: var(--primary);
}

/* Bottom CTA Bar */
.megamenu__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.megamenu__footer-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.megamenu__footer-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.megamenu__footer .btn {
    padding: 10px 24px;
    font-size: 0.875rem;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
    box-shadow: none;
}

.megamenu__footer .btn:hover {
    background: var(--primary);
    transform: none;
    box-shadow: none;
}

/* Compact megamenu for smaller dropdowns */
.megamenu--compact {
    min-width: 400px;
    max-width: 450px;
}

.megamenu--compact .megamenu__inner {
    padding: 24px 28px;
}

.megamenu--compact .megamenu__columns {
    gap: 24px;
}

.megamenu--compact .megamenu__footer {
    display: none;
}

/* Legacy container support - hide if using new structure */
.megamenu__container {
    display: none;
}

.megamenu__cta {
    display: none;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Header CTA Button - Hexaview style (outlined) */
.nav__actions .btn--primary {
    background: transparent;
    color: var(--dark);
    padding: 10px 22px;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-300);
    box-shadow: none;
    transition: all 0.2s ease;
}

.nav__actions .btn--primary:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 20px;
    cursor: pointer;
}

.nav__toggle span {
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0 0;
    margin-top: 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 50%, #16213e 100%);
}

.hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(67, 97, 238, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero__content {
    color: var(--white);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.badge-icon {
    color: var(--primary-light);
}

.hero__title {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-weight: 800;
}

.hero__title .gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    max-width: 540px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero__cta .btn--outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.hero__cta .btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.hero__trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.trust-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.trust-badge {
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.hero__card--main {
    width: 100%;
    max-width: 420px;
}

.card-header {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-dots {
    display: flex;
    gap: var(--space-sm);
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.card-dots span:nth-child(1) { background: #FF5F56; }
.card-dots span:nth-child(2) { background: #FFBD2E; }
.card-dots span:nth-child(3) { background: #27CA40; }

.card-content {
    padding: var(--space-lg);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.code-line {
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.9);
}

.code-line.indent {
    padding-left: var(--space-lg);
}

.code-keyword { color: #FF79C6; }
.code-function { color: #50FA7B; }
.code-prop { color: #8BE9FD; }
.code-string { color: #F1FA8C; }

/* Floating Cards */
.hero__floating {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark);
}

.hero__floating--1 {
    top: 10%;
    right: -10%;
}

.hero__floating--2 {
    bottom: 20%;
    left: -5%;
}

.floating-icon {
    font-size: 1.25rem;
}

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

/* Hero Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: var(--radius-full);
}

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 20px; }
}

/* ================================
   Hero Background
   ================================ */

/* Dark gradient background */
.hero__gradient-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #0d1117 40%, #1a1a2e 100%);
}

.hero--split-ai {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.hero-ai {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0;
    width: 100%;
}

/* Left Content */
.hero-ai__content {
    max-width: 560px;
}

/* Badge */
.hero-ai__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-ai__badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-ai__badge .badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Title */
.hero-ai__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.hero-ai__title .title-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    font-weight: 500;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Description */
.hero-ai__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin: 0 0 2rem;
}

/* CTA Buttons */
.hero-ai__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-ai__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-ai__cta--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.hero-ai__cta--primary:hover {
    background: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
}

.hero-ai__cta--primary svg {
    transition: transform 0.3s ease;
}

.hero-ai__cta--primary:hover svg {
    transform: translateX(4px);
}

.hero-ai__cta--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-ai__cta--outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* Stats */
.hero-ai__stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-stat {
    text-align: center;
}

.ai-stat__number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.ai-stat__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-stat__divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Right: AI Graphic */
.hero-ai__graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-visual {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.ai-brain {
    width: 100%;
    height: auto;
}

/* Ring animations */
.ai-brain .ring--outer {
    animation: rotateRing 45s linear infinite;
    transform-origin: center;
}

.ai-brain .ring--middle {
    animation: rotateRing 38s linear infinite reverse;
    transform-origin: center;
}

.ai-brain .ring--inner {
    animation: rotateRing 30s linear infinite;
    transform-origin: center;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Node pulse animations */
.ai-brain .node {
    animation: nodePulse 9s ease-in-out infinite;
}

.ai-brain .node--1 { animation-delay: 0s; }
.ai-brain .node--2 { animation-delay: 1.8s; }
.ai-brain .node--3 { animation-delay: 3.6s; }
.ai-brain .node--4 { animation-delay: 5.40s; }
.ai-brain .node--5 { animation-delay: 7.2s; }
.ai-brain .node--6 { animation-delay: 9s; }

.ai-brain .node--outer {
    animation: nodePulse 12s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Data pulse animations */
.ai-brain .pulse {
    opacity: 0;
    animation: dataPulse 4.5s ease-in-out infinite;
}

.ai-brain .pulse--1 { animation-delay: 0s; }
.ai-brain .pulse--2 { animation-delay: 0.75s; }
.ai-brain .pulse--3 { animation-delay: 1.5s; }
.ai-brain .pulse--4 { animation-delay: 2.25s; }
.ai-brain .pulse--5 { animation-delay: 3s; }
.ai-brain .pulse--6 { animation-delay: 3.75s; }

@keyframes dataPulse {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Connection line animations */
.ai-brain .conn {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 3s ease-in-out infinite;
}

.ai-brain .connections line:nth-child(1) { animation-delay: 0s; }
.ai-brain .connections line:nth-child(2) { animation-delay: 0.4s; }
.ai-brain .connections line:nth-child(3) { animation-delay: 0.8s; }
.ai-brain .connections line:nth-child(4) { animation-delay: 1.2s; }
.ai-brain .connections line:nth-child(5) { animation-delay: 1.6s; }
.ai-brain .connections line:nth-child(6) { animation-delay: 2s; }
.ai-brain .connections line:nth-child(7) { animation-delay: 2.4s; }
.ai-brain .connections line:nth-child(8) { animation-delay: 2.8s; }

@keyframes drawLine {
    0%, 100% { stroke-dashoffset: 100; }
    50% { stroke-dashoffset: 0; }
}

/* Core hexagon animation */
.ai-brain .core-hex {
    animation: hexPulse 4s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% { stroke-opacity: 0.8; transform: scale(1); }
    50% { stroke-opacity: 1; transform: scale(1.02); }
}

/* Floating Icons */
.ai-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ai-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: iconFloat 5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.ai-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(230, 57, 70, 0.3);
    transform: scale(1.05);
}

.ai-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.ai-icon svg.salesforce-logo {
    fill: #00A1E0;
    stroke: none;
}

.ai-icon span {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ai-icon--1 {
    top: 0;
    right: 10%;
    animation-delay: 0s;
}

.ai-icon--2 {
    top: 35%;
    right: -12%;
    animation-delay: 1s;
}

.ai-icon--3 {
    bottom: 5%;
    left: 10%;
    animation-delay: 2s;
}

.ai-icon--4 {
    top: 20%;
    left: -10%;
    animation-delay: 3s;
}

.ai-icon--5 {
    bottom: 10%;
    right: -8%;
    animation-delay: 1.5s;
}

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

/* GSAP Animation States */
.hero--split-ai.gsap-ready .gsap-badge,
.hero--split-ai.gsap-ready .gsap-title,
.hero--split-ai.gsap-ready .gsap-desc,
.hero--split-ai.gsap-ready .gsap-actions,
.hero--split-ai.gsap-ready .gsap-stats,
.hero--split-ai.gsap-ready .gsap-graphic,
.hero--split-ai.gsap-ready .gsap-label {
    opacity: 0;
    visibility: hidden;
}

/* Fallback: Show elements if GSAP animation hasn't run after 3 seconds */
@keyframes gsapFallback {
    to {
        opacity: 1;
        visibility: visible;
    }
}

.hero--split-ai.gsap-ready .gsap-badge,
.hero--split-ai.gsap-ready .gsap-title,
.hero--split-ai.gsap-ready .gsap-desc,
.hero--split-ai.gsap-ready .gsap-actions,
.hero--split-ai.gsap-ready .gsap-stats,
.hero--split-ai.gsap-ready .gsap-graphic,
.hero--split-ai.gsap-ready .gsap-label {
    animation: gsapFallback 0.5s ease forwards 3s;
}

/* Responsive Split AI Hero */
@media (max-width: 1024px) {
    .hero-ai {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-ai__content {
        max-width: 100%;
        order: 1;
    }

    .hero-ai__graphic {
        order: 0;
    }

    .ai-visual {
        max-width: 350px;
        margin: 0 auto;
    }

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

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

    .ai-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero--split-ai {
        min-height: auto;
    }

    .hero-ai {
        padding: 0;
    }

    .hero-ai__title {
        font-size: 2rem;
    }

    .hero-ai__desc {
        font-size: 1rem;
    }

    .hero-ai__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-ai__cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-ai__stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .ai-stat__divider {
        display: none;
    }

    .ai-visual {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-ai__title {
        font-size: 1.75rem;
    }

    .hero-ai__badge .badge-text {
        font-size: 0.65rem;
    }

    .ai-stat__number {
        font-size: 1.5rem;
    }

    .ai-visual {
        max-width: 240px;
    }
}
/* ================================
   Stats Section
   ================================ */
.stats {
    padding: var(--space-2xl) 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    margin-top: -1px;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat {
    text-align: center;
    padding: var(--space-lg);
}

.stat__number {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat__label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ================================
   Section Styles
   ================================ */
.section__header {
    margin-bottom: var(--space-3xl);
}

.section__header--center {
    text-align: center;
}

.section__badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section__title {
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
}

.section__header--center .section__subtitle {
    margin: 0 auto;
}

/* ================================
   AI Engineering Services Section
   ================================ */
.ai-services {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.ai-services__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: center;
}

.ai-services__content {
    max-width: 700px;
}

.ai-services__desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.ai-services__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.ai-service-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.ai-service-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.ai-service-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
}

.ai-service-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
}

.ai-service-card__content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.ai-service-card__content p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* AI Services Visual */
.ai-services__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-services__image {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.ai-visual-abstract {
    width: 100%;
}

.ai-visual-abstract svg {
    width: 100%;
    height: auto;
}

/* Neural network animations */
.ai-nodes circle {
    animation: nodeGlow 3s ease-in-out infinite;
}

.ai-nodes circle:nth-child(odd) {
    animation-delay: 0s;
}

.ai-nodes circle:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes nodeGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Responsive AI Services */
@media (max-width: 1024px) {
    .ai-services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .ai-services__content {
        max-width: 100%;
        text-align: center;
    }

    .ai-services__cards {
        max-width: 600px;
        margin: 0 auto;
    }

    .ai-service-card {
        text-align: left;
    }

    .ai-services__visual {
        order: -1;
    }

    .ai-services__image {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ai-services__cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .ai-services__image {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .ai-services {
        padding: var(--space-xl) 0;
    }

    .ai-service-card {
        padding: var(--space-md);
    }

    .ai-service-card__icon {
        width: 40px;
        height: 40px;
    }

    .ai-service-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .ai-services__image {
        max-width: 240px;
    }
}

/* ================================
   Services Section
   ================================ */
.services {
    padding: var(--space-2xl) 0;
    background: var(--gray-100);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card--featured {
    grid-row: span 2;
    background: var(--gradient-dark);
    color: var(--white);
    border: none;
}

.service-card--featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.service-card--featured .service-card__icon {
    background: rgba(255, 255, 255, 0.1);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.service-card--featured .service-card__icon svg {
    stroke: var(--primary-light);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.service-card--featured .service-card__title {
    color: var(--white);
}

.service-card__description {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.service-card--featured .service-card__description {
    color: rgba(255, 255, 255, 0.7);
}

.service-card__features {
    margin-bottom: var(--space-lg);
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.service-card__features li::before {
    content: '✓';
    color: var(--accent-light);
    font-weight: 700;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition-fast);
}

.service-card--featured .service-card__link {
    color: var(--primary-light);
}

.service-card__link:hover {
    gap: var(--space-md);
}

/* ================================
   Why Us Section
   ================================ */
.why-us {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.why-us__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.why-us__description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.pillars {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.pillar {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.pillar:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.pillar__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
}

.pillar__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.pillar__content h4 {
    margin-bottom: var(--space-xs);
}

.pillar__content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Achievement Cards */
.achievement-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.achievement-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.achievement-card__icon {
    font-size: 2rem;
}

.achievement-card__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.achievement-card__label {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* ================================
   Industries Section
   ================================ */
.industries {
    padding: var(--space-2xl) 0;
    background: var(--gray-100);
}

.industries__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
}

.industry-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.industry-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.industry-card__icon img {
    width: 64px;
    height: 64px;
}

.industry-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.industry-card p {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* ================================
   Technologies Section
   ================================ */
.technologies {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.tech-category__title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tech-pill {
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.tech-pill:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ================================
   Testimonials Section
   ================================ */
.testimonials {
    padding: var(--space-2xl) 0;
    background: var(--gray-100);
}

.testimonials__slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.testimonial-card__rating {
    color: #FFB800;
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.testimonial-card__quote {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ================================
   CTA Section
   ================================ */
.cta {
    padding: var(--space-2xl) 0;
    background: var(--gradient-dark);
}

.cta__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
}

.cta__form-wrapper {
    margin-bottom: var(--space-2xl);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group:last-child {
    margin-bottom: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: var(--dark);
    color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

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

.cta__contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-light);
}

/* ================================
   FAQ Section
   ================================ */
/* ================================
   FAQ — numbered, card-style accordion
   ================================ */
.faq-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: "";
    position: absolute;
    top: 5%;
    left: -150px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(228, 57, 70, 0.07), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.faq-section::after {
    content: "";
    position: absolute;
    bottom: 5%;
    right: -150px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.07), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq__grid {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    counter-reset: faq-counter;
    position: relative;
    z-index: 1;
}

.faq__item {
    counter-increment: faq-counter;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq__item:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 57, 70, 0.3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

/* Open state — branded highlight */
.faq__item:has(.faq__question[aria-expanded="true"]) {
    border-color: rgba(228, 57, 70, 0.45);
    box-shadow: 0 14px 32px rgba(228, 57, 70, 0.1);
    background: linear-gradient(135deg, #fff 0%, #fefafa 100%);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    transition: color 0.2s ease;
    position: relative;
}

/* Auto-numbered red gradient badge — generated via CSS counter */
.faq__question::before {
    content: counter(faq-counter, decimal-leading-zero);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #b91220 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(228, 57, 70, 0.3);
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq__item:hover .faq__question::before {
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 6px 14px rgba(228, 57, 70, 0.4);
}

.faq__question[aria-expanded="true"]::before {
    transform: scale(1.08);
    box-shadow: 0 8px 18px rgba(228, 57, 70, 0.45);
}

/* Question text takes the rest of the row, before the chevron */
.faq__question > span {
    flex: 1;
}

.faq__question:hover {
    color: var(--primary);
}

.faq__question[aria-expanded="true"] {
    color: var(--primary);
}

/* Chevron — animated open/close */
.faq__icon {
    flex-shrink: 0;
    color: #9ca3af;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    background: #f3f4f6;
    transition: transform 0.3s ease, color 0.2s ease, background 0.2s ease;
}

.faq__question:hover .faq__icon {
    color: var(--primary);
    background: rgba(228, 57, 70, 0.1);
}

.faq__question[aria-expanded="true"] .faq__icon {
    transform: rotate(180deg);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #b91220);
}

/* Answer — collapsed by default, expands when --open */
.faq__answer {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.25s ease, visibility 0s linear 0.4s;
}

.faq__answer.faq__answer--open {
    max-height: 600px;
    visibility: visible;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.25s ease 0.05s, visibility 0s linear 0s;
}

.faq__answer > p {
    margin: 0;
    padding: 1.25rem 1.6rem 1.5rem calc(1.6rem + 40px + 1.25rem);  /* align under question text, not under number */
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.8;
    border-top: 1px dashed #e5e7eb;
}

.faq__answer > p strong {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 768px) {
    .faq__question {
        padding: 1.1rem 1.1rem;
        gap: 0.85rem;
        font-size: 0.97rem;
    }
    .faq__question::before {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }
    .faq__icon {
        width: 30px;
        height: 30px;
        padding: 6px;
    }
    .faq__answer > p {
        padding: 1rem 1.1rem 1.25rem calc(1.1rem + 32px + 0.85rem);
    }
}

/* ================================
   Footer
   ================================ */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--dark);
    color: var(--white);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer__logo .logo-img {
    height: 44px;
    width: auto;
}

.footer__logo .logo-text {
    color: var(--white);
}

.footer__logo .logo-sub {
    color: var(--gray-400);
}

.footer__tagline {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

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

.footer__links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer__certifications {
    display: flex;
    gap: var(--space-lg);
}

.footer__certifications span {
    font-size: 0.8125rem;
    color: var(--gray-500);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1200px) {
    .hero__container {
        gap: var(--space-2xl);
    }

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

    .service-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 0;
        margin-bottom: 0;
    }

    .hero__description {
        margin: 0 auto var(--space-xl);
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__trust {
        align-items: center;
    }

    .hero__floating--1 {
        right: 5%;
        top: 5%;
    }

    .hero__floating--2 {
        left: 5%;
        bottom: 10%;
    }

    .why-us__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .why-us__content {
        text-align: center;
    }

    .pillar {
        text-align: left;
    }

    .achievement-cards {
        max-width: 500px;
        margin: 0 auto;
    }

    .industries__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 1024px) {
    /* Hide megamenu on tablets and below, use mobile menu */
    .megamenu {
        display: none;
    }

    .megamenu-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        height: 100dvh;
        padding: 5rem var(--space-lg) var(--space-xl);
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        transition: right var(--transition-base);
        box-shadow: var(--shadow-2xl);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav__menu.active {
        right: 0;
    }

    /* Mobile menu overlay */
    .nav__menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        
        z-index: -1;
    }

    .nav__item {
        width: 100%;
    }

    .nav__item.has-megamenu {
        position: relative;
    }

    .nav__link {
        color: var(--dark);
        font-size: 1.125rem;
        padding: var(--space-md) 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid var(--gray-200);
    }

    /* Mobile dropdown styles */
    .nav__item.dropdown .dropdown-menu,
    .nav__item.has-megamenu .megamenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        box-shadow: none;
        background: #F6F6F6;
        border-radius: var(--radius-md);
        margin-top: 0;
        transition: max-height var(--transition-base), padding var(--transition-base), margin var(--transition-base);
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-top: none;
        padding-top: 0;
    }

    /* Neutralize desktop megamenu inner chrome on mobile */
    .nav__item.has-megamenu .megamenu__inner {
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .nav__item.has-megamenu .megamenu__columns {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: var(--space-sm);
        width: 100%;
    }

    .nav__item.has-megamenu .megamenu__list {
        width: 100%;
    }

    .nav__item.has-megamenu .megamenu__list li a {
        white-space: normal;
        word-break: break-word;
        width: 100%;
    }

    .nav__item.has-megamenu .megamenu__footer {
        display: none;
    }

    .nav__item.dropdown.active .dropdown-menu,
    .nav__item.has-megamenu.active .megamenu {
        max-height: 1200px;
        padding: var(--space-sm);
        margin-top: var(--space-sm);
        overflow: visible;
    }

    .nav__item.dropdown.active .dropdown-icon,
    .nav__item.has-megamenu.active .dropdown-icon {
        transform: rotate(180deg);
    }

    /* Mobile megamenu container */
    .megamenu__container {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-sm);
    }

    .megamenu__column {
        padding: 0;
    }

    .megamenu__title {
        font-size: 0.7rem;
        margin-bottom: var(--space-sm);
        padding-bottom: var(--space-xs);
    }

    .megamenu__list li a {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .megamenu__icon {
        width: 24px;
        height: 24px;
        font-size: 0.875rem;
    }

    .megamenu__cta {
        display: none;
    }

    .dropdown-menu li {
        margin-bottom: 0;
    }

    .dropdown-menu a {
        padding: var(--space-md);
    }

    .nav__toggle {
        display: flex;
        z-index: 1002;
    }

    /* Hamburger animation */
    .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(5px, -5px);
    }

    .header .btn--primary {
        display: none;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat {
        padding: var(--space-md);
    }

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

    .service-card--featured {
        grid-column: span 1;
    }

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

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__brand {
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__links {
        text-align: center;
    }

    .footer__links ul {
        align-items: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer__certifications {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    .hero {
        padding: 5rem 0 2rem;
        min-height: auto;
    }

    .hero__badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .hero__description {
        font-size: 1rem;
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__floating {
        display: none;
    }

    .hero__card--main {
        max-width: 100%;
    }

    .hero__scroll {
        display: none;
    }

    .stats {
        padding: var(--space-xl) 0;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .stat {
        padding: var(--space-sm);
    }

    .stat__number {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .stat__label {
        font-size: 0.8125rem;
    }

    .section__header {
        margin-bottom: var(--space-xl);
    }

    .services {
        padding: var(--space-2xl) 0;
    }

    .service-card {
        padding: var(--space-lg);
    }

    .industries {
        padding: var(--space-2xl) 0;
    }

    .industries__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .industry-card {
        padding: var(--space-lg);
    }

    .industry-card__icon {
        font-size: 2rem;
    }

    .technologies {
        padding: var(--space-2xl) 0;
    }

    .tech-categories {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .testimonials {
        padding: var(--space-2xl) 0;
    }

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

    .testimonial-card {
        padding: var(--space-lg);
    }

    .cta {
        padding: var(--space-2xl) 0;
    }

    .cta__contact-info {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }

    .contact-form {
        padding: var(--space-lg);
    }

    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }

    .footer__certifications {
        gap: var(--space-sm);
    }

    .footer__certifications span {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero__title {
        font-size: 1.5rem;
    }

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

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

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

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

/* ─── Industry Page: Use Cases / Agencies / Clients Sections ─── */
.use-cases-section {
    padding: var(--space-4xl, 5rem) 0;
    background: var(--gray-50, #f9fafb);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card {
    background: #ffffff;
    border: 1px solid rgba(67, 97, 238, 0.1);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.use-case-card:hover {
    box-shadow: 0 8px 32px rgba(67, 97, 238, 0.12);
    transform: translateY(-3px);
    border-color: rgba(67, 97, 238, 0.25);
}

.use-case-card__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08) 0%, rgba(67, 97, 238, 0.14) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.use-case-card__icon svg {
    width: 26px;
    height: 26px;
    color: #4361ee;
}

.use-case-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0 0 0.6rem;
    line-height: 1.35;
}

.use-case-card p {
    font-size: 0.875rem;
    color: var(--gray-600, #4b5563);
    line-height: 1.65;
    margin: 0;
}

/* ─── Industry Page: CTA Section ─── */
.cta-section {
    padding: var(--space-4xl, 5rem) 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(67, 97, 238, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0 0 2.25rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive: use-case-grid */
@media (max-width: 1100px) {
    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* === Internal-link helpers (homepage cross-links) === */
.testimonial-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s, transform 0.2s;
}
.testimonial-card__link:hover {
    color: var(--primary-dark, #b91220);
    transform: translateX(2px);
}

.testimonials__more,
.faq__more {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}
.faq__more p { margin: 0; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}
.link-arrow:hover {
    color: var(--primary-dark, #b91220);
    gap: 0.55rem;
}

/* Make industry-card behave correctly when wrapped in <a> */
a.industry-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
