:root {
    --primary-color: #ffffff;
    --secondary-color: #6a0dad;
    --background-beige: #f5f5dc;
    --highlight-color: #6a0dad;
    --text-dark-color: #333;
    --font-family: 'Montserrat', sans-serif;
    --heading-font: 'Playfair-Display', serif;
    --signature-font: 'Dancing Script', cursive;

    --envelope-color-dark: #483D8B;
    --envelope-color-light: #9370DB;
    --envelope-border-light: #D8BFD8;
    --envelope-border-dark: #DDA0DD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #000;
    color: var(--primary-color);
    overflow-x: hidden;
}

.page-section {
    padding: 60px 5%;
}

#about, #info {
    min-height: 50vh;
}

.section-heading {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.light-section-heading {
    color: var(--text-dark-color);
}

/* --- Animated Heading --- */
.committees-section .section-heading,
.itinerary-section .section-heading,
.socials-section .section-heading,
.secretariat-section .section-heading {
    color: #fff;
    font-size: 3.5em;
    letter-spacing: 4px;
    position: relative;
    padding-bottom: 20px;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(209, 169, 255, 0.5),
        0 0 35px rgba(106, 13, 173, 0.5);
    animation: aura-pulse 5s infinite ease-in-out;
}

.committees-section .section-heading::before,
.itinerary-section .section-heading::before,
.socials-section .section-heading::before,
.secretariat-section .section-heading::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-glimmer 8s ease-in-out 2s infinite;
}

.committees-section .section-heading::after,
.itinerary-section .section-heading::after,
.socials-section .section-heading::after,
.secretariat-section .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--highlight-color);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--highlight-color), 0 0 5px #fff;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.committees-section.is-visible .section-heading::after,
.itinerary-section.is-visible .section-heading::after,
.socials-section.is-visible .section-heading::after,
.secretariat-section.is-visible .section-heading::after {
    opacity: 1;
}

@keyframes aura-pulse {
    0%, 100% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 255, 255, 0.6), 0 0 15px rgba(209, 169, 255, 0.5), 0 0 35px rgba(106, 13, 173, 0.5);
    }
    50% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(209, 169, 255, 0.6), 0 0 45px rgba(138, 43, 226, 0.6);
    }
}

@keyframes text-glimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.loading-text {
    font-size: 6vw;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-text span {
    display: block;
    line-height: 1.2;
    transform: translateY(100%);
    opacity: 0;
}

.loading-text span:first-child {
    animation: slideUp 1s ease-in-out forwards 1.5s;
}

.loading-text span:last-child {
    animation: slideUp 1s ease-in-out forwards 2s;
}

.loading-text::before {
    content: '';
    position: absolute;
    top: 50%;
    height: 4px;
    background-color: var(--highlight-color);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    animation: drawLine 1.5s ease-in-out forwards;
}

@keyframes drawLine {
    100% { width: 100%; }
}

@keyframes slideUp {
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

.navbar.scrolled {
    background-color: transparent;
    box-shadow: none;
}

.navbar.scrolled .nav-links a, .navbar.scrolled .logo-edition {
    color: #ffffff;
}

.navbar.navbar-light {
    background-color: transparent;
    box-shadow: none;
}

.navbar.navbar-light .nav-links a, .navbar.navbar-light .logo-edition {
    color: #ffffff;
}

.navbar.navbar-light .nav-links a:hover {
    color: var(--highlight-color);
}

.logo a {
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo-image {
    height: 45px;
}

.logo a div {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-vjmun {
    color: var(--highlight-color);
}

.logo-edition {
    font-weight: 400;
    opacity: 0.8;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1em;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(45, 20, 69, 0.8);
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 5px;
}

.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* --- Hamburger Menu --- */
.hamburger-menu, .close-menu {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assembly.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(50%) grayscale(50%);
    z-index: -1;
    transform: scale(1);
    transition: transform 5s ease-out;
}

.background-image.zoom-in {
    transform: scale(1.1);
}

.hero-content {
    animation: fadeIn 2s ease-in-out forwards 0.5s;
    opacity: 0;
    position: relative;
    z-index: 1;
    padding: 100px 20px 40px 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-title {
    font-size: clamp(2.5em, 10vw, 5em);
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.event-details, .registration-status {
    font-size: clamp(1em, 4vw, 1.5em);
    letter-spacing: 1px;
    margin-top: 10px;
    color: #ffffff;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-segment {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 90px;
    text-align: center;
    transition: transform 0.3s ease;
}

.countdown-value {
    font-size: clamp(2em, 8vw, 3em);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: rgba(248, 248, 224, 0.7);
    letter-spacing: 1px;
}

.hero-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-hero-register {
    flex-shrink: 0;
}

.btn-hero-register[disabled] {
    background: grey;
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
    padding: 12px 25px;
}
.btn-hero-register[disabled] span {
    font-size: 0.8em;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
    text-transform: uppercase;
    font-weight: normal;
}


/* --- Stats Section --- */
#stats {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 4em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2em;
    color: rgba(248, 248, 224, 0.8);
}

/* --- Letter Section --- */
#letter {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.letter-paper {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: white;
    padding: 50px 60px;
    border-radius: 8px;
    color: var(--text-dark-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-200px);
    opacity: 0;
    transition: opacity 0.8s ease-out 2.5s, transform 0.8s ease-out 2.5s;
    z-index: 10;
}

#letter.is-visible .letter-paper {
    transform: translateY(0);
    opacity: 1;
}

.letter-paper .letter-heading,
.letter-paper .letter-body p,
.letter-paper .letter-signature {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

#letter.is-visible .letter-paper .letter-heading {
    opacity: 1;
    transition-delay: 3.1s;
}

#letter.is-visible .letter-paper .letter-body p {
    opacity: 1;
    transition-delay: 3.3s;
}

#letter.is-visible .letter-paper .letter-signature {
    opacity: 1;
    transition-delay: 3.5s;
}

.letter-heading {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
}

.letter-body p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.letter-signature {
    text-align: right;
    margin-top: 40px;
}

.envelope-wrapper {
    height: 400px;
    width: 800px;
    background-color: var(--envelope-color-dark);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
}

#letter.is-visible .envelope-wrapper {
    animation: envelope-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards,
               move-envelope-down 1.5s cubic-bezier(0.4, 0, 0.2, 1) 2.2s forwards;
}

