/* 
 * VJPSMUN '26 CSS Design System
 * Strictly aligns with the MUN Brochure Color Schemes and Content.
 * Features premium glassmorphism, Polaroid framing, torn paper edges, scroll animations, and interactive elements.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #c51b7d;          /* Magenta/Deep Pink from brochure */
    --primary-rgb: 197, 27, 125;
    --primary-dark: #9e1261;
    --primary-light: #e565ad;
    --secondary: #1a365d;        /* Dark Navy Blue from logo */
    --secondary-rgb: 26, 54, 93;
    --bg-grey: #eef6fc;          /* Light Blue-Grey background */
    --bg-white: #ffffff;
    --gold: #fce278;             /* Yellow-Gold accent from contact us headers */
    --gold-dark: #ccaa00;
    --text-dark: #0f172a;        /* Elegant Dark Slate */
    --text-muted: #475569;
    --text-light: #f8fafc;
    
    /* Layout Sizes */
    --navbar-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;
    
    /* System Tokens */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 12px 18px -8px rgba(0, 0, 0, 0.08);
    --shadow-magenta: 0 15px 30px -5px rgba(197, 27, 125, 0.3);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   CSS Reset & Core Styles
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-grey);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-grey);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--border-radius-pill);
    border: 2px solid var(--bg-grey);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

section {
    padding: 100px 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Typography elements */
h1, h2, h3, h4, .font-serif {
    font-family: var(--font-heading);
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.2;
}

h2 span {
    color: var(--primary);
}

p {
    font-size: 1.1rem;
    font-weight: 300;
}

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

.subtitle-script {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: -10px;
    margin-bottom: 30px;
    display: block;
}

/* ----------------------------------------------------
   Buttons & Links
---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius-pill);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-magenta);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -5px rgba(197, 27, 125, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-grey);
}

/* ----------------------------------------------------
   Special Design Features (Brochure Effects)
---------------------------------------------------- */

/* Polaroid frame effect */
.polaroid-frame {
    background: var(--bg-white);
    padding: 20px 20px 60px 20px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    position: relative;
    transform: rotate(-1deg);
    transition: var(--transition);
}

.polaroid-frame:hover {
    transform: rotate(1deg) translateY(-5px);
}

.polaroid-frame img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Polaroid Tape effect */
.tape-effect {
    position: absolute;
    width: 120px;
    height: 35px;
    background-color: rgba(246, 235, 203, 0.82); /* Cream semi-trans tape */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 10;
    pointer-events: none;
    transform-origin: center;
}

.tape-top-left {
    top: -15px;
    left: -25px;
    transform: rotate(-35deg);
}

.tape-bottom-right {
    bottom: -15px;
    right: -25px;
    transform: rotate(-25deg);
}

.tape-center-top {
    top: -20px;
    left: calc(50% - 60px);
    transform: rotate(-5deg);
}

/* Torn paper container border styling (Wavy inline SVG) */
.torn-paper-container {
    background: var(--bg-white);
    position: relative;
    padding: 60px 40px;
    box-shadow: var(--shadow-md);
    margin: 40px 0;
}

.torn-paper-edge-top {
    position: absolute;
    top: -19px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'><path d='M0,15 L25,3 L50,18 L75,6 L100,16 L125,4 L150,12 L175,3 L200,16 L225,8 L250,18 L275,10 L300,15 L325,5 L350,17 L375,8 L400,14 L425,6 L450,18 L475,9 L500,16 L525,5 L550,13 L575,6 L600,19 L625,10 L650,17 L675,5 L700,13 L725,4 L750,18 L775,9 L800,15 L825,6 L850,18 L875,11 L900,15 L925,5 L950,13 L975,7 L1000,19 L1025,10 L1050,16 L1075,5 L1100,14 L1125,7 L1150,18 L1175,9 L1200,15 L1200,20 L0,20 Z' fill='%23ffffff'/></svg>");
    background-size: 100% 20px;
    background-repeat: no-repeat;
    z-index: 3;
}

.torn-paper-edge-bottom {
    position: absolute;
    bottom: -19px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'><path d='M0,5 L25,17 L50,2 L75,14 L100,4 L125,16 L150,8 L175,17 L200,4 L225,12 L250,2 L275,10 L300,5 L325,15 L350,3 L375,12 L400,6 L425,14 L450,2 L475,11 L500,4 L525,15 L550,7 L575,14 L600,1 L625,10 L650,3 L675,15 L700,7 L725,16 L750,2 L775,11 L800,5 L825,14 L850,2 L875,9 L900,5 L925,15 L950,7 L975,13 L1000,1 L1025,10 L1050,4 L1075,15 L1100,6 L1125,13 L1150,2 L1175,11 L1200,5 L1200,0 L0,0 Z' fill='%23ffffff'/></svg>");
    background-size: 100% 20px;
    background-repeat: no-repeat;
    z-index: 3;
}

.torn-paper-magenta {
    background: var(--primary);
    color: var(--text-light);
}
.torn-paper-magenta .torn-paper-edge-top {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'><path d='M0,15 L25,3 L50,18 L75,6 L100,16 L125,4 L150,12 L175,3 L200,16 L225,8 L250,18 L275,10 L300,15 L325,5 L350,17 L375,8 L400,14 L425,6 L450,18 L475,9 L500,16 L525,5 L550,13 L575,6 L600,19 L625,10 L650,17 L675,5 L700,13 L725,4 L750,18 L775,9 L800,15 L825,6 L850,18 L875,11 L900,15 L925,5 L950,13 L975,7 L1000,19 L1025,10 L1050,16 L1075,5 L1100,14 L1125,7 L1150,18 L1175,9 L1200,15 L1200,20 L0,20 Z' fill='%23c51b7d'/></svg>");
}
.torn-paper-magenta .torn-paper-edge-bottom {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'><path d='M0,5 L25,17 L50,2 L75,14 L100,4 L125,16 L150,8 L175,17 L200,4 L225,12 L250,2 L275,10 L300,5 L325,15 L350,3 L375,12 L400,6 L425,14 L450,2 L475,11 L500,4 L525,15 L550,7 L575,14 L600,1 L625,10 L650,3 L675,15 L700,7 L725,16 L750,2 L775,11 L800,5 L825,14 L850,2 L875,9 L900,5 L925,15 L950,7 L975,13 L1000,1 L1025,10 L1050,4 L1075,15 L1100,6 L1125,13 L1150,2 L1175,11 L1200,5 L1200,0 L0,0 Z' fill='%23c51b7d'/></svg>");
}

/* ----------------------------------------------------
   Navbar
---------------------------------------------------- */
.header {
    width: 100%;
    height: var(--navbar-height);
    background-color: rgba(238, 246, 252, 0.85); /* Faint blue-grey semi-trans */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-left img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo-right img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .nav-logo-left img {
    height: 44px;
}
.header.scrolled .nav-logo-right img {
    height: 42px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary);
}

/* ----------------------------------------------------
   Hero Section
---------------------------------------------------- */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--navbar-height) + 50px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(197, 27, 125, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(26, 54, 93, 0.06) 0%, transparent 60%);
    background-color: var(--bg-grey);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-tagline {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.95;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-collab {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero-partner {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197,27,125,0.12) 0%, rgba(26,54,93,0.02) 70%);
    z-index: 1;
}

