@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Light Mode (Slate & Indigo) */
    --primary: #0f172a;        /* Slate 900 */
    --primary-muted: #475569;  /* Slate 600 */
    --secondary: #4f46e5;      /* Indigo 600 */
    --secondary-hover: #4338ca;/* Indigo 700 */
    --accent: #2563eb;         /* Blue 600 */
    --accent-hover: #1d4ed8;   /* Blue 700 */
    --success: #10b981;        /* Emerald 500 */
    --background: #f8fafc;     /* Slate 50 */
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.8);
    --border-color: #e2e8f0;   /* Slate 200 */
    --text-main: #0f172a;      /* Slate 900 */
    --text-muted: #475569;     /* Slate 600 */
    --text-on-accent: #ffffff;
    --footer-bg: #0f172a;      /* Decoupled dark footer background */
    
    /* Layout & Styling Tokens */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Hero Gradient */
    --hero-bg: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%), 
               radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
               #ffffff;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --primary: #f8fafc;        /* Slate 50 */
    --primary-muted: #cbd5e1;  /* Slate 300 */
    --secondary: #818cf8;      /* Indigo 400 */
    --secondary-hover: #6366f1;/* Indigo 500 */
    --accent: #60a5fa;         /* Blue 400 */
    --accent-hover: #3b82f6;   /* Blue 500 */
    --success: #34d399;        /* Emerald 400 */
    --background: #0b0f19;     /* Deep slate dark */
    --card-bg: #1e293b;        /* Slate 800 */
    --header-bg: rgba(11, 15, 25, 0.8);
    --border-color: #1e293b;   /* Slate 800 */
    --text-main: #f8fafc;      /* Slate 50 */
    --text-muted: #94a3b8;     /* Slate 400 */
    --text-on-accent: #0f172a;
    --footer-bg: #030712;      /* Extremely dark footer in dark mode */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    
    --hero-bg: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%), 
               radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
               #0b0f19;
}

/* Global Reset & Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

p {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    gap: 8px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: #ffffff;
}

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

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

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

/* Sections (Reduced padding to solve dead space issues) */
section {
    padding: 65px 0;
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: clamp(14px, 2.2vw, 18px);
    line-height: 1.5;
    max-width: 100%;
}

/* Glass Header Styling */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-normal);
}

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

/* Logo Clickable Style */
a.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

a.logo-container:hover {
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--secondary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.dropdown-trigger {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    padding: 28px 0; /* Expanded vertically to align hover area */
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width var(--transition-fast);
}

.dropdown-trigger:hover {
    color: var(--text-main);
}

.dropdown-trigger:hover::after {
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1010;
    top: 90%; /* Positioned overlapping slightly to bridge gap */
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0;
}

/* Invisible bridge hover helper to resolve subnavigation menu disappearing bug */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--background);
    color: var(--secondary);
}

.nav-item.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mobile-group-title {
    display: none;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.05);
    background-color: var(--background);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-main);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background-color: var(--border-color);
}

/* Hero Section (Left-aligned & offset layout with abstract visual) */
.hero {
    background: var(--hero-bg);
    padding: 100px 0 80px;
    position: relative;
    transition: background var(--transition-normal);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: 54px;
    max-width: 100%;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 20px;
    max-width: 100%;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-tagline {
    font-size: clamp(16px, 2.2vw, 20px) !important;
    line-height: 1.5;
    max-width: 100%;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

.hero-visual-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 350px;
    user-select: none;
}

/* Argument Lab Science Visual - Upright Flask with Floating Bubbles */
.argument-lab-science-visual {
    position: relative;
    width: 380px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    animation: float-graph-container 6s ease-in-out infinite;
}

.science-flask-container {
    position: absolute;
    width: 270px;
    height: 270px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.05));
    z-index: 5;
}

[data-theme="dark"] .science-flask-container {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}

.science-flask-svg {
    width: 100%;
    height: 100%;
}

.flask-outline {
    stroke: var(--primary);
    transition: stroke var(--transition-normal);
}

.flask-rim {
    fill: var(--primary);
    transition: fill var(--transition-normal);
}

.flask-liquid-static {
    fill: url(#flask-liquid-grad);
}

/* Floating Clean Bubbles */
.floating-bubbles-container {
    position: absolute;
    top: 20px;
    width: 160px;
    height: 200px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.clean-bubble {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: background var(--transition-normal), border var(--transition-normal);
}

.b1 { animation: float-bubble 4s infinite ease-in; animation-delay: 0s; left: 10px; border-color: var(--secondary); }
.b2 { animation: float-bubble 4s infinite ease-in; animation-delay: 1.3s; left: 55px; border-color: var(--accent); }
.b3 { animation: float-bubble 4s infinite ease-in; animation-delay: 2.6s; left: 100px; border-color: var(--success); }

@keyframes float-bubble {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.6);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.1);
    }
}

