/* =========================================================
   ROUTHIRAM '26 — TAMIL MANDRAM
   BLACK × GOLD × TRADITIONAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #050505;
    color: #f4f0e6;
    font-family: "Noto Sans Tamil", sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --gold: #d8b45a;
    --gold-light: #f2d889;
    --gold-dark: #8f6d25;
    --white: #f5f2ea;
    --muted: #aaa49a;
    --black: #050505;
    --card: #0d0d0d;
    --border: rgba(216, 180, 90, 0.32);
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(216, 180, 90, 0.22);
}

.nav-container {
    width: min(1200px, 92%);
    margin: auto;

    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    text-decoration: none;
    color: var(--white);

    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #d7d2c8;
    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 1px;

    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-button {
    text-decoration: none;

    border: 1px solid var(--gold);
    color: var(--gold-light);

    padding: 8px 15px;

    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 1px;

    transition: 0.3s ease;
}

.nav-button:hover {
    background: var(--gold);
    color: #050505;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: min(1000px, 90%);
    margin: auto;

    min-height: 90vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 100px 20px 90px;

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(216, 180, 90, 0.10),
        transparent 68%
    );

    filter: blur(10px);

    pointer-events: none;
}

.hero-symbol {
    position: relative;

    color: var(--gold);

    font-family: "Noto Serif Tamil", serif;
    font-size: 1.2rem;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 30px;

    opacity: 0.9;
}

.college-name {
    position: relative;

    color: var(--white);

    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;

    margin-bottom: 8px;
}

.presenting {
    position: relative;

    color: var(--muted);

    font-size: 0.95rem;

    margin-bottom: 8px;
}

.hero h1 {
    position: relative;

    font-family: "Noto Serif Tamil", serif;

    color: var(--gold-light);

    font-size: clamp(3rem, 8vw, 6.5rem);

    font-weight: 800;

    line-height: 1.2;

    text-shadow:
        0 0 10px rgba(216, 180, 90, 0.35),
        0 0 35px rgba(216, 180, 90, 0.12);

    margin-bottom: 0;
}

.hero h2 {
    position: relative;

    color: var(--white);

    font-family: "Noto Serif Tamil", serif;

    font-size: clamp(1.5rem, 4vw, 2.7rem);

    font-weight: 700;

    margin-bottom: 15px;
}

.festival-line {
    position: relative;

    color: var(--gold);

    font-size: 1.05rem;

    margin-bottom: 30px;
}

.hero-meta {
    position: relative;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;

    margin-bottom: 50px;
}

.hero-meta span {
    border: 1px solid var(--border);

    padding: 7px 16px;

    color: #d8d1c5;

    font-size: 0.82rem;
}

.quote {
    position: relative;

    max-width: 700px;

    padding: 25px 30px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quote p {
    color: var(--gold-light);

    font-family: "Noto Serif Tamil", serif;

    font-size: clamp(1.1rem, 2.5vw, 1.65rem);

    font-weight: 600;

    font-style: italic;
}

.quote span {
    display: block;

    margin-top: 7px;

    color: var(--muted);

    font-size: 0.85rem;
}


/* =========================================================
   GENERAL
   ========================================================= */

.section-container {
    width: min(1100px, 90%);
    margin: auto;

    padding: 90px 0;
}

.gold-line {
    width: 80px;
    height: 2px;

    margin: 0 auto 35px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        transparent
    );
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    text-align: center;

    max-width: 850px;
}

.intro p {
    color: #c7c2b8;

    font-size: 1rem;

    margin-bottom: 20px;
}

.intro strong {
    color: var(--gold-light);
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    text-align: center;

    margin-bottom: 65px;
}

.section-heading span {
    display: block;

    font-size: 1.8rem;

    margin-bottom: 5px;
}

.section-heading h2 {
    color: var(--gold-light);

    font-family: "Noto Serif Tamil", serif;

    font-size: clamp(2rem, 5vw, 3.2rem);

    font-weight: 700;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.category {
    margin-bottom: 80px;
}

.category > h3 {
    text-align: center;

    color: var(--gold);

    font-family: "Noto Serif Tamil", serif;

    font-size: 1.8rem;

    margin-bottom: 30px;
}

.category > h3::after {
    content: "";

    display: block;

    width: 45px;
    height: 1px;

    margin: 12px auto 0;

    background: var(--gold-dark);
}


/* =========================================================
   EVENT GRID
   ========================================================= */

.event-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}


/* =========================================================
   EVENT CARD
   ========================================================= */

.event-card {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    gap: 18px;

    min-height: 110px;

    padding: 24px;

    text-decoration: none;

    color: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(216, 180, 90, 0.035),
            rgba(255, 255, 255, 0.008)
        );

    border: 1px solid rgba(216, 180, 90, 0.20);

    cursor: pointer;

    text-align: left;

    font-family: inherit;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);

    border-color: rgba(216, 180, 90, 0.7);

    background:
        linear-gradient(
            135deg,
            rgba(216, 180, 90, 0.09),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(216, 180, 90, 0.04);
}

