/* Extra small phones */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { padding: 88px 0 36px; }
    .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
    .btn { padding: 0.75rem 1.25rem; }
    .prompt-card { font-size: 0.95rem; }
    .prompt-line .label { font-size: 0.72rem; }
    .chip { font-size: 0.8rem; padding: 6px 10px; }
    .services-carousel { padding: 0 28px; }
    .carousel-btn { width: 34px; height: 34px; font-size: 18px; }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fresh GenZ Palette: White, Green with a pinch of Blue */
    --royal-purple: #10b981;            /* emerald as primary */
    --royal-purple-dark: #059669;       /* darker emerald */
    --royal-purple-light: #34d399;      /* light emerald */
    --royal-blue: #0ea5e9;              /* sky blue accent */
    --royal-blue-dark: #0369a1;
    --royal-blue-light: #38bdf8;
    --royal-gold: #10b981;              /* repurposed to green for badges */
    --royal-gold-dark: #059669;
    --royal-gold-light: #34d399;
    --royal-navy: #0f172a;
    --surface: #ffffff;
    --surface-muted: #fafbfc;
    --border-soft: rgba(15, 23, 42, 0.08);
    
    /* Neutrals */
    --white: #ffffff;
    --white-off: #FAFBFC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Royal Gradients */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-gold: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-hero: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    --gradient-card: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(14, 165, 233, 0.06) 100%);
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-royal: 0 10px 40px -10px rgba(107, 70, 193, 0.4);
    --shadow-gold: 0 10px 40px -10px rgba(245, 158, 11, 0.3);
    
    /* Text Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-500);
}

/* Fluid, responsive typography */
html {
    font-size: 16px;
}

@media (max-width: 992px) {
    html { font-size: 15px; }
}

@media (max-width: 640px) {
    html { font-size: 14px; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--surface);
}

.img, img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-100);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    height: 84px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a:hover {
    color: var(--royal-purple);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.25s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-royal);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--white-off) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.12) 0%, transparent 50%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(16,185,129,.22), rgba(14,165,233,.18), transparent 70%);
    filter: blur(40px);
    opacity: .6;
    animation: drift 16s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes drift {
    0%   { transform: translate(-45%, -50%) scale(1); }
    100% { transform: translate(-55%, -45%) scale(1.08); }
}

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

.hero-centered .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

.hero-centered .hero-visual {
    display: none;
}

.hero-centered .hero-cta {
    justify-content: center;
}

.hero-centered .hero-stats {
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-card);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--royal-purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(1.875rem, 1.2rem + 2.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-royal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}
.btn:focus-visible, .service-link:focus-visible, .footer-cta:focus-visible, .nav-menu a:focus-visible, .btn-nav:focus-visible {
    outline: 3px solid rgba(14,165,233,.35);
    outline-offset: 2px;
    border-radius: 10px;
}

.btn-secondary {
    background: white;
    color: var(--royal-purple);
    border: 2px solid var(--royal-purple);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--royal-purple);
    color: white;
    box-shadow: var(--shadow-royal);
}

.btn-outline {
    background: transparent;
    color: var(--royal-purple);
    border: 2px solid var(--royal-purple);
}

.btn-outline:hover {
    background: var(--royal-purple);
    color: white;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

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

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 420px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--royal-purple);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--royal-blue);
    top: 50%;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--gray-100);
    backdrop-filter: blur(10px);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

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

.card-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* New hero GenAI showcase */
.hero-showcase {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    align-items: start;
    justify-items: end;
    height: 100%;
}

.prompt-card {
    width: 520px;
    max-width: 100%;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15), 0 10px 25px rgba(14, 165, 233, 0.12);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.prompt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 16px;
    background: conic-gradient(from 0deg, #10b981, #0ea5e9, #10b981);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: spin 14s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.prompt-card::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(105deg, transparent 0, rgba(255,255,255,.35) 40%, rgba(255,255,255,.0) 70%);
    transform: skewX(-10deg);
    filter: blur(6px);
    opacity: 0;
    animation: sheen 5.5s ease-in-out infinite 1s;
    pointer-events: none;
}

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes sheen {
    0%, 60% { transform: translateX(0) skewX(-10deg); opacity: 0; }
    70% { opacity: .85; }
    100% { transform: translateX(240%) skewX(-10deg); opacity: 0; }
}

.prompt-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--gradient-primary);
    color: #fff;
}
.prompt-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
}
.prompt-title {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.95;
}
.prompt-body {
    padding: 16px 18px;
    display: grid;
    gap: 10px;
}
.prompt-line {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 10px;
}
.prompt-line .label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.prompt-line .text {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.prompt-line .text.success {
    color: var(--royal-purple-dark);
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 520px;
}
.chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--gradient-card);
    color: var(--royal-purple-dark);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.12);
    transform: translateZ(0);
    transition: transform .2s ease, box-shadow .2s ease;
}
.chip.glow {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25), 0 0 0 4px rgba(14,165,233,.08);
}
.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(16,185,129,.18);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-header::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 0.75rem auto 0;
    background: var(--gradient-primary);
    border-radius: 999px;
    opacity: 0.8;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-card);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--royal-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: block;
}

