/* ==========================================================================
   Obsidian Dark-Mode CSS Design System: SRM AP ACM Student Chapter Website
   ========================================================================== */

/* --- Modern Styling Variables & Design Tokens --- */
:root {
    --bg-primary: #05050c;
    --bg-secondary: #0c0c16;
    --bg-accent: #121225;
    
    --neon-blue: #00f0ff;
    --neon-purple: #8b2eff;
    --neon-pink: #ff007f;
    --neon-cyan: #00ffc8;
    
    --gradient-blue-purple: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    --gradient-purple-pink: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    --gradient-cyan-blue: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    
    --text-primary: #f3f4f6;
    --text-secondary: #a3a3c2;
    --text-muted: #6b7280;
    
    --glass-bg: rgba(12, 12, 22, 0.45);
    --glass-bg-hover: rgba(18, 18, 37, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(0, 240, 255, 0.2);
    
    --shadow-neon-blue: 0 0 15px rgba(0, 240, 255, 0.25);
    --shadow-neon-purple: 0 0 15px rgba(139, 46, 255, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-header: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset Rules --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Premium Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-accent);
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
    box-shadow: var(--shadow-neon-purple);
}

/* --- Global Section Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
}

/* --- Custom Background Network Matrix Canvas --- */
.canvas-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.65;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Translucent Glass Card Design --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glass), var(--shadow-neon-blue);
}

/* --- High-Fidelity Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue-purple);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 46, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--gradient-cyan-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 0.85rem;
}

/* --- Nav Menu Layout --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 12, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-normal);
}

.header.scrolled {
    background: rgba(5, 5, 12, 0.9);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.neon-acm {
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.brand-divider {
    color: var(--glass-border);
    font-weight: 300;
}

.brand-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--neon-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width var(--transition-normal);
    box-shadow: var(--shadow-neon-blue);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* --- Hero Showcase Design --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero-container {
    text-align: center;
    position: relative;
    z-index: 10;
}

.badge-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.hero-badge {
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-neon-blue);
}

.icon-pulse {
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-gradient 6s linear infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 48px auto;
    font-weight: 400;
}

.cursor {
    animation: blink-cursor 0.75s infinite alternate;
    color: var(--neon-blue);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

/* Hero Stats Styling */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-row .stat-card {
    padding: 24px 16px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-header);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.neon-blue { color: var(--neon-blue); text-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
.neon-purple { color: var(--neon-purple); text-shadow: 0 0 10px rgba(139, 46, 255, 0.4); }
.neon-cyan { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 255, 200, 0.4); }
.neon-pink { color: var(--neon-pink); text-shadow: 0 0 10px rgba(255, 0, 127, 0.4); }

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.hero-glow-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 46, 255, 0.1) 0%, rgba(5, 5, 12, 0) 70%);
    z-index: 2;
    pointer-events: none;
}

/* --- About Chapter Section CSS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.about-content h3 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pillar-info h4 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.pillar-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Rotating Cube Visual */
.about-interactive {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 400px;
}

.cyber-cube-container {
    width: 150px;
    height: 150px;
    perspective: 800px;
    margin: 40px 0;
}

.cyber-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 12s linear infinite;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(12, 12, 22, 0.8);
    border: 2px solid var(--neon-blue);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    backface-visibility: visible;
}

.front  { transform: rotateY(  0deg) translateZ(75px); }
.back   { transform: rotateY(180deg) translateZ(75px); border-color: var(--neon-purple); color: var(--neon-purple); box-shadow: inset 0 0 20px rgba(139, 46, 255, 0.25); }
.right  { transform: rotateY( 90deg) translateZ(75px); }
.left   { transform: rotateY(-90deg) translateZ(75px); border-color: var(--neon-purple); color: var(--neon-purple); box-shadow: inset 0 0 20px rgba(139, 46, 255, 0.25); }
.top    { transform: rotateX( 90deg) translateZ(75px); }
.bottom { transform: rotateX(-90deg) translateZ(75px); }