.event-card:focus-visible {
    outline: 1px solid var(--gold-light);
    outline-offset: 4px;
}

.event-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    font-size: 1.3rem;

    background: #080808;
}

.event-content {
    min-width: 0;
}

.event-card h4 {
    color: var(--white);

    font-family: "Noto Serif Tamil", serif;

    font-size: 1.15rem;

    margin-bottom: 4px;
}

.event-card p {
    color: #918d85;

    font-size: 0.78rem;

    line-height: 1.7;
}

.arrow {
    margin-left: auto;

    color: var(--gold);

    font-family: Arial, sans-serif;

    font-size: 1.4rem;

    transition: 0.3s ease;
}

.event-card:hover .arrow {
    transform: translate(4px, -4px);

    color: var(--gold-light);
}


/* =========================================================
   SPECIAL EVENT
   ========================================================= */

.special {
    text-align: center;
}

.special-box {
    max-width: 750px;

    margin: auto;

    padding: 65px 35px;

    border: 1px solid rgba(216, 180, 90, 0.4);

    background:
        radial-gradient(
            circle at center,
            rgba(216, 180, 90, 0.08),
            transparent 65%
        );
}

.special-label {
    color: var(--muted);

    font-size: 0.8rem;

    letter-spacing: 3px;
}

.special-box h2 {
    color: var(--gold-light);

    font-family: "Noto Serif Tamil", serif;

    font-size: clamp(2.2rem, 5vw, 3.7rem);

    margin: 10px 0;
}

.special-divider {
    width: 55px;
    height: 1px;

    background: var(--gold);

    margin: 20px auto;
}

.special-box > p {
    color: #aaa59c;
}

.debate-panel {
    margin: 35px auto 0;

    padding-top: 25px;

    border-top: 1px solid rgba(216, 180, 90, 0.18);
}

.debate-panel h3 {
    color: var(--gold);

    font-family: "Noto Serif Tamil", serif;

    font-size: 1rem;

    margin-bottom: 15px;
}

.debate-panel p {
    color: #c0bbb1;

    font-size: 0.9rem;

    margin: 2px 0;
}


/* =========================================================
   PURPOSE
   ========================================================= */

.purpose {
    text-align: center;

    max-width: 900px;
}

.purpose > p {
    color: #bcb7ae;

    font-size: 1rem;

    max-width: 760px;

    margin: auto;
}

.closing-quote {
    margin-top: 50px;

    padding: 30px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.closing-quote p {
    color: var(--gold-light);

    font-family: "Noto Serif Tamil", serif;

    font-size: 1.25rem;

    font-style: italic;
}


/* =========================================================
   GALLERY — MASONRY PHOTO WALL
   ========================================================= */

.gallery {
    width: min(1200px, 92%);
    margin: auto;
    text-align: center;
}

.gallery .section-heading {
    margin-bottom: 25px;
}

.gallery-intro {
    color: var(--muted);
    margin: 0 auto 45px;
    font-size: 0.95rem;
}


/* Masonry columns */

.gallery-grid {
    column-count: 4;
    column-gap: 14px;
}


/* Individual image */

.gallery-item {
    position: relative;

    width: 100%;

    margin-bottom: 14px;

    break-inside: avoid;
    page-break-inside: avoid;

    overflow: hidden;

    background: #0a0a0a;

    border: 1px solid rgba(216, 180, 90, 0.18);

    cursor: pointer;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* Image */

.gallery-item img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: cover;

    filter: grayscale(12%);

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}


/* Dark overlay */

.gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.45),
            transparent 45%
        );

    opacity: 0;

    transition: opacity 0.35s ease;

    pointer-events: none;
}


/* Gold corner effect */

.gallery-item::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 35px;
    height: 35px;

    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);

    opacity: 0;

    z-index: 2;

    transition: 0.35s ease;
}


/* Hover */

.gallery-item:hover {
    transform: translateY(-4px);

    border-color: rgba(216, 180, 90, 0.65);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(216, 180, 90, 0.06);
}

.gallery-item:hover img {
    transform: scale(1.04);

    filter: grayscale(0%);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .gallery-grid {
        column-count: 3;
        column-gap: 12px;
    }

    .gallery-item {
        margin-bottom: 12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .gallery {
        width: 94%;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .gallery-grid {
        column-count: 2;
        column-gap: 7px;
    }

    .gallery-item {
        margin-bottom: 7px;
    }

}
/* =========================================================
   RULES MODAL
   ========================================================= */

.rules-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.rules-modal.active {
    visibility: visible;
    opacity: 1;
}


/* Dark background */

.rules-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(216, 180, 90, 0.06),
            rgba(0, 0, 0, 0.94) 60%
        );

    backdrop-filter: blur(10px);

    cursor: pointer;
}