.service-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card.featured {
    border: 2px solid var(--royal-purple);
    box-shadow: var(--shadow-royal);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-gold);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-title {
    font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--royal-purple);
    font-weight: 700;
}

.service-link {
    color: var(--royal-purple);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

/* Services Carousel */
.services-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 56px; /* space for arrows so they don't overlap the card */
    -webkit-mask-image: linear-gradient(#000 0 0); /* ensure clipping on Safari/iOS */
            mask-image: linear-gradient(#000 0 0);
}

.services-track {
    display: flex;
    gap: 0; /* no gaps to avoid peeking */
    justify-content: flex-start;
    transition: transform 0.5s ease;
    will-change: transform;
    overflow: hidden; /* hide any sub-pixel overflow */
}

.services-carousel .service-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    transform-origin: center;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.services-carousel .service-card.active {
    box-shadow: var(--shadow-xl);
    border-color: var(--royal-purple);
}

/* Next‑gen corporate styling for Services carousel cards */
.services-carousel .service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}
.services-carousel .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.10);
    border-color: transparent;
}
.services-carousel .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 100% 0%, rgba(2, 6, 23, 0.06) 0%, rgba(2, 6, 23, 0) 50%),
                linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.services-carousel .service-card:hover::after {
    opacity: 1;
}
.services-carousel .service-card .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15), 0 6px 16px rgba(14, 165, 233, 0.12);
    font-size: 1.5rem;
    color: var(--royal-purple-dark);
    margin-bottom: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.services-carousel .service-card:hover .service-icon {
    transform: translateY(-2px);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25), 0 8px 18px rgba(14, 165, 233, 0.18);
}
.services-carousel .service-card .service-title {
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
.services-carousel .service-card .service-description {
    color: var(--text-secondary);
    transition: color 0.25s ease;
}
.services-carousel .service-card .service-features {
    margin-top: 0.5rem;
}
.services-carousel .service-card .service-features li {
    padding-left: 2.25rem;
    min-height: 1.75rem;
}
.services-carousel .service-card .service-features li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.services-carousel .service-card:hover .service-features li::before {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28);
}
.services-carousel .service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--royal-purple);
    position: relative;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.services-carousel .service-card .service-link::after {
    content: '→';
    transition: transform 0.25s ease;
}
.services-carousel .service-card .service-link:hover::after {
    transform: translateX(4px);
}
.services-carousel .service-card:hover .service-link {
    color: var(--royal-purple-dark);
    opacity: 0.95;
}
.services-carousel .service-card.featured {
    border: 1px solid rgba(16,185,129,.35);
    box-shadow: 0 16px 44px rgba(16,185,129,.15), 0 10px 28px rgba(14,165,233,.12);
}
.services-carousel .service-card .featured-badge {
    background: linear-gradient(135deg, rgba(16,185,129,.95), rgba(14,165,233,.95));
    border: none;
    box-shadow: 0 8px 18px rgba(16,185,129,.25);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-royal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.carousel-btn:disabled,
.carousel-btn[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: var(--shadow-md);
    transform: translateY(-50%);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

@media (max-width: 640px) {
    .carousel-btn.prev { left: 0.25rem; }
    .carousel-btn.next { right: 0.25rem; }
}

/* Solutions Section */
.solutions {
    background: var(--gray-50);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.solution-card:hover::before {
    transform: scaleX(1);
}

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

.solution-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: rgba(107, 70, 193, 0.1);
    line-height: 1;
    margin-bottom: 1rem;
}

.solution-title {
    font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.solution-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.solution-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: 12px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}

.testimonial-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.testimonial-logo--lg {
    height: 60px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--royal-purple);
}

.testimonial-rating {
    color: var(--royal-gold);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-style: italic;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Clients Marquee */
.clients-marquee {
    background: var(--gray-50);
    padding: 48px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.marquee-wrapper {
    position: relative;
    overflow: hidden;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: marquee 36s linear infinite;
    animation-play-state: running;
}
.client-logo {
    height: 74px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    filter: none;
    transition: opacity .25s ease, transform .25s ease;
}
.client-logo:hover { opacity: 1; transform: translateY(-2px); }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .clients-marquee { padding: 32px 0; }
    .marquee-track { gap: 36px; animation-duration: 44s; }
    .client-logo { height: 56px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .feature-card,
    .solution-card,
    .testimonial-card,
    .service-card,
    .about-feature {
        transition: none !important;
    }
}

/* Hero embedded clients row (mobile only) */
.hero-clients { display: none; }
@media (max-width: 640px) {
    .hero-clients { display: block; margin-top: 16px; }
    .hero-clients-title {
        text-align: center;
        display: inline-block;
        padding: 0.35rem 0.9rem;
        background: var(--gradient-card);
        border: 1px solid rgba(107, 70, 193, 0.2);
        border-radius: 999px;
        font-size: 0.9rem;
        color: var(--royal-purple);
        font-weight: 600;
        margin: 0 auto 8px;
    }
    .hero-clients .marquee-wrapper {
        overflow: hidden;
        width: 100vw;                 /* lock to phone viewport width */
        margin-left: calc(50% - 50vw);/* align to edges for full-bleed clarity */
    }
    .hero-clients .marquee-wrapper.compact { padding: 6px 0; }
    .hero-clients .client-logo { height: 42px; }
    /* Hide the big marquee section on phones since it's now inside hero */
    .clients-marquee { display: none; }
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 56px;
}
.testimonials-track {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    transition: transform 0.5s ease;
    will-change: transform;
}
.testimonials-carousel .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
}
.carousel-btn.t-prev { left: 12px; }
.carousel-btn.t-next { right: 12px; }

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-benefits {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-benefit .benefit-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Contact Section */
.contact {
    background: var(--white);
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(16,185,129,.4);
}
.detail-value a:hover {
    color: var(--royal-purple-dark);
    border-bottom-color: var(--royal-purple-dark);
}

/* Form Styles */
.contact-form {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.google-form-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}
.google-form-embed iframe {
    display: block;
    width: 100%;
    height: 1100px;
    border: 0;
}
@media (max-width: 1024px) {
    .google-form-embed iframe { height: 1150px; }
}
@media (max-width: 640px) {
    .google-form-embed iframe { height: 1250px; }
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--royal-purple);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

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

.form-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 50px 0 25px;
    border-top: 1px solid rgba(255,255,255,.06);
}

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

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--royal-purple-light);
}

