/* ========================
   Component: Hero Section
   ======================== */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: transparent;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Overlay - Main content centered on slider */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-overlay .container {
    width: 100%;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.slider-controls button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: rgba(0,0,0,0.8);
}

/* Hero Content */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
    padding: 30px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-text h1 {
    font-size: 4.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.hero-image {
    flex: 1.5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 85vh;
}

.hero-image img {
    height: 95%;
    width: auto;
    max-width: none;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out;
}

/* Responsive styles for hero section */
@media (max-width: 1200px) {
    .hero-text {
        max-width: 700px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 90vh;
    }
    
    .hero-text {
        max-width: 600px;
        padding: 25px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .slider-controls button {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
    }
    
    .hero-text {
        max-width: 90%;
        padding: 20px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .slider-controls button {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 70vh;
    }
    
    .hero-text {
        padding: 15px;
        background-color: rgba(0,0,0,0.7);
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
