/* ========================================= */
/* --- COLOR PALETTE & VARIABLES --- */
/* ========================================= */
:root {
    --royal-blue: #0b1d42;
    --deep-blue: #051024;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --vintage-paper: #f4ecd8;
    --text-dark: #1a1a1a;
    --white: #ffffff;
}

/* ========================================= */
/* --- GLOBAL STYLES --- */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--royal-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ========================================= */
/* --- NAVIGATION --- */
/* ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(5, 16, 36, 0.95);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-group {
    display: flex;
    gap: 15px;
}

.nav-logo {
    height: 60px; 
    width: 60px;  
    border-radius: 50%;
    object-fit: contain;
    background-color: rgba(255,255,255,0.05);
    padding: 5px;
    border: 1px solid rgba(212,175,55,0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gold);
}

/* ========================================= */
/* --- HERO SECTION --- */
/* ========================================= */
.hero {
    background: linear-gradient(rgba(11, 29, 66, 0.9), rgba(5, 16, 36, 0.95)), url('mch.png') center/cover no-repeat;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

.hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gold-border-box.hero-box {
    position: relative;
    padding: 100px 80px; 
    text-align: center;
    background: rgba(5, 16, 36, 0.85);
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.25);
    max-width: 950px;
    width: 100%;
}

/* The Shining Golden Olive Border */
.gold-border-box.hero-box::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background-image: url('pictures/olive-border-frame.png');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1; 
    pointer-events: none; 
    animation: continuousGoldenShine 8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
}

@keyframes continuousGoldenShine {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8)) brightness(1); opacity: 0.9; }
    50% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 1)) brightness(1.2); opacity: 1; }
}

.hero-box-inner-content {
    position: relative;
    z-index: 2; 
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.edition {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--vintage-paper);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.theme-box {
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px 0;
    margin: 0 auto 30px;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.2);
}

.theme-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.dates {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--gold);
    color: var(--deep-blue) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* ========================================= */
/* --- ABOUT SECTION --- */
/* ========================================= */
.about-section {
    padding: 60px 20px;
    background-color: var(--deep-blue);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.intro-text {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================= */
/* --- WHY CHANDIGARH (VINTAGE LETTER) --- */
/* ========================================= */
.vintage-section {
    background-color: var(--vintage-paper);
    color: var(--text-dark);
    padding: 80px 20px;
}

.letter-style {
    background-color: #fff;
    padding: 60px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--royal-blue);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--royal-blue);
    margin-bottom: 5px;
}

.signature {
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
    font-weight: 600;
}

.letter-style p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.highlight-text {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--royal-blue);
    font-weight: 700;
    text-align: center;
    margin-top: 40px !important;
    line-height: 1.8;
}

/* ========================================= */
/* --- COMMITTEES (HANGING FRAMES) --- */
/* ========================================= */
.committees-section {
    padding: 80px 20px;
    background-color: var(--royal-blue);
}

.gold-text {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--vintage-paper);
    margin-bottom: 40px;
}

.hanging-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hanging-item {
    position: relative;
    text-align: center;
    transform-origin: 50% 5px; 
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hanging-item:hover {
    animation: gentleSwing 1.5s ease-in-out forwards;
}

@keyframes gentleSwing {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(3deg); }
    40% { transform: rotate(-2deg); }
    60% { transform: rotate(1deg); }
    80% { transform: rotate(-0.5deg); }
    100% { transform: rotate(0deg); }
}

.hanging-wires {
    width: 100%;
    height: 60px;
    display: block;
    margin: 0 auto;
}

.frame-card {
    background: linear-gradient(145deg, var(--deep-blue), #07152d);
    border: 3px solid var(--gold);
    border-radius: 4px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5), inset 0 0 15px rgba(212, 175, 55, 0.15);
    position: relative;
    margin-top: -5px; 
    overflow: hidden;
}

.frame-image-wrapper {
    background-color: rgba(255,255,255,0.03);
    padding: 25px 0;
    border-bottom: 2px solid var(--gold-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px; 
}

.committee-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4)); 
}

.frame-content {
    padding: 20px;
    color: var(--vintage-paper);
}

.frame-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin: 0;
}

.reveal-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.4s ease;
}

.hanging-item:hover .reveal-text {
    max-height: 300px; 
    opacity: 1;
    margin-top: 15px;
}

.committee-level {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.agenda {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e6ed; 
}

/* ========================================= */
/* --- FOOTER --- */
/* ========================================= */
footer {
    background-color: var(--deep-blue);
    border-top: 5px solid var(--gold);
    color: var(--vintage-paper);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px; 
    margin: 0 auto;
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    text-align: center;
    align-items: center;
}

.footer-col h3 { 
    font-family: 'Cinzel', serif; 
    color: var(--gold); 
    margin-bottom: 15px; 
}

.footer-col a { 
    color: rgba(244, 236, 216, 0.8); 
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--gold);
}

.copyright { 
    text-align: center; 
    margin-top: 50px; 
    font-size: 12px; 
    opacity: 0.6; 
}

/* Dev Slab (Terminal) */
.dev-slab {
    background-color: #020813; 
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    text-align: left;
    display: inline-block;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.dev-slab .cmd { color: var(--gold); font-weight: bold; }
.dev-slab a { color: #58a6ff !important; }
.dev-slab a:hover { text-decoration: underline; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--gold);
    vertical-align: middle;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

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

/* ========================================= */
/* --- RESPONSIVE MEDIA QUERIES --- */
/* ========================================= */

/* Tablet Landscape / Small Desktops */
@media (max-width: 992px) {
    .hanging-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets Portrait & Large Phones */
@media (max-width: 768px) {
    /* Navbar */
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 40px 15px;
    }
    .gold-border-box.hero-box {
        padding: 50px 30px; /* Reduced massive padding */
    }
    .gold-border-box.hero-box::before {
        top: -20px; left: -20px; right: -20px; bottom: -20px;
    }
    .main-title { font-size: 2.2rem; }
    .edition { font-size: 1rem; }
    .theme-box h3 { font-size: 1.5rem; }
    .dates { font-size: 1.2rem; }

    /* About */
    .intro-text { font-size: 1.2rem; }

    /* Vintage Letter */
    .vintage-section { padding: 40px 15px; }
    .letter-style { padding: 30px 20px; }
    .section-title { font-size: 1.8rem; }
    .highlight-text { font-size: 1.1rem; }

    /* Committees */
    .hanging-grid { grid-template-columns: 1fr; gap: 30px; }
    .gold-text { font-size: 2rem; }
    .frame-card { width: 100%; max-width: 400px; }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .main-title { font-size: 1.8rem; letter-spacing: 1px; }
    .nav-logo { height: 50px; width: 50px; }
    .cta-button { padding: 12px 25px; font-size: 0.9rem; }
}


/* Container to ensure everything is perfectly centered */
.teleport-section {
    padding: 60px 0;
    background-color: #0a1128; /* Matching your dark navy theme */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.teleport-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Space between image and text */
}

/* Adjusted Image Size */
.fast-rotate {
    width: 180px; /* Adjust this value to change size */
    height: 180px;
    object-fit: contain;
    animation: spinFast 0.5s linear infinite;
    /* Adding a subtle glow to match the 'teleport' vibe */
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4)); 
}

/* Animation remains the same */
@keyframes spinFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Text styling to match your image */
.teleport-text {
    font-family: 'Montserrat', sans-serif;
    color: #7b2cbf; /* Matching the purple in your screenshot */
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: underline;
    text-transform: uppercase;
}