/* =========================================
   Theme: Neon Campus Pulse
   Colors: Dark Charcoal Base + Neon Accents
   ========================================= */

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);

    --primary: #00f2ea;
    /* Cyan Neon */
    --secondary: #ff0055;
    /* Magenta Neon */
    --accent: #7000ff;
    /* Electric Purple */

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    --font-main: 'Inter', sans-serif;

    --glow-primary: 0 0 20px rgba(0, 242, 234, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 85, 0.5);

    --glass: blur(10px);
    --transition: all 0.3s ease;
}

/* =========================================
   Theme: White Universe (Light Mode)
   Cosmic, space-inspired with soft gradients
   ========================================= */
[data-theme="light"] {
    --bg-dark: #f8faff;
    --bg-darker: #eef2ff;
    --bg-card: rgba(255, 255, 255, 0.6);
    /* More transparent for glass effect */
    --bg-card-hover: rgba(255, 255, 255, 0.8);

    --text-main: #1e1b4b;
    --text-muted: #4c4f69;

    /* Cosmic Universe Accents - Refined */
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --accent: #d97706;
    /* Darker amber for better contrast on light */

    --glow-primary: 0 0 30px rgba(79, 70, 229, 0.15);
    /* Softer glow */
    --glow-secondary: 0 0 30px rgba(124, 58, 237, 0.15);
    --glow-star: 0 0 10px rgba(217, 119, 6, 0.3);

    --glass: blur(20px);
    /* Soft, elegant gradient for the whole page background */
    --cosmic-gradient: linear-gradient(180deg, #f0f4ff 0%, #fdf4ff 100%);
    --nebula-glow: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

/* Theme Transition - Smooth switching */
body,
body *:not(.glow-blob):not(.logo-img) {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo fade transition */
.logo-img {
    transition: opacity 0.3s ease;
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.3rem;
    padding: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.theme-btn:hover {
    color: var(--primary);
    transform: rotate(20deg) scale(1.15);
    background: var(--bg-card);
}

/* =========================================
   Stars Animation for Both Themes
   ========================================= */
.stars-container {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out;
    box-shadow: 0 0 4px currentColor;
}

.star:nth-child(odd) {
    animation-duration: 4s;
    background: var(--secondary);
}

.star:nth-child(3n) {
    animation-duration: 2.5s;
    background: var(--text-muted);
    width: 2px;
    height: 2px;
    opacity: 0.5;
}

[data-theme="light"] .star {
    /* Elegant Slate/Gold particles for Light Mode */
    background: #94a3b8;
    /* Slate 400 - subtle metallic */
    box-shadow: none;
    /* Cleaner look */
    opacity: 0.6;
}

[data-theme="light"] .star:nth-child(odd) {
    background: #cbd5e1;
    /* Slate 300 - lighter */
}

[data-theme="light"] .star:nth-child(3n) {
    background: var(--accent);
    /* Amber/Gold accent */
    opacity: 0.5;
    box-shadow: 0 0 4px rgba(217, 119, 6, 0.3);
    /* Soft gold glow */
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* =========================================
   Light Theme - Navbar Overrides
   ========================================= */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 30px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .logo {
    color: var(--text-main);
}

[data-theme="light"] .bar {
    background-color: var(--text-main);
}

/* =========================================
   Light Theme - Hero Section
   ========================================= */
[data-theme="light"] .hero {
    background: transparent;
    /* Allow body gradient/stars to show */
}

/* Apply gradient to body in light mode */
[data-theme="light"] body {
    background: var(--cosmic-gradient);
    background-attachment: fixed;
    /* Parallax-like feel */
}

[data-theme="light"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nebula-glow);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .blob-1 {
    background: rgba(124, 58, 237, 0.4);
    filter: blur(100px);
}

[data-theme="light"] .blob-2 {
    background: rgba(79, 70, 229, 0.35);
    filter: blur(100px);
}

[data-theme="light"] .blob-3 {
    background: rgba(245, 158, 11, 0.3);
    filter: blur(100px);
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

[data-theme="light"] .mouse {
    border-color: rgba(30, 27, 75, 0.3);
}

[data-theme="light"] .wheel {
    background: var(--text-main);
}

/* =========================================
   Light Theme - Section Headers
   ========================================= */
[data-theme="light"] .section-header h2 {
    background: linear-gradient(90deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Light Theme - Cards & Components
   ========================================= */
[data-theme="light"] .member-card {
    background: var(--bg-card);
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .member-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.15);
}

[data-theme="light"] .member-img {
    border-color: var(--bg-dark);
    background: var(--bg-dark);
}

[data-theme="light"] .member-name {
    color: var(--text-main);
}

[data-theme="light"] .filter-btn {
    background: var(--bg-card);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--text-muted);
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-primary);
}

[data-theme="light"] .search-bar input {
    background: var(--bg-card);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--text-main);
}

[data-theme="light"] .search-bar input::placeholder {
    color: var(--text-muted);
}

[data-theme="light"] .search-bar input:focus {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* =========================================
   Light Theme - Events Section
   ========================================= */
[data-theme="light"] .event-card {
    background: var(--bg-card);
    border-left: 4px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .event-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .event-info h3 {
    color: var(--text-main);
}

[data-theme="light"] .read-more-btn {
    border-color: rgba(79, 70, 229, 0.3);
    color: var(--text-main);
}

[data-theme="light"] .read-more-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

[data-theme="light"] .tag {
    background: rgba(124, 58, 237, 0.15);
    color: var(--secondary);
}

/* =========================================
   Light Theme - Achievements Section
   ========================================= */
[data-theme="light"] .counter-card {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
}

[data-theme="light"] .counter-card i {
    color: var(--secondary);
}

[data-theme="light"] .counter-card .count {
    background: linear-gradient(to top, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .medal-card {
    background: var(--bg-card);
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
}

[data-theme="light"] .medal-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

[data-theme="light"] .medal-card h4 {
    color: var(--text-main);
}

[data-theme="light"] .medal-card i {
    color: var(--accent);
    text-shadow: var(--glow-star);
}

/* =========================================
   Light Theme - Contact Section
   ========================================= */
[data-theme="light"] .contact-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 8px 40px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .contact-info h3 {
    color: var(--text-main);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--text-main);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--glow-primary);
}

[data-theme="light"] .social-links-large a {
    color: var(--text-muted);
}

[data-theme="light"] .social-links-large a:hover {
    color: var(--secondary);
}

/* =========================================
   Light Theme - Footer
   ========================================= */
[data-theme="light"] footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

/* =========================================
   Light Theme - Modal & Toast
   ========================================= */
[data-theme="light"] .modal {
    background: rgba(248, 250, 255, 0.9);
}

[data-theme="light"] .modal-content {
    background: white;
    border: 1px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.2);
}

[data-theme="light"] .modal-content h2 {
    color: var(--text-main);
}

[data-theme="light"] .close-modal {
    color: var(--text-muted);
}

[data-theme="light"] .close-modal:hover {
    color: var(--text-main);
}

[data-theme="light"] .modal-image-placeholder {
    background: var(--bg-darker);
}

[data-theme="light"] .toast {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
}

/* =========================================
   Light Theme - Buttons
   ========================================= */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

[data-theme="light"] .btn-secondary {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--glow-primary);
}

/* =========================================
   Light Theme - Mobile Nav
   ========================================= */
@media (max-width: 768px) {
    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: var(--glass);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='%2300f2ea' fill-opacity='0.6'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%23ffffff'/%3E%3C/svg%3E") 12 12, auto;
}

/* Custom cursor for clickable elements */
a,
button,
.btn,
.filter-btn,
.menu-toggle,
.theme-btn,
.member-card {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12' fill='%23ff0055' fill-opacity='0.5'/%3E%3Ccircle cx='14' cy='14' r='6' fill='%23ffffff'/%3E%3C/svg%3E") 14 14, pointer;
}

/* Light theme cursor */
[data-theme="light"] body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='%234f46e5' fill-opacity='0.5'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%231e1b4b'/%3E%3C/svg%3E") 12 12, auto;
}

[data-theme="light"] a,
[data-theme="light"] button,
[data-theme="light"] .btn,
[data-theme="light"] .filter-btn,
[data-theme="light"] .menu-toggle,
[data-theme="light"] .theme-btn,
[data-theme="light"] .member-card {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12' fill='%237c3aed' fill-opacity='0.5'/%3E%3Ccircle cx='14' cy='14' r='6' fill='%231e1b4b'/%3E%3C/svg%3E") 14 14, pointer;
}

/* =========================================
   Utilities & Common
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(112, 0, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.2);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 44px;
    height: 33px;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bar {
    position: absolute;
    left: 0;
    width: 44px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.bar:nth-child(3) {
    bottom: 0;
}

/* Active State - Bars collapse to center, then rotate */
.menu-toggle.active {
    transform: rotate(135deg);
}

.menu-toggle.active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 1;
}

.menu-toggle.active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(90deg);
}

/* Mobile Controls Wrapper */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle Button */
.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: rotate(20deg);
}