@keyframes float-graph-container {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* About Section */
.about {
    background-color: var(--card-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 17px;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 1.0;
    /* Moved crop slightly up so the top of the photo shows and the bottom is cut off */
    object-position: 50% 0%;
}

/* Welcome/Skills Section (Modified to vertical flow for spruced up cards) */
.welcome {
    background-color: var(--background);
}

.welcome-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.welcome-text {
    width: 100%;
}

.welcome-text > p {
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.welcome-image {
    width: 100%;
    position: relative;
}

.welcome-image::after {
    content: '';
    position: absolute;
    inset: 12px 12px -12px -12px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.welcome-image img {
    width: 100%;
    height: 360px;
    display: block;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    /* Slipped vertical crop down slightly from 48% to 58% */
    object-position: 50% 58%; 
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.skill-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-card h4 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card h4::before {
    content: '✦';
    font-size: 16px;
}

.skill-card ul {
    list-style: none;
    margin: 8px 0;
}

.skill-card li {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.skill-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.skill-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Events Section */
.spar {
    background-color: var(--card-bg);
}

.event-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.event-toggle {
    display: inline-flex;
    background-color: var(--background);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    gap: 4px;
}

.event-btn {
    padding: 10px 24px;
    border: none;
    background: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.event-btn:hover {
    color: var(--text-main);
}

.event-btn.active {
    background-color: var(--secondary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.event-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.event-content {
    display: none;
}

.event-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* 2-Column condensed event content */
.event-panel {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.event-panel-reversed {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex-direction: row-reverse;
}

.event-info-pane {
    flex: 1.1;
    display: flex;
    flex-direction: column;
}

.event-badge {
    align-self: flex-start;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.event-info-pane h4 {
    font-size: 28px;
    margin-bottom: 12px;
}

.event-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.event-image-pane {
    margin-top: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.event-image-pane img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.spar-img {
    object-position: 50% 35% !important;
}

.impromptu-img {
    object-position: 50% 55% !important;
}

.event-steps-pane {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.event-flow-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.event-flow-card:hover {
    transform: translateX(4px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.flow-num {
    width: 36px;
    height: 36px;
    background-color: var(--secondary);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.flow-text {
    display: flex;
    flex-direction: column;
}

.flow-text strong {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.flow-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

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

/* FAQ Section */
.faq {
    background-color: var(--background);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-question {
    padding: 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background-color: rgba(99, 102, 241, 0.02);
}

.faq-question span:last-child {
    font-size: 20px;
    color: var(--secondary);
    transition: transform var(--transition-normal);
    line-height: 1;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 24px;
}

.faq-item.active {
    border-color: var(--secondary);
}

.faq-item.active .faq-question span:last-child {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Timelines / Previous Camps Styles */
.camp-section {
    padding: 65px 0;
}

.camp-section:nth-of-type(even) {
    background-color: var(--card-bg);
}

.camp-section:nth-of-type(odd) {
    background-color: var(--background);
}

.camp-block {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 50px;
}

.camp-block:last-child {
    margin-bottom: 0;
}

.camp-block.reverse {
    flex-direction: row-reverse;
}

.camp-text {
    flex: 1.2;
    padding-top: 8px;
}

.camp-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.camp-text p {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-muted);
}

.camp-image-wrapper {
    flex: 0.8;
    position: relative;
}

.camp-year-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--secondary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.camp-block.reverse .camp-year-tag {
    background: var(--accent);
    left: auto;
    right: 24px;
}

.camp-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.camp-block.reverse .camp-image-wrapper::after {
    border-color: var(--accent);
}

.camp-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 1.4;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.camp-image-wrapper img:hover {
    transform: scale(1.02);
}

/* Gallery Slider Section */
.gallery-section {
    background-color: var(--card-bg);
    padding: 65px 0;
    border-top: 1px solid var(--border-color);
}

.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gallery-track-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform var(--transition-normal);
    will-change: transform;
}

.gallery-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    font-size: 20px;
    transition: all var(--transition-fast);
    z-index: 10;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
    transform: scale(1.08);
}

/* Footer styling */
footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 60px 0 30px; /* Reduced padding slightly */
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-column {
    flex: 1;
}

.footer-column:first-child {
    flex: 1.5;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-column p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #cbd5e1;
    font-size: 15px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .about-content,
    .welcome-content,
    .camp-block,
    .camp-block.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image,
    .welcome-image,
    .camp-image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content-left {
        align-items: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual-right {
        display: none; /* Hide visual graph on mobile for cleaner spacing */
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 20px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .dropdown-trigger {
        display: none;
    }
    
    .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        width: 100%;
        transform: none;
        margin-top: 0;
        padding: 0;
    }
    
    .dropdown-content a {
        padding: 12px 10px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-group-title {
        display: block;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 14px;
        color: var(--secondary);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 15px 0 5px 10px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .event-panel,
    .event-panel-reversed {
        flex-direction: column;
        gap: 30px;
    }
    
    .event-steps-pane {
        width: 100%;
    }
    
    .event-image-pane {
        margin-top: 24px;
    }
    
    .gallery-slider {
        gap: 10px;
    }
    
    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