.hero-flyer {
    width: 90%;
    max-width: 380px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: var(--transition);
    z-index: 2;
    border: 8px solid var(--bg-white);
}

.hero-flyer:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

/* Floating Hand Illustration shapes in background */
.floating-hand-path {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.hand-left {
    bottom: 10%;
    left: 2%;
    width: 250px;
    transform: rotate(20deg);
}

.hand-right {
    top: 15%;
    right: 5%;
    width: 230px;
    transform: rotate(-15deg);
}

/* ----------------------------------------------------
   About MUN Section
---------------------------------------------------- */
.about-mun {
    background-color: var(--bg-white);
    z-index: 10;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-card {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-magenta);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.about-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 0;
    font-weight: 300;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
    position: relative;
}

.gallery-frame {
    width: 100%;
    max-width: 450px;
    border: 8px solid var(--text-dark);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    padding: 10px;
    position: relative;
    border-radius: 4px;
    transform: rotate(1deg);
    transition: var(--transition);
}

.gallery-frame:hover {
    transform: rotate(-1deg) scale(1.02);
}

.gallery-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-frame-outer {
    border-color: var(--primary);
}

.gallery-caption {
    text-align: center;
    padding-top: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
}

.gallery-circle-stamp {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bg-grey);
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-12deg);
    z-index: 5;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 10px;
}