.social-list .social-link-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.footer-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Center single-line copyright text */
.footer-bottom p {
    width: 100%;
    text-align: center;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--royal-purple-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-2xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--gray-100);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-royal);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 16px; }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 320px;
        margin-top: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
    }

    .hero-stats {
        justify-content: center;
        margin-top: 1.25rem;
    }

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

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

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

    section { padding: 64px 0; }

    .service-card,
    .solution-card,
    .testimonial-card,
    .contact-form { padding: 2rem; }

    .logo-img { height: 64px; }

    .services-carousel { padding: 0 44px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 24px; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .hero-title {
        font-size: clamp(1.5rem, 1.3rem + 1.5vw, 1.875rem);
    }

    .section-title {
        font-size: clamp(1.25rem, 1.1rem + 1.2vw, 2rem);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
        justify-items: center;
    }
    .stat-item { text-align: center; }

    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
    }

    section { padding: 72px 0; }

    .service-card,
    .solution-card,
    .testimonial-card,
    .contact-form { padding: 1.75rem; }

    .logo-img { height: 56px; }

    .services-carousel { padding: 0 36px; }
    .carousel-btn { width: 36px; height: 36px; font-size: 20px; }

    /* Hero tweaks for phones: remove large visuals and tighten spacing */
    .hero { padding: 96px 0 40px; min-height: 100vh; display: flex; align-items: center; }
    .hero-visual { height: auto; width: 100%; }
    .hero-showcase { justify-items: stretch; width: 100%; }
    .prompt-card { width: 100%; max-width: 100%; }
    .chips { justify-content: flex-start; gap: 12px; }
    .hero-background { opacity: 0.7; }
    .hero-description { margin-bottom: 1.25rem; }
    .hero-cta { margin-bottom: 2rem; }
    .hero-stats { gap: 1.75rem; align-items: flex-start; }
    .stat-number { font-size: 1.75rem; }
    .stat-label { font-size: 0.8rem; }
    .section-header { margin-bottom: 3.5rem; }
}

/* Extra small phones */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 92px 0 44px; min-height: 100vh; display: flex; align-items: center; }
    .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
    .btn { padding: 0.75rem 1.25rem; }
    .prompt-card { font-size: 0.95rem; width: 100%; max-width: 100%; }
    .prompt-line .label { font-size: 0.72rem; }
    .chip { font-size: 0.8rem; padding: 6px 10px; }
    section { padding: 68px 0; }
    .service-card,
    .solution-card,
    .testimonial-card,
    .contact-form { padding: 1.7rem; }
    .services-carousel { padding: 0 28px; }
    .carousel-btn { width: 34px; height: 34px; font-size: 18px; }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Error States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
