/* Hero Section - Updated for Dynamic Carousel */

/* Hero Container */
header.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    padding: 0;
}

/* Individual Hero Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Background Images */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* No overlay - full brightness for hero images */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Hero Content - Glass Morphism Effect */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 30px 40px;

    /* Reduced blur for better text readability (elderly users) */
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

    /* Smooth appearance */
    transition: all 0.3s ease;
}

.hero-content h1 {
    font-size: 2.5rem;  /* 40px - Reduced from 48px for better readability */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Replace line breaks with space on larger screens */
.hero-content h1 br::before {
    content: ' ';
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;  /* Semibold - Bolder for elderly users */
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle p {
    margin-bottom: 0.5rem;
}

/* CTA Button - Always Green Background */
.hero-content .cta-button {
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.125rem;  /* 18px - Increased for elderly users */
    font-weight: var(--font-weight-bold);  /* Bold for elderly users */
    color: var(--text-white);
    background-color: var(--color-primary);  /* Green all the time */
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Darker green on hover */
.hero-content .cta-button:hover {
    background-color: var(--color-primary-dark);  /* Darker green on hover */
    border-color: var(--color-primary-dark);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Pressed state - even darker green */
.hero-content .cta-button:active,
.hero-content .cta-button:focus {
    background-color: var(--color-primary-hover);  /* Even darker when pressed */
    border-color: var(--color-primary-hover);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    transform: translateY(0);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.slide-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicators .indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
}

.slide-indicators .indicator:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 25px 30px;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 2rem;  /* 32px - Reduced from 35.2px for better mobile readability */
        margin-bottom: 1rem;
    }

    /* Show line breaks in h1 on mobile screens */
    .hero-content h1 br {
        display: block;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .carousel-controls {
        padding: 0 20px;
    }

    .carousel-controls button {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .slide-indicators {
        bottom: 15px;
        gap: 2px;
        padding: 2px 4px;
    }

    .slide-indicators .indicator {
        width: 2px;
        height: 2px;
        border-width: 0.5px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px 25px;
        max-width: 95%;
        border-radius: 8px;
    }

    .hero-content h1 {
        font-size: 1.75rem;  /* 28px - Better balanced for small screens */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .carousel-controls button {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .slide-indicators {
        bottom: 8px;
        gap: 1px;
        padding: 1px 3px;
    }

    .slide-indicators .indicator {
        width: 1.5px;
        height: 1.5px;
        border-width: 0.3px;
    }
}