/* ==========================================================================
   RESET & BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarpanch', sans-serif;
    background: #0c0302;
    color: #fff;
    overflow: hidden;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes menuItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ==========================================================================
   SLIDER & SLIDES
   ========================================================================== */

.slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-content {
    max-width: 1600px;
    width: 95%;
    z-index: 1;
    position: relative;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.35rem, 8vw, 117px);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    letter-spacing: 2px;
    line-height: 1.2;
    font-weight: 400;
    font-style: italic;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 40px);
    line-height: 1.6;
    margin-bottom: 3rem;
    font-style: italic;
    animation: fadeInUp 1s ease 0.3s both;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 50px;
}

.subtitle {
    font-family: 'Sarpanch', sans-serif;
    font-size: clamp(1.5rem, 4vw, 50px);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
    letter-spacing: 1px;
}

.subtitle-small {
    font-family: 'Sarpanch', sans-serif;
    font-size: clamp(1rem, 2.5vw, 30px);
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.description {
    font-family: 'Sarpanch', sans-serif;
    font-size: clamp(1rem, 2.2vw, 28px);
    line-height: 1.8;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.5s both;
    max-width: 900px;
}

/* ==========================================================================
   VIDEO CONTAINERS
   ========================================================================== */

.video-container {
    position: relative;
    width: auto;
    max-width: 90%;
    height: calc(40vh + 100px);
    margin: 1.5rem auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.5s both;
}

.video-container iframe,
.video-container > div {
    width: 100%;
    height: 100%;
}

.video-container iframe {
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(2rem, 4vw, 3.5rem);
    margin: 0.8rem;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    text-decoration: none;
    font-family: 'Sarpanch', sans-serif;
    font-size: clamp(0.9rem, 2vw, 23px);
    transition: all 0.4s ease;
    cursor: pointer;
    animation: fadeInUp 1s ease 0.7s both;
    letter-spacing: 1px;
}

.btn:hover {
    background: #fff;
    color: #0c0302;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: #fff;
    color: #0c0302;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-delayed {
    opacity: 0;
    transition: opacity 1s ease;
}

.btn-delayed.show {
    opacity: 1;
}

/* ==========================================================================
   MENU
   ========================================================================== */

.menu-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(12, 3, 2, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #fff;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background: #0c0302;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 3, 2, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 4.5rem 0 0 4.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    padding: 2rem;
}

.menu-item {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    font-family: 'Sarpanch', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.menu-overlay.active .menu-item {
    animation: menuItemFadeIn 0.5s ease forwards;
}

.menu-overlay.active .menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-overlay.active .menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-overlay.active .menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-overlay.active .menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-overlay.active .menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-overlay.active .menu-item:nth-child(6) { animation-delay: 0.3s; }

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.menu-item:hover::before {
    left: 0;
}

.menu-item:hover {
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.menu-item.current {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.menu-item-number {
    display: none;
}

.menu-item-title {
    display: block;
    font-size: 1.5rem;
}

.menu-secondary-links {
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    margin-top: 0.35rem;
    opacity: 0;
    transform: translateY(12px);
}

.menu-overlay.active .menu-secondary-links {
    animation: menuItemFadeIn 0.5s ease forwards;
    animation-delay: 0.35s;
}

.menu-secondary-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Sarpanch', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.menu-secondary-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.progress {
    position: fixed;
    top: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: none;
}

.progress-bar {
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RULES SECTION
   ========================================================================== */

.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at center, rgba(139, 90, 43, 0.6) 0%, rgba(12, 3, 2, 0.9) 60%),
        url('../revslider/assets/grudge.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.rule-slide .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.rule-box {
    background: rgba(12, 3, 2, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 3rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    border-radius: 8px;
}

.rule-box .rule-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 90px);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    font-style: italic;
}

.rule-box .description {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 1.8vw, 22px);
    line-height: 1.8;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.0s forwards;
    font-style: italic;
}

.rule-box .btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.rule-box .video-container,
.rule-box .rule-image-container {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.rule-image-container:hover img {
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.05);
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    font-family: 'Sarpanch', sans-serif;
    font-size: clamp(1.5rem, 3vw, 40px);
    animation: fadeInUp 1s ease 0.4s both;
    letter-spacing: 3px;
}

.rule-title {
    font-family: 'Sarpanch', sans-serif;
    font-size: clamp(2rem, 5vw, 70px);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
    letter-spacing: 2px;
}

/* Rule Navigation */
.rule-navigation {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 20;
}

.rule-counter {
    font-family: 'Sarpanch', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 30px);
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.rule-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 24px;
}

.rule-nav-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