/* ----------------------------------------------------
   Venue Section
---------------------------------------------------- */
.venue {
    background-color: var(--bg-grey);
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.venue-photos {
    position: relative;
    height: 480px;
    width: 100%;
}

.venue-photo-1 {
    position: absolute;
    width: 75%;
    top: 0;
    left: 0;
    z-index: 2;
}

.venue-photo-2 {
    position: absolute;
    width: 70%;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.venue-photo-2:hover {
    z-index: 3;
}

.venue-desc {
    padding: 20px;
}

/* ----------------------------------------------------
   Leadership Messages Section
---------------------------------------------------- */
.leadership {
    background-color: var(--bg-white);
}

.leaders-tab-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.leaders-tab-content {
    display: none;
}

.leaders-tab-content.active {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

.message-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: flex-start;
}

.message-portrait-wrapper {
    position: relative;
    text-align: center;
}

.arch-frame {
    width: 100%;
    max-width: 320px;
    height: 400px;
    border-radius: 160px 160px 0 0;
    overflow: hidden;
    position: relative;
    border: 6px solid var(--bg-white);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary);
    margin-bottom: 20px;
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: relative;
    z-index: 2;
}

/* Concentric pink rings behind the leader photo */
.orbital-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.1),
                0 0 0 35px rgba(255, 255, 255, 0.05),
                0 0 0 60px rgba(255, 255, 255, 0.02);
    z-index: 1;
    pointer-events: none;
}

.chevron-indicator {
    position: absolute;
    top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.2rem;
    z-index: 3;
    animation: floatHorizontal 2s ease-in-out infinite alternate;
}

.chevron-left {
    left: 25px;
}

.chevron-right {
    right: 25px;
}

.leader-name {
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: 700;
}

.leader-role {
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.message-text {
    background-color: var(--bg-grey);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
}

.message-text p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-signoff {
    margin-top: 30px;
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

.message-signoff span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

/* ----------------------------------------------------
   Vigilante Foundation Section
---------------------------------------------------- */
.vigilante {
    background-color: var(--bg-grey);
    overflow: hidden;
}

/* Big faint VF Watermark */
.vf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 45rem;
    font-weight: 700;
    color: rgba(26, 54, 93, 0.02);
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

.stat-header {
    background-color: var(--primary);
    color: var(--bg-white);
    display: inline-block;
    padding: 10px 30px;
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: var(--border-radius-pill);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-white);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left-item {
    left: 0;
}

.right-item {
    left: 50%;
}

.right-item::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-white);
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
}