/* Desktop: Hide hamburger, show theme button at end */
@media (min-width: 769px) {
    .mobile-controls {
        order: 3;
    }

    .mobile-controls .menu-toggle {
        display: none;
    }
}

/* Mobile: Show both hamburger and theme toggle */
@media (max-width: 768px) {
    .mobile-controls {
        order: 2;
    }

    .menu-toggle {
        display: block !important;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for navbar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: -50px;
    animation-delay: 2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, white 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 234, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* =========================================
   Panel Section (Grid + Cards)
   ========================================= */
.panel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

.search-bar {
    position: relative;
}

.search-bar input {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px 10px 40px;
    border-radius: 20px;
    color: white;
    width: 250px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* =========================================
   Modern Profile Cards - Minimal Design
   ========================================= */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Domain Heading Styles */
.domain-heading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0 20px;
    margin-top: 20px;
    position: relative;
}

.domain-heading:first-child {
    margin-top: 0;
}

.domain-heading h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    padding: 0 30px;
}

.domain-heading h3::before,
.domain-heading h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.domain-heading h3::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.domain-heading h3::after {
    left: 100%;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* Light theme domain heading */
[data-theme="light"] .domain-heading h3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .domain-heading h3::before {
    background: linear-gradient(90deg, transparent, var(--primary));
}

[data-theme="light"] .domain-heading h3::after {
    background: linear-gradient(90deg, var(--primary), transparent);
}

@media (max-width: 992px) {
    .panel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .panel-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

.member-card {
    width: 100%;
    border-radius: 20px;
    background: linear-gradient(145deg, #e8ecef 0%, #d8dfe5 100%);
    padding: 24px 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Photo Section */
.card-photo-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.card-photo-section .member-img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.member-card:hover .card-photo-section .member-img {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Card Content */
.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Name Row with Verified Badge */
.member-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    letter-spacing: -0.3px;
}

.verified-badge {
    color: #22c55e;
    font-size: 1rem;
}

/* Description */
.member-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
    max-width: 220px;
}

/* Stats Row */
.card-stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 18px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
}

.stat-item i {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Role Badge */
.member-role-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

/* =========================================
   Dark Theme Card Overrides
   ========================================= */
[data-theme="dark"] .member-card,
body:not([data-theme="light"]) .member-card {
    background: linear-gradient(145deg, #1e2530 0%, #151a22 100%);
}

body:not([data-theme="light"]) .member-name {
    color: #f1f5f9;
}

body:not([data-theme="light"]) .member-description {
    color: #94a3b8;
}

body:not([data-theme="light"]) .card-stats-row {
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body:not([data-theme="light"]) .stat-item {
    color: #cbd5e1;
}

body:not([data-theme="light"]) .stat-item i {
    color: var(--primary);
}

body:not([data-theme="light"]) .follow-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

body:not([data-theme="light"]) .follow-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 242, 234, 0.3);
}

/* =========================================
   Light Theme Card Overrides
   ========================================= */
[data-theme="light"] .member-card {
    background: linear-gradient(145deg, #f0f4f8 0%, #e2e8f0 100%);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .member-card:hover {
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .member-name {
    color: #1e1b4b;
}

[data-theme="light"] .verified-badge {
    color: #22c55e;
}

[data-theme="light"] .member-description {
    color: #4c4f69;
}

[data-theme="light"] .card-stats-row {
    border-top-color: rgba(79, 70, 229, 0.1);
    border-bottom-color: rgba(79, 70, 229, 0.1);
}

[data-theme="light"] .stat-item {
    color: #4c4f69;
}

[data-theme="light"] .stat-item i {
    color: var(--primary);
}

[data-theme="light"] .follow-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

[data-theme="light"] .follow-btn:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* =========================================
   Events Section
   ========================================= */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.event-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.event-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.event-meta span {
    margin-right: 15px;
}

.tag {
    background: rgba(112, 0, 255, 0.2);
    color: #b080ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.read-more-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.read-more-btn:hover {
    background: white;
    color: black;
}

/* =========================================
   Achievements Section
   ========================================= */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.counter-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 20px;
    border-radius: 20px;
    position: relative;
}

.counter-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.counter-card .count {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(to top, var(--primary), white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-card p {
    color: var(--text-muted);
    font-weight: 500;
}

.medals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.medal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.medal-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.medal-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.medal-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.medal-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-container {
    max-width: 900px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: white;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
}

.social-links-large {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-links-large a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-large a:hover {
    color: var(--secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    width: 100%;
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.form-message.success {
    color: var(--primary);
}

.form-message.error {
    color: var(--secondary);
}

/* =========================================
   Footer
   ========================================= */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: white;
}

/* =========================================
   Modal & Toast
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 242, 234, 0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.modal-image-placeholder {
    width: 100%;
    height: 200px;
    background: #2a2a2a;
    border-radius: 8px;
    margin: 20px 0;
    background-image: url('https://via.placeholder.com/500x300');
    background-size: cover;
    background-position: center;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: black;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-bg {
        opacity: 0.6;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: black;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .panel-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar input {
        width: 100%;
    }

    .search-bar input:focus {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   Extra Small Mobile Devices (< 400px)
   ========================================= */
@media (max-width: 400px) {

    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Panel Controls */
    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        width: 100%;
        max-width: 100%;
    }

    .search-bar input:focus {
        width: 100%;
    }

    /* Panel Grid - Single column on very small screens */
    .panel-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 5px;
    }

    .member-card {
        padding: 20px 15px;
    }

    /* Domain Headings */
    .domain-heading h3 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .domain-heading h3::before,
    .domain-heading h3::after {
        width: 30px;
    }

    /* Counter Cards */
    .counter-grid {
        grid-template-columns: 1fr;
    }

    .counter-card h3 {
        font-size: 2.5rem;
    }

    /* Medals Grid */
    .medals-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }
}

/* =========================================
   Fix for horizontal overflow globally
   ========================================= */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 100%;
}