/* Modal */

.rules-box {
    position: relative;

    z-index: 2;

    width: min(800px, 100%);

    max-height: 88vh;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #11100d,
            #070707
        );

    border: 1px solid rgba(216, 180, 90, 0.5);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(216, 180, 90, 0.05);

    transform: translateY(30px) scale(0.97);

    transition: transform 0.3s ease;
}

.rules-modal.active .rules-box {
    transform: translateY(0) scale(1);
}


/* Close */

.rules-close {
    position: absolute;

    top: 15px;
    right: 18px;

    z-index: 5;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(216, 180, 90, 0.35);

    background: rgba(0, 0, 0, 0.45);

    color: var(--gold-light);

    font-size: 1.7rem;

    font-family: Arial, sans-serif;

    line-height: 1;

    cursor: pointer;

    transition: 0.25s ease;
}

.rules-close:hover {
    background: var(--gold);

    color: #050505;

    border-color: var(--gold);
}


/* Header */

.rules-header {
    padding: 45px 65px 25px;

    text-align: center;

    border-bottom: 1px solid rgba(216, 180, 90, 0.16);
}

.rules-category {
    display: inline-block;

    color: var(--muted);

    font-size: 0.75rem;

    letter-spacing: 3px;

    margin-bottom: 5px;
}

.rules-header h2 {
    color: var(--gold-light);

    font-family: "Noto Serif Tamil", serif;

    font-size: clamp(2rem, 5vw, 3rem);

    font-weight: 700;

    line-height: 1.4;
}

.rules-line {
    width: 55px;
    height: 1px;

    margin: 15px auto 0;

    background: var(--gold);
}


/* Body */

.rules-body {
    max-height: calc(88vh - 190px);

    overflow-y: auto;

    padding: 35px 55px 45px;

    scrollbar-width: thin;

    scrollbar-color:
        var(--gold-dark)
        #080808;
}


/* Custom scrollbar */

.rules-body::-webkit-scrollbar {
    width: 6px;
}

.rules-body::-webkit-scrollbar-track {
    background: #080808;
}

.rules-body::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
}

.rules-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}


/* Rules list */

.rules-body ol {
    margin: 0;

    padding-left: 25px;

    counter-reset: rules;
}

.rules-body li {
    color: #d0cbc1;

    font-size: 0.95rem;

    line-height: 1.9;

    padding-left: 8px;

    margin-bottom: 13px;
}

.rules-body li::marker {
    color: var(--gold);

    font-weight: 700;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;

    padding: 70px 20px 50px;

    border-top: 1px solid rgba(216, 180, 90, 0.15);
}

.footer-line {
    width: 50px;
    height: 1px;

    margin: 0 auto 25px;

    background: var(--gold);
}

footer h3 {
    color: var(--gold-light);

    font-family: "Noto Serif Tamil", serif;

    font-size: 1.5rem;
}

footer p {
    color: #858178;

    font-size: 0.85rem;
}

footer .footer-final {
    color: var(--gold);

    margin-top: 15px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-box {
        max-width: 720px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .nav-container {
        min-height: 65px;
    }

    .nav-button {
        display: none;
    }


    /* Hero */

    .hero {
        min-height: auto;

        padding-top: 90px;
        padding-bottom: 70px;
    }

    .hero-symbol {
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero-meta {
        flex-direction: column;
        width: 100%;
    }

    .hero-meta span {
        width: 100%;
    }


    /* Sections */

    .section-container {
        padding: 65px 0;
    }


    /* Cards */

    .event-card {
        padding: 20px;
    }

    .event-card p {
        font-size: 0.72rem;
    }

    .event-icon {
        width: 44px;
        height: 44px;
    }


    /* Special */

    .special-box {
        padding: 45px 20px;
    }


    /* Gallery */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Quote */

    .quote {
        padding: 20px 10px;
    }


    /* Modal */

    .rules-modal {
        padding: 12px;
    }

    .rules-box {
        width: 100%;

        max-height: 92vh;
    }

    .rules-header {
        padding: 40px 45px 20px;
    }

    .rules-header h2 {
        font-size: 2rem;
    }

    .rules-body {
        max-height: calc(92vh - 170px);

        padding: 25px 25px 35px;
    }

    .rules-body li {
        font-size: 0.88rem;

        line-height: 1.8;

        margin-bottom: 12px;
    }

    .rules-close {
        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;

        font-size: 1.5rem;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .event-card {
        gap: 12px;
        padding: 16px;
    }

    .event-card h4 {
        font-size: 1rem;
    }

    .event-card p {
        font-size: 0.68rem;
    }

    .rules-header {
        padding-left: 30px;
        padding-right: 30px;
    }

    .rules-body {
        padding-left: 20px;
        padding-right: 20px;
    }

}