/* ========== PREMIUM ENHANCEMENTS ========== */

/* --- Upgraded Palette Override --- */
:root {
    --surface: #F0F4FF;
    --surface-low: #E4EDFF;
    --surface-lowest: #FFFFFF;
    --inverse-surface: #0B1426;
    --primary: #2563EB;
    --primary-container: #3B82F6;
    --primary-hover: #1D4ED8;
    --primary-soft: #DBEAFE;
    --secondary: #06B6D4;
    --secondary-hover: #0891B2;
    --accent: #8B5CF6;
    --on-surface: #0F172A;
    --on-surface-variant: #475569;
    --outline-variant: #CBD5E1;
    --divider: #E2E8F0;
    --focus-ring: #60A5FA;
    --shadow-sm: 0 1px 3px rgba(37,99,235,0.04), 0 4px 16px rgba(37,99,235,0.04);
    --shadow-md: 0 4px 24px rgba(37,99,235,0.08);
    --shadow-lg: 0 12px 40px rgba(37,99,235,0.12);
    --shadow-hover: 0 16px 48px rgba(37,99,235,0.14);
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
}

/* --- Ambient Background --- */
body {
    background: linear-gradient(180deg, #F0F4FF 0%, #E8EEFF 50%, #F0F4FF 100%);
    background-attachment: fixed;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(37,99,235,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,92,246,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6,182,212,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* --- Glassmorphism Navbar --- */
.navbar {
    background: rgba(240,244,255,0.7) !important;
    backdrop-filter: blur(20px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
    border-bottom: 1px solid rgba(37,99,235,0.08) !important;
    box-shadow: 0 1px 12px rgba(37,99,235,0.05) !important;
}

/* --- Hero Glow --- */
.hero-section {
    position: relative;
    overflow: visible;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: heroGlow 6s ease-in-out infinite alternate;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: heroGlow 8s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
    0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* --- Gradient Text for Hero --- */
.hero-title {
    background: linear-gradient(135deg, #0F172A 0%, #1E40AF 50%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title em {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 60%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    opacity: 1 !important;
}

/* --- Eyebrow Badge Style --- */
.eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(139,92,246,0.08));
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(37,99,235,0.12);
    margin-bottom: 1.25rem;
}

/* --- Premium Buttons --- */
.btn-primary, .btn-primary-gradient {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
    background-size: 200% 100%;
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary::before, .btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before, .btn-primary-gradient:hover::before {
    left: 100%;
}
.btn-primary:hover, .btn-primary-gradient:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 28px rgba(37,99,235,0.35);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary-outline:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 28px rgba(37,99,235,0.25);
    transform: translateY(-2px);
}

/* --- Glass Cards --- */
.service-card, .value-card, .channel-partner-item, .client-logo-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(37,99,235,0.08);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover, .value-card:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(37,99,235,0.15);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}
.channel-partner-item:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(37,99,235,0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.client-logo-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* --- Value Icon Gradient --- */
.value-icon {
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(139,92,246,0.1));
    border: 1px solid rgba(37,99,235,0.1);
}
.vm-icon-wrap {
    background: linear-gradient(135deg, #2563EB, #7C3AED) !important;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

/* --- Section Titles Gradient --- */
.section-title {
    color: var(--on-surface);
}
.layer-base .section-title, .layer-low .section-title, .values-section .section-title, .about-detail-header .section-title, .clients-header .section-title {
    background: linear-gradient(135deg, #0F172A, #1E40AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Force white headings on dark sections --- */
.layer-inverse .section-title,
.layer-inverse .section-title.text-white,
.layer-inverse h2.section-title,
.layer-inverse h3.section-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    color: #ffffff !important;
}
.layer-inverse .product-title,
.layer-inverse h3.product-title {
    color: #ffffff !important;
}
.layer-inverse .hero-title,
.layer-inverse h1,
.layer-inverse h2,
.layer-inverse h3 {
    color: #ffffff !important;
}
.about-cta-section .section-title,
.about-cta-section .section-title.text-white {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    color: #ffffff !important;
}
.contact-section .section-title,
.contact-section .section-title.text-white {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    color: #ffffff !important;
}
.footer h5 {
    color: var(--secondary) !important;
}

/* --- Logo Strip Glass --- */
.logo-strip {
    background: rgba(255,255,255,0.5) !important;
    border-top: 1px solid rgba(37,99,235,0.06) !important;
    border-bottom: 1px solid rgba(37,99,235,0.06) !important;
    backdrop-filter: blur(8px);
}

/* --- Dark Section Polish --- */
.layer-inverse {
    background: linear-gradient(180deg, #0B1426 0%, #111D35 50%, #0B1426 100%) !important;
    position: relative;
}
.layer-inverse::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 50% 40% at 20% 20%, rgba(37,99,235,0.08) 0%, transparent 60%),
                radial-gradient(ellipse 40% 30% at 80% 70%, rgba(139,92,246,0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* --- Product Image Polish --- */
.product-image-cont {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-image-cont:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 8px 40px rgba(37,99,235,0.15);
}

/* --- Stat Card Polish --- */
.stat-card {
    background: linear-gradient(135deg, #0B1426, #1E293B);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.stat-number {
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Contact Form Glass --- */
.contact-form {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(12px);
}
.ghost-input {
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    transition: all 0.3s ease !important;
}
.ghost-input:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 2px 0 0 var(--secondary) !important;
}

/* --- Footer Polish --- */
.footer {
    background: linear-gradient(180deg, #0B1426, #060D19) !important;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), rgba(139,92,246,0.2), transparent);
}

/* --- WhatsApp Button Glow --- */
.whatsapp-btn {
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.whatsapp-btn:hover {
    box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.72s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* --- Hero Entrance --- */
.hero-section .eyebrow { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-section .hero-title { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.hero-section .hero-subtitle { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
.hero-section .hero-cta-group { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Counter Animation --- */
@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.stat-number.counted { animation: countPulse 0.5s ease; }

/* --- Floating Orbs (hero decoration) --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}
.hero-orb-1 {
    width: 12px; height: 12px;
    background: rgba(37,99,235,0.2);
    top: 30%; left: 8%;
    animation: float 5s ease-in-out infinite;
}
.hero-orb-2 {
    width: 8px; height: 8px;
    background: rgba(139,92,246,0.25);
    top: 20%; right: 12%;
    animation: float 7s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 16px; height: 16px;
    background: rgba(6,182,212,0.15);
    bottom: 25%; left: 15%;
    animation: float 6s ease-in-out infinite 1s;
}
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(8px); }
    50% { transform: translateY(-8px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(3px); }
}

/* --- Smooth Section Dividers --- */
.layer-low::before {
    content: '';
    display: block;
    height: 80px;
    margin-top: -80px;
    background: linear-gradient(180deg, var(--surface), var(--surface-low));
    pointer-events: none;
}

/* --- Nav link underline animation --- */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
    left: 50%;
}

/* --- Mission pillar hover glow --- */
.mission-pillar {
    transition: all 0.35s ease !important;
}
.mission-pillar:hover {
    background: rgba(37,99,235,0.08) !important;
    border-color: rgba(37,99,235,0.15) !important;
    transform: translateY(-2px);
}

/* --- VM Card border glow --- */
.vm-card {
    border: 1px solid rgba(37,99,235,0.1) !important;
    border-radius: var(--radius-lg) !important;
    transition: border-color 0.4s ease;
}
.vm-card:hover {
    border-color: rgba(37,99,235,0.2) !important;
}

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

/* --- Selection color --- */
::selection {
    background: rgba(37,99,235,0.15);
    color: #0F172A;
}

/* --- Focus visible global --- */
*:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== ULTRAWIDE MONITOR ENHANCEMENTS ========== */
@media (min-width: 1600px) {
    /* Widen the main containers */
    .container, .nav-container, .hero-container, .editorial-container, .contact-container, .footer-container {
        max-width: 1600px !important;
        padding: 0 4rem;
    }

    /* Scale up Hero Typography */
    .hero-title {
        font-size: 5.5rem !important;
        line-height: 1.1;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
        max-width: 900px;
        margin: 0 auto 3rem auto;
    }

    /* Scale up Section Titles */
    .section-title {
        font-size: 3.5rem !important;
    }

    /* Larger Buttons */
    .btn-primary, .btn-primary-gradient, .btn-secondary-outline {
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
    }

    /* Bigger Cards */
    .service-card, .value-card, .channel-partner-item {
        padding: 3rem 2.5rem !important;
    }

    /* Enlarge the dark section content */
    .product-info h3 {
        font-size: 2.5rem !important;
    }
    .product-info p {
        font-size: 1.25rem !important;
    }
}
