/* Hero Video Section Styles */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 0;
    margin-top: -85px; /* Negative margin to pull up and eliminate gap */
    padding-top: 85px; /* Add padding to account for header height */
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    padding: 2rem 1rem;
    z-index: 3;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 3.5rem;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-video-section .hero-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.hero-video-section .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Scoped button styles for hero section only */
.hero-video-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
}

.hero-video-section .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    border-color: #5a6fd8;
    color: #ffffff;
}

.hero-video-section .btn-outline-light {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.hero-video-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    color: #667eea;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Extra small devices (phones, 320px - 480px) */
@media only screen and (min-width: 320px) and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-video-section .hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .hero-scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-arrow {
        font-size: 1.25rem;
    }
}

/* Small devices (large phones, 481px - 767px) */
@media only screen and (min-width: 481px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.25rem;
    }
    
    .hero-buttons {
        gap: 0.875rem;
    }
    
    .hero-video-section .hero-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
}

/* Medium devices (tablets, 768px - 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .hero-video-section .hero-btn {
        padding: 0.875rem 2rem;
        font-size: 1.05rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

/* Large devices (laptops/desktops, 1024px - 1199px) */
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
    .hero-title {
        font-size: 3.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.225rem;
    }
    
    .hero-content {
        padding: 2.5rem 2rem;
    }
}

/* Extra large devices (large desktops, 1200px - 1599px) */
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content {
        padding: 3rem 2.5rem;
    }
}

/* Extra extra large devices (larger desktops, 1600px and up) */
@media only screen and (min-width: 1600px) {
    .hero-title {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        gap: 1.5rem;
    }
    
    .hero-video-section .hero-btn {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
    
    .hero-content {
        padding: 4rem 3rem;
    }
    
    .hero-scroll-indicator {
        bottom: 3rem;
    }
    
    .scroll-arrow {
        font-size: 1.75rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .hero-video-section {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .hero-video-section .hero-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-video {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-video-section .hero-btn,
    .scroll-arrow {
        transition: none;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
    }
}
