/* Hero Section Styles */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
    padding: 120px 20px;
    overflow: hidden;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    margin: 0 auto 2rem;
    opacity: 0.9;
    max-width: 900px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 45vh;
        padding: 80px 15px 60px;
        margin-bottom: 40px;
        background-attachment: scroll;
        background-position: center center;
        background-size: 100% auto;
    }

    /* Adjust background size based on device orientation */
    @media (orientation: portrait) {
        .hero-section {
            background-size: cover;
            background-position: center;
        }
    }

    @media (orientation: landscape) {
        .hero-section {
            min-height: 65vh;
            background-size: cover;
            background-position: center;
        }
    }

    .hero-content {
        padding: 0 10px;
        max-width: 100%;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
        font-size: clamp(1.125rem, 2vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 40vh;
        padding: 60px 15px 40px;
        background-size: cover;
    }
    
    .hero-content {
        padding: 0 8px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 1.8vw, 1.25rem);
        padding: 0 5px;
    }
}

/* Loading optimization */
.hero-section {
    background-image: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-size 0.3s ease;
}

.hero-section.loaded {
    opacity: 1;
}

/* Progressive image loading */
.hero-section[data-bg] {
    background-image: var(--bg-placeholder);
    transition: background-image 0.5s ease-in-out;
}

.hero-section[data-bg].loaded {
    background-image: var(--bg-image);
}

/* Ensure proper aspect ratio on different devices */
@supports (aspect-ratio: 16/9) {
    .hero-section {
        aspect-ratio: 16/9;
        min-height: auto;
        height: auto;
    }

    @media (max-width: 768px) {
        .hero-section {
            aspect-ratio: 4/3;
        }
    }

    @media (max-width: 480px) {
        .hero-section {
            aspect-ratio: 1/1;
        }
    }
} 