/* ========================================
   Homepage Styles
   ======================================== */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/wat.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 1200px;
    padding: 0 20px;
    color: white;
}

/* Hero Typography */
.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: white;
}

.hero .subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    color: white;
}

/* Timeline Navigation */
.timeline-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 20px;
}

.timeline-container {
    position: relative;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 18px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timeline-items {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.timeline-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    gap: 18px;
}

.timeline-item-wrapper:hover {
    transform: translateY(-3px);
}

/* Timeline Dots with Glowing Effects */
.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

/* Period-specific dot colors and glows */
.timeline-item-wrapper:nth-child(1) .timeline-dot {
    background: var(--period-1-color);
    box-shadow: 0 0 20px var(--period-1-color), 0 0 40px rgba(66, 133, 244, 0.5);
}
.timeline-item-wrapper:nth-child(2) .timeline-dot {
    background: var(--period-2-color);
    box-shadow: 0 0 20px var(--period-2-color), 0 0 40px rgba(52, 168, 83, 0.5);
}
.timeline-item-wrapper:nth-child(3) .timeline-dot {
    background: var(--period-3-color);
    box-shadow: 0 0 20px var(--period-3-color), 0 0 40px rgba(251, 188, 4, 0.5);
}
.timeline-item-wrapper:nth-child(4) .timeline-dot {
    background: var(--period-4-color);
    box-shadow: 0 0 20px var(--period-4-color), 0 0 40px rgba(234, 67, 53, 0.5);
}
.timeline-item-wrapper:nth-child(5) .timeline-dot {
    background: var(--period-5-color);
    box-shadow: 0 0 20px var(--period-5-color), 0 0 40px rgba(156, 39, 176, 0.5);
}
.timeline-item-wrapper:nth-child(6) .timeline-dot {
    background: var(--period-6-color);
    box-shadow: 0 0 20px var(--period-6-color), 0 0 40px rgba(0, 188, 212, 0.5);
}
.timeline-item-wrapper:nth-child(7) .timeline-dot {
    background: var(--period-7-color);
    box-shadow: 0 0 20px var(--period-7-color), 0 0 40px rgba(255, 152, 0, 0.5);
}
.timeline-item-wrapper:nth-child(8) .timeline-dot {
    background: var(--period-8-color);
    box-shadow: 0 0 20px var(--period-8-color), 0 0 40px rgba(233, 30, 99, 0.5);
}

/* Hover effects for dots */
.timeline-item-wrapper:hover .timeline-dot {
    transform: scale(1.4);
}

.timeline-item-wrapper:nth-child(1):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-1-color), 0 0 60px rgba(66, 133, 244, 0.7);
}
.timeline-item-wrapper:nth-child(2):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-2-color), 0 0 60px rgba(52, 168, 83, 0.7);
}
.timeline-item-wrapper:nth-child(3):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-3-color), 0 0 60px rgba(251, 188, 4, 0.7);
}
.timeline-item-wrapper:nth-child(4):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-4-color), 0 0 60px rgba(234, 67, 53, 0.7);
}
.timeline-item-wrapper:nth-child(5):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-5-color), 0 0 60px rgba(156, 39, 176, 0.7);
}
.timeline-item-wrapper:nth-child(6):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-6-color), 0 0 60px rgba(0, 188, 212, 0.7);
}
.timeline-item-wrapper:nth-child(7):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-7-color), 0 0 60px rgba(255, 152, 0, 0.7);
}
.timeline-item-wrapper:nth-child(8):hover .timeline-dot {
    box-shadow: 0 0 30px var(--period-8-color), 0 0 60px rgba(233, 30, 99, 0.7);
}

/* Timeline Labels */
.timeline-label {
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    line-height: 1.3;
    letter-spacing: 0.02rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.95), rgba(52, 100, 200, 0.9));
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(66, 133, 244, 1), rgba(52, 100, 200, 0.95));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.arrow {
    font-size: 1.2rem;
}

/* Footer */
.hero footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.hero .footer-tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 8px;
    color: white;
}

.hero .image-credit {
    font-size: 0.75rem;
    opacity: 0.7;
    color: white;
}

.hero .image-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.hero .image-credit a:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Responsive Behavior
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .timeline-container {
        padding: 15px 25px;
    }

    .timeline-items {
        gap: 30px;
    }

    .timeline-label {
        font-size: 0.75rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 60px 0 0 0;
    }

    .hero-content {
        padding: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }

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

    .timeline-container {
        padding: 20px 25px;
    }

    .timeline-items {
        flex-direction: column;
        gap: 20px;
    }

    .timeline-item-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
    }

    .timeline-label {
        font-size: 0.85rem;
        text-align: left;
        white-space: normal;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero footer {
        position: relative;
        bottom: auto;
        margin-top: 40px;
        padding-bottom: 30px;
    }
}
