/* main.css - Page-specific styles for Home Page */

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 852px; /* Exact height from design */
    width: 100%;
    overflow: hidden;
    margin-top: 172px; /* Push below the fixed navbar */
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-content .hero-title {
    font-size: 70px;
    line-height: 0.99;
    margin: 0;
    max-width: 828px;
}

.hero-content .hero-subtitle {
    font-size: 20px;
    line-height: 1.415;
    max-width: 673px;
    margin: 0;
}

/* --- Slider Indicators --- */
.slider-indicators {
    position: absolute;
    left: 126px; /* Calculation from design: 1440 - (0.8333 * 1440 + 114) = 126px */
    top: 369px; /* Absolute top from design: 541px - 172px = 369px */
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.indicator {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
    pointer-events: none;
    z-index: 2;
}

.progress-ring__circle {
    stroke-dasharray: 69.12; /* Calculated: 2 * PI * 11 */
    stroke-dashoffset: 69.12;
    stroke: #ffffff;
    fill: transparent;
}

.progress-ring__bg {
    stroke: transparent; /* Remove initial border */
    fill: transparent;
}

.indicator.active .progress-ring__circle {
    animation: progress-fill 5s linear forwards;
}

@keyframes progress-fill {
    from { stroke-dashoffset: 69.12; }
    to { stroke-dashoffset: 0; }
}

.indicator img.dot-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    position: absolute;
    z-index: 1;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .hero {
        height: 500px;
        margin-top: 60px; /* Match mobile navbar height */
    }

    .slider-indicators {
        left: 20px;
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 450px;
    }
    
    .hero-content {
        margin-top: 40px;
    }
}