.rule-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================================================
   SUMMARY SECTION
   ========================================================================== */

.summary-box {
    max-width: 1000px;
    padding: 3rem 4.5rem;
}

.summary-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.75rem, 1.4vw, 18px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.summary-text p {
    margin-bottom: 0.7rem;
}

.summary-text ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
}

.summary-text ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.summary-text ul li::before {
    content: "–";
    position: absolute;
    left: -1rem;
}

.summary-text strong {
    font-weight: 600;
}

.summary-nav {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    animation: fadeInUp 1s ease 0.5s both;
}

.summary-nav .btn {
    margin: 0;
    width: 100%;
}

/* ==========================================================================
   IMAGE MODAL
   ========================================================================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: zoomIn 0.3s ease;
    cursor: zoom-in;
    transition: transform 0.2s ease;
    transform-origin: center center;
    user-select: none;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 768px) {
    .slide {
        padding: 1.5rem;
    }

    h1 {
        letter-spacing: 1px;
    }

    .rule-number {
        gap: 1rem;
    }

    .rule-box,
    .summary-box {
        padding: 2rem 2.5rem;
    }

    .summary-text {
        font-size: clamp(0.8rem, 1.8vw, 18px);
    }

    .rule-box .video-container {
        height: calc(20vh + 40px) !important;
        margin: 1rem auto !important;
    }

    .slide:nth-child(7) .rule-box,
    .slide:nth-child(8) .rule-box {
        transform: translateY(-2rem) !important;
    }

    .slide:nth-child(8) .rule-image-container img {
        width: 50% !important;
    }

    .rule-navigation {
        bottom: 3rem;
        gap: 1.5rem;
    }

    .rule-nav-btn {
        width: 45px;
        height: 45px;
    }

    .summary-buttons {
        gap: 1rem !important;
    }

    .summary-nav {
        grid-template-columns: 1fr;
    }

    .video-container {
        width: 95%;
        max-width: 100%;
        margin: 1.5rem auto;
    }

    .menu-overlay {
        padding: 4rem 0 0 4rem;
    }

    .menu-content {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .menu-item {
        padding: 1.5rem;
    }

    .menu-toggle {
        top: 1.5rem;
        left: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .menu-toggle span {
        width: 22px;
    }

    .image-modal-close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }

    .image-modal-content {
        max-width: 95%;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 480px) {
    .video-container {
        width: 98%;
        margin: 1rem auto;
    }

    .btn {
        font-size: clamp(0.8rem, 1.8vw, 20px);
        padding: clamp(0.7rem, 1.8vw, 1rem) clamp(1.5rem, 3.5vw, 2.5rem);
    }

    .rule-box,
    .summary-box {
        padding: 1.5rem 2rem;
    }

    .summary-text {
        font-size: clamp(0.75rem, 1.6vw, 16px);
    }

    .summary-text p {
        margin-bottom: 1rem;
    }

    .rule-box .video-container {
        height: calc(18vh + 30px) !important;
        margin: 0.8rem auto !important;
    }

    .slide:nth-child(7) .rule-box,
    .slide:nth-child(8) .rule-box {
        transform: translateY(-1rem) !important;
    }

    .slide:nth-child(8) .rule-image-container {
        margin: 1rem auto !important;
    }

    .slide:nth-child(8) .rule-image-container img {
        width: 60% !important;
    }

    .rule-navigation {
        bottom: 2rem;
        gap: 1rem;
    }

    .rule-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .summary-buttons {
        gap: 0.8rem !important;
    }

    .menu-overlay {
        padding: 3.5rem 0 0 3.5rem;
    }

    .menu-toggle {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }

    .menu-toggle span {
        width: 20px;
    }

    .menu-item {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .menu-item-title {
        font-size: 1.2rem;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* ==========================================================================
   RESPONSIVE - LANDSCAPE
   ========================================================================== */

@media (max-height: 600px) and (orientation: landscape) {
    body {
        overflow-y: auto;
    }

    .slider {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .slide {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1.5rem 3rem;
        overflow-y: auto;
    }

    .slide-content {
        margin: auto;
    }

    h1 {
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .quote {
        font-size: clamp(1rem, 2.5vw, 1.8rem);
        margin-bottom: 2rem;
        padding: 0 30px;
    }

    .video-container {
        height: 50vh;
        margin: 1rem auto;
    }

    .rule-box {
        padding: 2rem 2.5rem;
        margin: 2rem auto;
    }

    .rule-box .video-container {
        height: 35vh !important;
    }

    .rule-navigation {
        bottom: 2rem;
        position: fixed;
    }

    .menu-toggle {
        top: 1rem;
        left: 1rem;
    }
}