.timeline-year {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Collaborations styling */
.collabs-section {
    margin-top: 80px;
    position: relative;
    z-index: 3;
}

.collabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.collab-card {
    background-color: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.collab-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
}

.collab-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.collab-title {
    font-size: 1.15rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collab-count {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

/* ----------------------------------------------------
   Committees & Agendas Section
---------------------------------------------------- */
.committees {
    background-color: var(--bg-white);
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.committee-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 400px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.committee-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.committee-banner {
    padding: 25px 30px;
    background-color: var(--secondary);
    color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.committee-name {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.committee-badge {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 5px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--border-radius-pill);
}

.committee-fullname-bar {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 10px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 4px solid var(--primary);
    position: relative;
    z-index: 2;
}

.committee-body {
    flex: 1;
    padding: 40px 30px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.committee-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.92); /* Dark transparent mask */
    z-index: 1;
}

.committee-agenda {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Background image presets for committees (using generic CSS fallback styles or patterns since we use local overlays) */
.bg-unga {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/school_lawn_1.jpg');
}
.bg-unep {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/school_lawn_2.jpg');
}
.bg-uncsw {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/flyer.jpg');
}
.bg-aippm {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/school_lawn_1.jpg');
}
.bg-ip {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/school_lawn_2.jpg');
}

/* Full width for International Press card */
.committees-grid .committee-card-full {
    grid-column: span 2;
    height: 300px;
}

.committees-grid .committee-card-full .committee-body {
    padding: 30px;
}

/* ----------------------------------------------------
   Registration & Fee Section
---------------------------------------------------- */
.registration {
    background-color: var(--primary);
    color: var(--bg-white);
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.fee-wrapper {
    position: sticky;
    top: 120px;
}

.fee-title {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 30px;
}

.fee-paper-card {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 50px 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: visible;
}

.fee-list {
    list-style: none;
}

.fee-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
    padding-bottom: 15px;
}

.fee-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.fee-name {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-muted);
}

.fee-price {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

/* Interactive Multi-step Form styling */
.form-card {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Multi-step progress bar */
.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    max-width: 100%;
}

.progress-container::before {
    content: '';
    background-color: var(--bg-grey);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    z-index: 1;
}

.progress-bar-fill {
    background-color: var(--primary);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 0%;
    z-index: 1;
    transition: var(--transition);
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-grey);
    border: 3px solid var(--bg-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.progress-step.active {
    border-color: var(--primary);
    background-color: var(--bg-white);
    color: var(--primary);
}

.progress-step.completed {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-grey);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(197, 27, 125, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-grey);
}

/* ----------------------------------------------------
   Code of Conduct Section
---------------------------------------------------- */
.conduct {
    background-color: var(--primary);
    color: var(--bg-white);
    overflow: hidden;
}

.conduct-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--bg-white);
    margin-bottom: 50px;
    text-align: center;
}

.conduct-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.conduct-item {
    display: flex;
    gap: 20px;
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
}

.conduct-item.reveal {
    transform: translateY(0);
    opacity: 1;
}

.conduct-item:hover {
    transform: translateX(5px) scale(1.01);
    background-color: rgba(255, 255, 255, 0.12);
}

.conduct-num {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.conduct-text {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Floating Solar System/Radar circles graphic */
.radar-graphic {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 320px;
    height: 320px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.radar-circle-1 { width: 300px; height: 300px; }
.radar-circle-2 { width: 240px; height: 240px; }
.radar-circle-3 { width: 180px; height: 180px; }
.radar-circle-4 { width: 120px; height: 120px; }
.radar-circle-5 { width: 60px; height: 60px; }

.radar-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-white);
}

.node-1 { top: 10px; left: 50%; }
.node-2 { bottom: 30px; left: 20%; }

/* ----------------------------------------------------
   Contact Us & Footer Section
---------------------------------------------------- */
.contact-footer {
    padding-top: 100px;
    padding-bottom: 0;
    background-color: var(--primary);
    color: var(--bg-white);
}

.contact-title-main {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--gold);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-org {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 10px;
}

.contact-role {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-light);
    letter-spacing: 2px;
}

.contact-name {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bg-white);
}

.contact-info {
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.contact-info i {
    color: var(--gold);
    width: 20px;
}

/* Footer Bottom Photo Strip */
.footer-photo-strip {
    width: 100%;
    height: 380px;
    position: relative;
    background-color: var(--primary);
    overflow: hidden;
}

.footer-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
}

.footer-bottom-bar {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.6);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    z-index: 5;
    position: relative;
}

.footer-bottom-bar p {
    font-size: 0.95rem;
}

/* ----------------------------------------------------
   Success / Simulated Form Submission Modal
---------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.85);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(197, 27, 125, 0.1);
    color: var(--primary);
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

.modal-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.modal-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* ----------------------------------------------------
   Animations
---------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes floatHorizontal {
    from { transform: translateX(0); }
    to { transform: translateX(10px); }
}

/* Scroll reveal helper classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay helpers for reveal */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ----------------------------------------------------
   Responsive Breakpoints
---------------------------------------------------- */
@media (max-width: 1024px) {
    h2 { font-size: 2.4rem; }
    .hero h1 { font-size: 4rem; }
    .hero-partner { font-size: 2.8rem; }
    .hero-grid { gap: 30px; }
    .message-grid { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
    .message-text { width: 100%; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h2 { font-size: 2rem; }
    
    /* Responsive navbar */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 16px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero section stack */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-tagline::after {
        left: calc(50% - 30px);
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 40px;
    }
    
    /* Other grid stacks */
    .about-grid, .venue-grid, .registration-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    
    .right-item {
        left: 0%;
    }
    
    .right-item::after {
        left: 21px;
    }
    
    .committees-grid {
        grid-template-columns: 1fr;
    }
    
    .committees-grid .committee-card-full {
        grid-column: span 1;
        height: 380px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .venue-photos {
        height: 360px;
    }
}

/* ----------------------------------------------------
   Custom Animations & Counter Styles
---------------------------------------------------- */
.pulse-green {
    animation: pulseGreen 2.5s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulse-magenta {
    animation: pulseMagenta 2.5s infinite;
}

@keyframes pulseMagenta {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 27, 125, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(197, 27, 125, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 27, 125, 0);
    }
}

#studentCounter {
    font-weight: 800;
    transition: var(--transition);
    display: inline-block;
}

