/* ===========================================
   RESPONSIVE.CSS - Consolidated Media Queries
   =========================================== */

/* ============================================
   LARGE SCREENS (<= 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {

    /* Timeline */
    .timeline-track-wrapper {
        width: 300%;
    }

    .timeline-labels .label {
        font-size: 1.1rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   TABLETS & SMALL SCREENS (<= 768px)
   ============================================ */
@media screen and (max-width: 768px) {

    /* Prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* Navigation - Fixed header */
    #main-nav {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        padding: 15px 20px;
        z-index: 9999;
        box-sizing: border-box;
    }

    .nav-container {
        width: 100%;
        max-width: 100%;
    }

    .nav-right {
        position: relative;
        z-index: 1001;
    }

    .nav-logo-img {
        height: 28px;
    }

    .nav-logo-img[data-logo="upagraha"] {
        height: 24px;
    }

    .nav-logo-img[data-logo="svce"] {
        height: 30px;
    }

    .nav-logo-section .logo-placeholder {
        width: 36px;
        height: 36px;
    }

    .nav-logo-section .logo-placeholder span {
        font-size: 0.9rem;
    }

    .nav-logo-section .logo-divider {
        font-size: 1.2rem;
    }

    .nav-register-btn {
        display: block;
        margin-top: 10px;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        position: relative;
        z-index: 1001;
        gap: 5px;
        padding: 10px;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        gap: 24px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 1rem;
    }

    /* Hero */
    .hero-image-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .hero-image-container.is-card {
        clip-path: polygon(3% 0%, 97% 0%, 100% 3%, 100% 97%, 97% 100%, 3% 100%, 0% 97%, 0% 3%);
    }

    .hero-content-overlay {
        padding: 100px 15px 30px;
    }

    .hero-main-title {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px;
        font-size: clamp(2rem, 11vw, 4rem);
        justify-content: center;
        align-items: baseline;
    }

    .hero-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .countdown-block {
        padding: 12px 14px;
        min-width: 65px;
    }

    .count-value {
        font-size: 1.8rem;
    }

    .count-label {
        font-size: 0.55rem;
    }

    .countdown-divider {
        font-size: 1.5rem;
    }

    .hero-action-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
    }

    .hero-btn {
        padding: 14px 30px;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }


    /* Timeline */
    .timeline-track-wrapper {
        width: 400%;
        top: 40%;
    }

    .timeline-labels {
        top: -20%;
    }

    .timeline-labels .label {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .event-dot {
        width: 14px;
        height: 14px;
    }

    .timeline-event.current .event-dot {
        width: 20px;
        height: 20px;
    }

    .event-date {
        font-size: 0.55rem;
    }

    .event-name {
        font-size: 0.5rem;
        max-width: 70px;
    }

    .branch-lines .main-line {
        stroke-width: 2;
    }

    .branch-lines .branch {
        stroke-width: 1;
    }

    /* Events / Stones */
    .stone-btn img {
        width: 50px;
    }

    #stone-space {
        top: 20%;
        left: 10%;
    }

    #stone-mind {
        top: 40%;
        left: 5%;
    }

    #stone-reality {
        top: 60%;
        left: 10%;
    }

    #stone-soul {
        top: 20%;
        right: 10%;
    }

    #stone-time {
        top: 40%;
        right: 5%;
    }

    #stone-power {
        top: 60%;
        right: 10%;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
    }

    .timeline-wrapper {
        flex-direction: column;
    }

    .timeline-track {
        left: 20px;
        width: 4px;
        height: 100%;
        top: 0;
    }
}

/* ============================================
   MOBILE SCREENS (<= 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    .nav-logo-section .logo-placeholder {
        width: 32px;
        height: 32px;
    }

    .nav-logo-section .logo-placeholder span {
        font-size: 0.8rem;
    }

    .nav-logo-section .logo-divider {
        font-size: 1rem;
        margin: 0 6px;
    }

    .nav-logo-section {
        gap: 8px;
    }

    /* Timeline */
    .timeline-track-wrapper {
        width: 500%;
    }

    .timeline-labels .label {
        font-size: 0.6rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}