.quote-box {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    text-align: center;
}

.quote-text {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.quote-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Leadership Section CSS --- */
.batch-selector-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.batch-selector {
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
}

.selector-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.selector-btn.active {
    background: var(--gradient-blue-purple);
    color: white;
    box-shadow: 0 0 15px rgba(139, 46, 255, 0.3);
}

.faculty-advisors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.officers-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.officers-grid.active {
    display: grid;
    animation: fade-slide-in 0.4s ease forwards;
}

/* Leader Cards */
.leader-card {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-blue);
    box-shadow: var(--shadow-neon-blue);
    opacity: 0.7;
}

.sponsor-card::before { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }
.advisor-card::before { background: var(--neon-purple); box-shadow: 0 0 8px var(--neon-purple); }
.senior-card::before { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }

.leader-image-wrapper {
    flex-shrink: 0;
}

.neon-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-accent);
    border: 2px solid var(--neon-blue);
    box-shadow: var(--shadow-neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--neon-blue);
}

.sponsor-avatar { border-color: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 0, 127, 0.4); color: var(--neon-pink); }
.advisor-avatar { border-color: var(--neon-purple); box-shadow: 0 0 10px rgba(139, 46, 255, 0.4); color: var(--neon-purple); }

.leader-details {
    flex-grow: 1;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.sponsor-badge { background: rgba(255, 0, 127, 0.1); border: 1px solid rgba(255, 0, 127, 0.3); color: var(--neon-pink); }
.advisor-badge { background: rgba(139, 46, 255, 0.1); border: 1px solid rgba(139, 46, 255, 0.3); color: var(--neon-purple); }
.senior-badge { background: rgba(0, 255, 200, 0.1); border: 1px solid rgba(0, 255, 200, 0.3); color: var(--neon-cyan); }
.chair-badge { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); color: var(--neon-blue); }
.vice-badge { background: rgba(139, 46, 255, 0.1); border: 1px solid rgba(139, 46, 255, 0.3); color: var(--neon-purple); }
.secretary-badge { background: rgba(255, 0, 127, 0.1); border: 1px solid rgba(255, 0, 127, 0.3); color: var(--neon-pink); }
.treasurer-badge { background: rgba(0, 255, 200, 0.1); border: 1px solid rgba(0, 255, 200, 0.3); color: var(--neon-cyan); }
.webmaster-badge { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); color: var(--neon-blue); }
.member-badge { background: rgba(139, 46, 255, 0.1); border: 1px solid rgba(139, 46, 255, 0.3); color: var(--neon-purple); }

.leader-details h3 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.leader-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.leader-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.leader-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.leader-links a:hover {
    color: var(--neon-blue);
}

.no-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Events Hub CSS --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.event-image-overlay {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
}

.event-placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.event-card:hover .event-placeholder-icon {
    transform: scale(1.1);
    opacity: 0.6;
}

.event-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(12, 12, 22, 0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.event-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    align-self: flex-start;
}

.cat-bootcamp { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); color: var(--neon-blue); }
.cat-research { background: rgba(255, 0, 127, 0.1); border: 1px solid rgba(255, 0, 127, 0.3); color: var(--neon-pink); }

.event-body h3 {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* --- Resources CSS --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.resource-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(139, 46, 255, 0.08);
    border: 1px solid rgba(139, 46, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-purple);
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
    background: rgba(139, 46, 255, 0.15);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-neon-purple);
}

.resource-card h3 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.resource-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resource-link:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* --- Gallery Grid Section CSS --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    padding: 0;
    overflow: hidden;
    height: 220px;
    position: relative;
    border-radius: 16px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 5, 12, 0.95) 0%, rgba(5, 5, 12, 0) 100%);
    padding: 24px 20px 14px;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-size: 0.92rem;
    font-weight: 600;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    transition: var(--transition-normal);
}

