.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: visible;
    /* Ensure robot on right has room to extend */
    padding-right: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.sparkle-icon {
    color: var(--secondary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    color: var(--text-main);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-primary-btn {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.hero-secondary-btn {
    background: var(--bg-secondary);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-visual-content {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.spline-wrapper {
    position: relative;
    width: 110%;
    margin-left: -5%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.whiitebox {
    width: 500px;
    height: 50px;
    background-color: #fef8f9;
    position: relative;
    left: 350px;
    z-index: 10000000;
    bottom: 60px;
}

/* Tablet - adjust position for narrower robot container */
@media (max-width: 1200px) {
    .whiitebox {
        left: 250px;
        width: 400px;
    }
}

@media (max-width: 992px) {
    .whiitebox {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        background-color: white;
        bottom: 60px;
    }
}

/* Mobile */
/* @media (max-width: 768px) {
    .whiitebox {
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        bottom: 44px;
        height: 44px;
    }
} */

@media (max-width: 550px) {
    .hero-visual-content,.spline-wrapper{
        display: none;
    }
}

/* Robot container - no background, just sizing */
.robot-box {
    width: 100%;
    height: 580px;
    padding: 20px 40px;
    /* extra horizontal padding for arms */
    overflow: visible !important;
    position: relative;
}

/* Tint robot to brand dark blue color using CSS filters */
.spline-model {
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
    filter: hue-rotate(200deg) saturate(1.5) brightness(0.9);
}

.spline-model:active {
    cursor: grabbing;
}

/* Hide the "Built with Spline" watermark - covers bottom-left badge */
.robot-box::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 180px;
    height: 50px;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    pointer-events: none;
    border-radius: 10px;
}



/* Error fallback style */
.spline-error-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .robot-box {
        height: 480px;
    }
}

@media (max-width: 576px) {
    .robot-box {
        height: 380px;
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual-content {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }
}

/* Particle Animation Styles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(1px);
}