.lid {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-right: 400px solid transparent;
    border-bottom: 200px solid transparent;
    border-left: 400px solid transparent;
    transform-origin: top;
    transition: transform 0.6s ease-in-out;
}

.lid.one {
    border-top: 200px solid var(--envelope-color-light);
    transform: rotateX(0deg);
    z-index: 3;
}

.lid.two {
    border-top: 200px solid var(--envelope-color-dark);
    transform: rotateX(90deg);
    z-index: 1;
}

.envelope-base {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-top: 200px solid transparent;
    border-right: 400px solid var(--envelope-border-light);
    border-bottom: 200px solid var(--envelope-border-light);
    border-left: 400px solid var(--envelope-border-dark);
    z-index: 3;
}

#letter.is-visible .lid.one {
    transition-delay: 1.5s;
    transform: rotateX(90deg);
}

#letter.is-visible .lid.two {
    transition-delay: 1.8s;
    transform: rotateX(180deg);
}

@keyframes envelope-reveal {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes move-envelope-down {
    0% { transform: translate(-50%, -50%); opacity: 1; }
    50% { transform: translate(-50%, 20%); opacity: 1; }
    100% { transform: translate(-50%, 100%); opacity: 0; pointer-events: none;}
}

/* --- Starry Background & Section Setup --- */
.starry-container {
    position: relative;
    overflow: hidden;
}

.starry-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a001a 0%, #0c0c2c 30%, #000000 80%);
    background-size: 200% 200%;
    animation: animated-gradient 20s ease infinite;
    z-index: 0;
}

#letter,
.committees-section,
.itinerary-section,
.socials-section,
.secretariat-section {
    position: relative;
    background-color: transparent;
    z-index: 1;
}