.gallery-img-placeholder i {
    font-size: 2.25rem;
    opacity: 0.7;
}

.gallery-item:hover .gallery-img-placeholder {
    transform: scale(1.05);
}

.neon-gradient-1 { background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(139, 46, 255, 0.2) 100%); border: 1px dashed var(--neon-blue); }
.neon-gradient-2 { background: linear-gradient(135deg, rgba(255, 0, 127, 0.1) 0%, rgba(139, 46, 255, 0.2) 100%); border: 1px dashed var(--neon-pink); }
.neon-gradient-3 { background: linear-gradient(135deg, rgba(0, 255, 200, 0.1) 0%, rgba(0, 240, 255, 0.2) 100%); border: 1px dashed var(--neon-cyan); }
.neon-gradient-4 { background: linear-gradient(135deg, rgba(139, 46, 255, 0.1) 0%, rgba(255, 0, 127, 0.2) 100%); border: 1px dashed var(--neon-purple); }
.neon-gradient-5 { background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 255, 200, 0.2) 100%); border: 1px dashed var(--neon-blue); }
.neon-gradient-6 { background: linear-gradient(135deg, rgba(255, 0, 127, 0.1) 0%, rgba(0, 255, 200, 0.2) 100%); border: 1px dashed var(--neon-pink); }

/* --- Contact Section CSS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.contact-form-wrapper {
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Visual validation styling */
.form-group.invalid input, .form-group.invalid textarea {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.error-msg {
    font-size: 0.8rem;
    color: var(--neon-pink);
    margin-top: 6px;
    display: none;
}

.form-group.invalid .error-msg {
    display: block;
}

/* Success Visual Layer */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    transform: translateY(101%);
    transition: transform var(--transition-slow);
}

.success-overlay.active {
    transform: translateY(0);
}

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

.success-icon {
    font-size: 4rem;
    color: var(--neon-cyan);
    margin-bottom: 24px;
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
    animation: pulse 2s infinite;
}

.success-content h3 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.info-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-text a:hover {
    color: var(--neon-blue);
}

.social-channels-card h4 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.social-channels-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.social-links-grid {
    display: flex;
    gap: 16px;
}

.social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.linkedin-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--neon-blue);
}

.linkedin-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-neon-blue);
}

.instagram-btn {
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--neon-pink);
}

.instagram-btn:hover {
    background: rgba(255, 0, 127, 0.15);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

/* --- Global Footer --- */
.footer {
    background: #030308;
    border-top: 1px solid var(--glass-border);
    padding: 48px 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.15rem;
}

.footer-brand p {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 4px;
}

.footer-copy {
    text-align: right;
}

.footer-copy p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.developed-by {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px;
}

/* --- Glassmorphic Modals System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    background: rgba(5, 5, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.modal-box {
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 48px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.modal-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 24px;
}

.modal-title {
    font-family: var(--font-header);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.modal-meta-row {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-meta-row i {
    color: var(--neon-blue);
}

/* Modal Body Layout */
.modal-body-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.modal-body-content.single-column {
    grid-template-columns: 1fr;
}

.modal-main-text h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-main-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.academic-resource-speakers {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
}

.academic-resource-speakers h4 {
    font-family: var(--font-header);
    font-weight: 700;
    margin-bottom: 12px;
}

.academic-resource-speakers ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.academic-resource-speakers li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.academic-resource-speakers li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
    font-weight: bold;
}

/* ROCS Quote */
.rocs-quote {
    margin: 32px 0;
    border-left: 4px solid var(--neon-pink);
    border-radius: 0 16px 16px 0;
    background: rgba(255, 0, 127, 0.03);
    padding: 24px;
}

.rocs-quote p {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rocs-quote span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-pink);
    text-transform: uppercase;
}

/* Speaker List for ROCS */
.speakers-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.speaker-profile {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.speaker-avatar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.speaker-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 127, 0.25);
    object-fit: cover;
    flex-shrink: 0;
}

