/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Color Palette - Lively Light Theme */
    --clr-bg-base: #F2F2F2;
    --clr-bg-surface: #F8FBFF;
    --clr-bg-surface-hover: #EBF4FF;

    --clr-text-main: #1E293B;
    --clr-text-muted: #475569;

    /* Colors requested by user */
    --clr-accent-primary: #2E72DF;
    --clr-accent-secondary: #38E0FF;

    /* Brand Gradient */
    --brand-gradient: linear-gradient(135deg, #0C67AA, #55CBFF);

    --clr-border: rgba(46, 114, 223, 0.2);
    --clr-ai-glow: rgba(56, 224, 255, 0.15);
    --clr-section-tint: #F2F8FF;
    /* Light blue tint for alternate sections */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* System */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.23, 1, 0.32, 1);

    --container-max-width: 1200px;
    --section-spacing: 120px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg-base);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base Light Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 150px rgba(56, 224, 255, 0.12);
    /* Enhanced electric blue inner glow */
    pointer-events: none;
    z-index: 10;
}

/* Custom Selection */
::selection {
    background-color: var(--clr-accent-secondary);
    color: #FFFFFF;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--brand-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.section-lead {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Interactive Background & Spotlight
   ========================================================================== */
#ai-pulse-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    /* Behind everything */
    pointer-events: none;
    opacity: 0.5;
}

#ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
        linear-gradient(rgba(46, 114, 223, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 114, 223, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.8;
    mask-image: linear-gradient(to bottom, var(--clr-bg-base) 10%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, var(--clr-bg-base) 10%, transparent 90%);
}

#mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            var(--clr-ai-glow),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.mouse-active #mouse-spotlight {
    opacity: 1;
}

/* Parallax Shapes */
.parallax-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -4;
    pointer-events: none;
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--clr-accent-primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--clr-accent-secondary);
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: #55CBFF;
    top: 40%;
    right: 20%;
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    backdrop-filter: blur(10px);
}

.primary-btn {
    background: var(--brand-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(46, 114, 223, 0.3), 0 0 0 2px rgba(56, 224, 255, 0.1);
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(56, 224, 255, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
}

.secondary-btn:hover {
    background-color: var(--clr-bg-surface);
    border-color: var(--clr-text-muted);
}

.hover-link {
    position: relative;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
}

.hover-link:hover {
    color: var(--clr-text-main);
}

.hover-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--clr-accent-primary);
    transition: var(--transition-smooth);
}

.hover-link:hover::after {
    width: 100%;
}

/* Interactive Cards - The Antigravity Effect Focus */
.interactive-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(56, 224, 255, 0.2),
            transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.interactive-card:hover::before {
    opacity: 1;
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--clr-accent-secondary);
    box-shadow: 0 20px 40px rgba(46, 114, 223, 0.12), 0 0 20px rgba(56, 224, 255, 0.1);
}

/*
.interactive-card:hover::before {
    opacity: 1;
}
*/

.interactive-card>* {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: transform 0.4s var(--transition-smooth), background-color var(--transition-fast), padding var(--transition-fast), border-color var(--transition-fast), backdrop-filter var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(46, 114, 223, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--clr-accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 180px;
    margin-top: -20px;
    /* Adjust for large logo visual balance */
    /* Offset for nav */
}

.hero-content {
    max-width: 800px;
    margin: 0;
    /* Left aligned */
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 500;
    /* Sophisticated light wait */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--clr-accent-primary) 0%, #1E293B 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s linear infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 1px solid var(--clr-text-muted);
    border-radius: 12px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--clr-text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: var(--section-spacing) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
}

.about-text p:first-of-type {
    color: var(--clr-text-main);
    font-size: 1.25rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: 0 10px 30px rgba(46, 114, 223, 0.05);
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-accent-secondary);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--clr-accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */
.solutions-section {
    padding: var(--section-spacing) 0;
    background-color: var(--clr-section-tint);
    /* Light blue tint to reduce clinical feel */
    position: relative;
}

/* Top soft fade */
.solutions-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--clr-bg-surface));
    pointer-events: none;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    display: flex;
    flex-direction: column;
}

.solution-card .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 224, 255, 0.1);
    /* Electric blue brand tint */
    border: 1px solid rgba(56, 224, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--clr-accent-primary);
}

/* SVG sizes */
.solution-card .card-icon svg {
    width: 28px;
    height: 28px;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--clr-text-muted);
    flex-grow: 1;
}

/* ==========================================================================
   Leadership Section
   ========================================================================== */
.leadership-section {
    padding: var(--section-spacing) 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.leader-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.leader-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--clr-bg-surface-hover);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.leader-card:hover .leader-photo img {
    transform: scale(1.1);
}

.leader-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: var(--clr-text-main);
}

.leader-card .role {
    display: block;
    font-size: 0.9rem;
    color: var(--clr-accent-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leader-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 4rem 0 8rem;
}

.cta-container {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(145deg, #FFFFFF, var(--clr-section-tint));
    border: 1px solid var(--clr-border);
    box-shadow: var(--box-shadow-soft);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-group input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--clr-border);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-pill);
    color: var(--clr-text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.input-group input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
    background: var(--clr-bg-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger initial hero animations */
.hero-content .delay-1 {
    transition-delay: 0.1s;
}

.hero-content .delay-2 {
    transition-delay: 0.2s;
}

.hero-content .delay-3 {
    transition-delay: 0.3s;
}

.hero-content .delay-4 {
    transition-delay: 0.6s;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {

    .about-grid,
    .cards-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu needed for complete app */
    }

    .section-spacing {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}