@keyframes animated-gradient {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

.starry-container .stars1,
.starry-container .stars2,
.starry-container .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.stars1 {
    background-image: radial-gradient(1px 1px at 20px 30px, #eee, transparent),
                      radial-gradient(1px 1px at 40px 70px, #fff, transparent),
                      radial-gradient(1px 1px at 50px 160px, #ddd, transparent),
                      radial-gradient(1.5px 1.5px at 90px 40px, #fff, transparent),
                      radial-gradient(1px 1px at 130px 80px, #fff, transparent),
                      radial-gradient(1px 1px at 160px 120px, #ddd, transparent);
    background-size: 200px 200px;
    animation: move-stars 120s linear infinite;
}
.stars2 {
    background-image: radial-gradient(1.5px 1.5px at 50px 50px, #fff, transparent),
                      radial-gradient(2px 2px at 100px 100px, #eee, transparent),
                      radial-gradient(1.5px 1.5px at 150px 150px, #fff, transparent);
    background-size: 300px 300px;
    animation: move-stars 90s linear infinite;
}
.stars3 {
    background-image: radial-gradient(2px 2px at 10px 200px, #fff, transparent),
                      radial-gradient(2.5px 2.5px at 400px 400px, #fff, transparent);
    background-size: 500px 500px;
    animation: move-stars 60s linear infinite;
}

@keyframes move-stars {
    from {transform: translateY(0px);}
    to {transform: translateY(-2000px);}
}

.vertical-text-animation {
    position: absolute;
    left: -50px;
    top: 0;
    transform: rotate(-90deg);
    transform-origin: top left;
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    text-transform: uppercase;
    pointer-events: none;
    letter-spacing: 10px;
    white-space: nowrap;
}

/* --- Committees Section --- */
.committees-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.committee-circle-container {
    position: relative;
    width: max(70vw, 700px);
    height: max(70vw, 700px);
    max-width: 1000px;
    max-height: 1000px;
    margin-top: 50px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1s ease;
    z-index: 2;
}

.committees-section.is-visible .committee-circle-container {
    transform: scale(1);
    opacity: 1;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: subtle-pulse 4s infinite ease-in-out;
    transform-origin: center;
}

@keyframes subtle-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}

.committee-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    margin: -110px;
    text-align: center;
    opacity: 0;
    transform-origin: center;
    transition: transform 0.5s ease, opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.committees-section.is-visible .committee-item {
    opacity: 1;
}

.committee-item img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

#disec-item img { width: 450px; height: 450px; }
#unhcr-item img { width: 450px; height: 450px; }
#lokhsabha-item img { width: 450px; height: 450px; }
#crisis-item img { width: 450px; height: 450px; }
#internationalpress-item img { width: 450px; height: 450px; }

.committee-item h3 {
    margin-top: -80px;
    color: #fff;
    font-weight: 400;
    font-size: 1.3em;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.committee-item:hover h3 {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.committee-item:hover img {
    transform: scale(1.15);
}

.committees-section.is-visible .committee-circle-container .committee-item:nth-child(2) { transform: rotate(0deg) translateY(-420px) rotate(0deg); transition-delay: 0.2s; }
.committees-section.is-visible .committee-circle-container .committee-item:nth-child(3) { transform: rotate(72deg) translateY(-420px) rotate(-72deg); transition-delay: 0.4s; }
.committees-section.is-visible .committee-circle-container .committee-item:nth-child(4) { transform: rotate(144deg) translateY(-420px) rotate(-144deg); transition-delay: 0.6s; }
.committees-section.is-visible .committee-circle-container .committee-item:nth-child(5) { transform: rotate(216deg) translateY(-420px) rotate(-216deg); transition-delay: 0.8s; }
.committees-section.is-visible .committee-circle-container .committee-item:nth-child(6) { transform: rotate(288deg) translateY(-420px) rotate(-288deg); transition-delay: 1s; }


/* --- Itinerary Section --- */
.itinerary-section {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.itinerary-container {
    width: 100%;
    max-width: 1100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.itinerary-section.is-visible .itinerary-container {
    opacity: 1;
    transform: translateY(0);
}

.itinerary-tabs {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.active-glider {
    position: absolute;
    top: 5px;
    height: calc(100% - 10px);
    border-radius: 50px;
    background-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.tab-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 15px 30px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.tab-btn:hover {
   color: #fff;
}

.tab-btn.active {
    color: #333;
    text-shadow: none;
}

.itinerary-content {
    position: relative;
}

@keyframes fadeInSchedule {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.day-schedule {
    display: none;
}

.day-schedule.active {
    display: block;
    animation: fadeInSchedule 0.5s ease-out forwards;
}

.event-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-left: 80px;
}

.event-item::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.event-time {
    flex-shrink: 0;
    width: 220px;
    padding: 12px 15px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    position: relative;
    z-index: 2;
    margin-right: 50px;
}

.event-time::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    border-left: none;
    z-index: 0;
}

.event-details h3 {
    margin: 0 0 5px;
    font-size: 1.3em;
    color: #fff;
}

.event-details p {
    margin: 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

.event-item.color-1 .event-time { background-color: #1abc9c; }
.event-item.color-2 .event-time { background-color: #3498db; }
.event-item.color-3 .event-time { background-color: #9b59b6; }
.event-item.color-4 .event-time { background-color: #e67e22; }

/* ======================================================= */
/* ====== OPTIMIZED SOCIALS SECTION CSS ================== */
/* ======================================================= */

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

#socials {
    padding: 80px 0;
    overflow: hidden;
}

#socials .socials-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto 60px auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

#socials .socials-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

#socials .socials-logo-item {
    height: 80px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

#socials .vjmun-logo {
    height: 130px; 
}

#socials .logo-separator {
    font-size: 4em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1;
}

#socials .socials-intro {
    font-size: 1.2em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

.film-strip-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-image:
        linear-gradient(to bottom, #0c0c2c 0%, #0c0c2c 15%, transparent 15%, transparent 85%, #0c0c2c 85%, #0c0c2c 100%),
        radial-gradient(ellipse 50% 100% at 50% 100%, transparent 40%, #1a0f29 41%, #1a0f29 59%, transparent 60%),
        radial-gradient(ellipse 50% 100% at 50% 0%, transparent 40%, #1a0f29 41%, #1a0f29 59%, transparent 60%);
    background-size: 100% 100%, 40px 18px, 40px 18px;
    background-position: 0 0, 0px 5px, 0px calc(100% - 5px - 18px);
    background-repeat: no-repeat, repeat-x, repeat-x;
}

.film-strip-track {
    width: calc(400px * 14); 
    height: 100%;
    display: flex;
    will-change: transform;
    animation: scrollLeft 30s linear infinite;
    /* This line is the fix for the animation lag */
    transform: translateZ(0);
}

.film-frame {
    width: 400px;
    height: 100%;
    flex-shrink: 0;
    padding: 30px 20px;
    position: relative;
}

.film-frame::before {
    content: '';
    position: absolute;
    inset: 28px 18px;
    box-shadow: inset 0 0 0 2px rgba(223, 207, 190, 0.5);
    border-radius: 4px;
}

.film-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}


/* ======================================================= */
/* ============= END OF SOCIALS SECTION CSS ============== */
/* ======================================================= */


/* --- Button Styles --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--highlight-color);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-register {
    padding: 8px 24px;
    font-size: 1em;
}

.btn-hero-register {
    padding: 15px 40px;
    font-size: 1.3em;
    background: linear-gradient(90deg, #8a2be2, #c71585);
    border: none;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6), 0 0 25px rgba(199, 21, 133, 0.5);
}

.btn:hover {
    transform: scale(1.05) translateY(-3px);
    color: #fff;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.8), 0 0 40px rgba(199, 21, 133, 0.7);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-30deg);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 120%;
}

/* --- Secretariat Section --- */
.secretariat-section {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.secretariat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    margin-top: 20px;
}

.secretariat-card {
    flex: 0 1 380px;
    width: 380px;
    height: 480px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.secretariat-section.is-visible .secretariat-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.secretariat-section.is-visible .secretariat-card:nth-child(1) { transition-delay: 0.1s; }
.secretariat-section.is-visible .secretariat-card:nth-child(2) { transition-delay: 0.2s; }
.secretariat-section.is-visible .secretariat-card:nth-child(3) { transition-delay: 0.3s; }
.secretariat-section.is-visible .secretariat-card:nth-child(4) { transition-delay: 0.2s; }
.secretariat-section.is-visible .secretariat-card:nth-child(5) { transition-delay: 0.3s; }
.secretariat-section.is-visible .secretariat-card:nth-child(6) { transition-delay: 0.4s; }
.secretariat-section.is-visible .secretariat-card:nth-child(7) { transition-delay: 0.3s; }
.secretariat-section.is-visible .secretariat-card:nth-child(8) { transition-delay: 0.4s; }
.secretariat-section.is-visible .secretariat-card:nth-child(9) { transition-delay: 0.5s; }
.secretariat-section.is-visible .secretariat-card:nth-child(10) { transition-delay: 0.4s; }
.secretariat-section.is-visible .secretariat-card:nth-child(11) { transition-delay: 0.5s; }
.secretariat-section.is-visible .secretariat-card:nth-child(12) { transition-delay: 0.6s; }
.secretariat-section.is-visible .secretariat-card:nth-child(13) { transition-delay: 0.5s; }
.secretariat-section.is-visible .secretariat-card:nth-child(14) { transition-delay: 0.6s; }

.secretariat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.secretariat-card:hover img {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px rgba(106, 13, 173, 0.7), 0 0 10px rgba(255,255,255,0.5);
}

/* --- Footer Section --- */
.footer-section {
    background-color: #121212;
    color: #a0a0a0;
    padding: 80px 5% 20px;
    border-top: 4px solid var(--highlight-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.footer-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80"><path fill="%232a2a2a" fill-opacity="0.2" d="M10 10 H70 V70 H10Z M0 0 H80 V80 H0Z"></path></svg>');
    opacity: 0.1;
    z-index: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h4 {
    font-family: var(--heading-font);
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #c71585);
    transition: width 0.5s ease-out;
}

.footer-section.is-visible .footer-column h4::after {
    width: 50px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 8px;
    text-shadow: 0 0 5px #fff;
}

.footer-column p {
    margin-bottom: 12px;
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column p i {
    color: #c71585;
}

.social-icon {
    font-size: 3em;
    color: #a0a0a0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(199, 21, 133, 0.5);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.9em;
    color: #666;
}


/*
=====================================================
--- Media Queries for Responsiveness ---
=====================================================
*/

/* --- Tablet and Smaller Desktops (<= 992px) --- */
@media (max-width: 992px) {
    .section-heading,
    .committees-section .section-heading,
    .itinerary-section .section-heading,
    .secretariat-section .section-heading {
        font-size: 2.5em;
    }

    .envelope-wrapper { width: 90vw; height: 60vw; }
    .lid { border-right-width: 45vw; border-bottom-width: 30vw; border-left-width: 45vw; border-top-width: 30vw; }
    .envelope-base { border-top-width: 30vw; border-right-width: 45vw; border-bottom-width: 30vw; border-left-width: 45vw; }

    .committees-section {
        height: auto;
        min-height: auto;
        justify-content: flex-start;
        overflow: visible;
        padding-bottom: 100px;
        margin-bottom: 250px;
    }
    .committee-circle-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
        height: auto;
        width: 100%;
        margin-top: 20px;
        transform: none;
    }
    .center-logo {
        display: none;
    }
    .committee-item {
        position: static;
        transform: none !important;
        transition-delay: 0s !important;
        margin: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .committee-item img,
    #disec-item img, #unhcr-item img, #lokhsabha-item img,
    #crisis-item img, #internationalpress-item img {
        width: 200px;
        height: 200px;
        max-width: 100%;
        max-height: none;
    }
    .committee-item h3 {
        margin-top: 0;
        font-size: 1.2em;
        font-weight: 700;
        text-align: center;
    }
    
    .secretariat-card {
        width: 300px;
        height: 380px;
    }

    .itinerary-section,
    .secretariat-section {
        min-height: auto;
        height: auto;
    }

    /* Socials section responsive adjustments */
    .film-strip-container { height: 350px; }
    .film-strip-track { width: calc(320px * 14); }
    .film-frame { width: 320px; }
}

/* --- Mobile Devices (<= 768px) --- */
@media (max-width: 768px) {
    .hero-buttons-container {
        flex-direction: column;
        gap: 15px;
    }
    .btn-hero-register {
        font-size: 1em;
        padding: 12px 25px;
        width: 80%;
        max-width: 300px;
    }

    .hamburger-menu {
        display: block;
    }

    .navbar.menu-open .hamburger-menu {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 5, 25, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 20px 0;
        transform: translateY(20px);
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards;
    }
    .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.5s; }
    @keyframes navLinkFade { to { transform: translateY(0); opacity: 1; } }
    .nav-links a { font-size: 1.8em; }
    .dropdown-content { position: static; background: none; box-shadow: none; text-align: center; }
    .dropdown:hover .dropdown-content { display: block; }
    .close-menu {
        display: block;
        position: absolute;
        top: 30px;
        right: 5%;
        color: #fff;
        font-size: 2.2em;
    }

    .vertical-text-animation { display: none; }

    .letter-paper { padding: 30px 25px; }
    .letter-heading { font-size: 1.8em; }
    .letter-body p { font-size: 1em; }
    .letter-signature > div {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .letter-signature > div > div { text-align: center; }

    .itinerary-tabs { width: 100%; }
    .tab-btn { padding: 10px 15px; font-size: 1em; flex: 1; }
    .event-item { flex-direction: column; align-items: flex-start; padding-left: 40px; }
    .event-item::before { left: 15px; }
    .event-time { width: 100%; margin-right: 0; margin-bottom: 10px; text-align: left; }
    .event-time::after { display: none; }
    
    #socials .socials-logos {
        gap: 30px;
    }
    #socials .socials-logo-item {
        height: 40px;
    }
    #socials .vjmun-logo {
        height: 95px; /* Adjust this value for mobile */
    }
    .film-strip-container { height: 300px; }
    .film-strip-track { 
        width: calc(280px * 14); 
        animation-duration: 35s; /* Slightly faster on mobile */
    }
    .film-frame { width: 280px; }

    .secretariat-card {
        width: 85vw;
        max-width: 350px;
        height: auto;
    }
    .secretariat-card img { height: auto; }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* --- Very Small Mobile Devices (<= 600px) --- */
@media (max-width: 600px) {
    .committee-circle-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}