.speaker-profile h4 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.95rem;
}

.speaker-profile p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Modal Right Media Sidebar */
.modal-media-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.media-tabs {
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 8px;
    display: flex;
}

.media-tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.media-tab-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.media-panels {
    position: relative;
}

.media-panel {
    display: none;
}

.media-panel.active {
    display: block;
    animation: fade-slide-in 0.3s ease forwards;
}

/* Video Player Styling */
.video-container {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Visual placeholder if file is missing */
.video-fallback-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 22, 0.95);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.video-container video[src]:not([src=""]) + .video-fallback-state,
.video-container video:has(source[src]:not([src=""])) + .video-fallback-state {
    display: none; /* Hide if src is set */
}

/* We will let app.js dynamically toggle this fallback when video fails or lacks source */
.video-fallback-state.hidden {
    opacity: 0;
}

.video-fallback-state i {
    font-size: 3rem;
    margin-bottom: 12px;
}

.video-fallback-state span {
    font-family: var(--font-header);
    font-weight: 700;
    margin-bottom: 4px;
}

.small-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mt-10 { margin-top: 10px; }

/* Presentation Slide Deck Download Card */
.slides-download-card {
    text-align: center;
    padding: 32px 24px;
}

.slide-preview-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: float-slide 4s ease-in-out infinite;
}

.slides-download-card h4 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.slides-download-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

/* --- Core Keyframe Animations --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes blink-cursor {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes rotate-cube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes float-slide {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes shine-gradient {
    to {
        background-position: 200% center;
    }
}

@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Breakpoints & Accessibility (CSS Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-interactive {
        min-height: auto;
    }
    
    .faculty-advisors-grid {
        grid-template-columns: 1fr;
    }
    
    .officers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Toggle Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 5, 12, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transform: translateX(101%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        display: none; /* Hide in header, place inside mobile drawer if needed */
    }
    
    /* Toggle bars transform into an X when active */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Stats Layout */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Officers Grid Mobile */
    .officers-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modals Layout Mobile */
    .modal-body-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .modal-box {
        padding: 32px 20px;
    }
    
    .speakers-list {
        grid-template-columns: 1fr;
    }
    
    /* Gallery Grid Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-copy {
        text-align: center;
    }
}

/* Custom Branding Logo Container to protect it from Dark Background */
.brand-logo-wrapper {
    background: #ffffff; /* Solid white background guarantees perfect readability */
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px; /* Restrict height to look clean and proportioned in navigation */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-logo-wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.25);
}

.brand-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Footer specific brand adjustments */
.footer-logo-wrapper {
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   Standalone Event Pages Styles (bootcamp.html & rocs.html)
   ========================================================================== */
.main-event-page {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

.event-banner-section {
    padding: 40px 0;
    text-align: center;
}

.event-page-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.event-meta-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 16px;
    flex-wrap: wrap;
}

.event-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.event-meta-row i {
    color: var(--neon-blue);
}

.event-details-section {
    padding: 30px 0;
}

.event-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .event-content-grid {
        grid-template-columns: 1fr;
    }
}

.event-description h3, .media-container h3 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.event-description p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.media-container {
    margin-bottom: 32px;
}

.media-container h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.media-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

.symposium-speakers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.speaker-inst {
    font-weight: 500;
    color: var(--text-secondary) !important;
}

.speaker-domain {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--neon-pink);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mb-20 { margin-bottom: 20px; }
.event-photos-section {
    padding: 60px 0;
}

/* ROCS Event Poster Hover Effect */
.poster-container:hover .poster-img {
    transform: scale(1.03);
}

/* Guest Speaker Slide Download Buttons */
.btn-download-talk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--neon-blue);
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all var(--transition-normal);
}

.btn-download-talk:hover {
    color: #ffffff !important;
    background: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-1px);
}

.btn-download-talk i {
    font-size: 0.85rem;
    color: inherit !important;
}
