// Hero section styles for cecli website

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(20, 176, 20, 0.1) 0%, rgba(20, 176, 20, 0.05) 25%, rgba(76, 110, 245, 0.2) 50%, rgba(76, 110, 245, 0.3) 75%, rgba(76, 110, 245, 0.4) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234c6ef5' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(76, 110, 245, 0.2) 0%, rgba(20, 176, 20, 0.05) 50%, rgba(76, 110, 245, 0) 80%);
    opacity: 0.7;
    z-index: 0;
    transform: rotate(30deg);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 40px;
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 90%;
    padding-left: 0;
}

.hero-video {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--heading-spacing);
    color: var(--dark); // Light text on dark background
    text-align: left;
    line-height: var(--heading-line-height);
    font-weight: 800;
    letter-spacing: -0.75px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 90%;
    margin: 0 0 var(--paragraph-spacing);
    color: #adb5bd; // Lighter gray for better contrast on dark background
    line-height: var(--body-line-height);
    font-weight: 400;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 0;
}

.btn-primary {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.video-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 0;
    // Calculate exact padding-bottom based on aspect ratio: (2160/2656) × 100%
    padding-bottom: calc(2160 / 2656 * 100%);
    background-color: rgba(30, 30, 30, 0.8); // Dark semi-transparent background for dark mode
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

// Responsive hero section adjustments
// Large tablets and small desktops (992px and below)
@media (max-width: 992px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
        max-width: 100%;
        padding-left: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-video {
        order: 2;
        margin: 0;
    }
    
    .stats-container {
        margin-top: 40px;
    }
    
    .hero h1 {
        font-size: 2.4rem;
        text-align: center;
        margin-bottom: var(--heading-spacing);
        width: 100%;
    }
    
    .hero p {
        font-size: 1.15rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--paragraph-spacing);
    }
    
    .buttons {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

// Mobile devices (576px and below)
@media (max-width: 576px) {
    .hero {
        padding: 30px 0;
    }
    
    .stats-container {
        margin-top: 25px;
    }
    
    .buttons {
        gap: 8px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}