/* assets/css/hero.css */

.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    margin-top: 0;
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: #020617; /* Fallback */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;

    opacity: 1; /* FIX */
}


/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 20% 30%,
        rgba(45, 63, 148, 0.2) 0%,
        rgba(36, 132, 198, 0.15) 100%
    );
    z-index: 2;
    pointer-events: none;
}


/* CTA Button */
.cta-magnetic {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3b7a;
    padding: 16px 44px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 15px 30px -5px rgba(0, 20, 50, 0.4);
    transition: box-shadow 0.3s, transform 0.15s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
    position: relative;
    will-change: transform;
}

.cta-magnetic i {
    margin-left: 10px;
    transition: transform 0.2s;
}

.cta-magnetic:hover {
    background: white;
    box-shadow: 0 20px 35px -5px #0f2c4e, 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-magnetic:hover i {
    transform: translateX(5px);
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: white;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.video-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
