:root {
    /* Color Palette */
    --bg-dark: #07090f;
    /* Very dark navy */
    --surface: #101623;
    /* Slighly lighter navy */
    --surface-glass: rgba(16, 22, 35, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);

    /* Typography colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Brand Accents */
    /* Vibrant, modernized A&M red with a touch of neon */
    --accent-primary: #ff3344;
    --accent-glow: rgba(255, 51, 68, 0.3);

    /* Complementary tech/quant cyan */
    --accent-secondary: #00e5ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Utility */
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* subtle background noise/texture can be added here */
}

/* Dynamic Background Orbs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    animation: drift 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -5%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
}

.blob-2 {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: var(--accent-secondary);
    animation-delay: -12s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-80px, 80px) scale(1.2);
    }
}

/* Typography Base */
h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    line-height: 1.15;
}

h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: var(--accent-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

/* Glassmorphism Utility */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
    /* Stay above mobile menu */
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

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

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

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

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    /* pill shape for modern feel */
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 68, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--accent-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

/* Visual Eye Candy Orb */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.glass-orb {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-pulse 6s ease-in-out infinite;
}

.orb-core {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent-gradient);
    filter: blur(20px);
    position: absolute;
    opacity: 0.6;
    animation: rotate-core 10s linear infinite;
}

.glass-orb i {
    font-size: 6rem;
    color: white;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

@keyframes float-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 229, 255, 0.15);
    }
}

@keyframes rotate-core {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Section Header Shared */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 1.2rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Pillars Section */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.pillar-card {
    padding: 3rem 2.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Hover glow effect background */
.pillar-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    pointer-events: none;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.4);
    transform: scale(1.05);
}

.pillar-title {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

.pillar-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* About Section */
.about-container {
    max-width: 1000px;
}

.about-content {
    padding: 4rem;
}

.lead-text {
    font-size: 1.5rem !important;
    color: var(--text-main) !important;
    font-weight: 500;
    margin-bottom: 2rem !important;
    line-height: 1.4;
}

.about p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 3rem;
    text-align: center;
}

.stat-num {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    border-radius: 50%;
}

.cta-box p {
    margin: 1.5rem 0 3rem;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

.input-field {
    flex: 1;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

/* Animation Classes Used by JS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Add this class via JS to trigger animations */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        /* push image to top on mobile */
        margin-bottom: 2rem;
    }

    .glass-orb {
        width: 280px;
        height: 280px;
    }

    .stats-row {
        flex-direction: column;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(7, 9, 15, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        transform: translateY(-20px);
        z-index: 1000;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.4rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .section {
        padding: 5rem 0;
    }

    .about-content {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* =========================================
   SUBPAGE & COMPONENT STYLES
   ========================================= */

/* Subpage Base Styles */
.page-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.page-content {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

/* -----------------------------
   TEAM GRID
------------------------------ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-secondary);
}

.team-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.team-role {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.team-socials a:hover {
    color: var(--text-main);
}

/* -----------------------------
   TRACK LIST
------------------------------ */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.track-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.track-card:hover {
    border-color: rgba(255, 51, 68, 0.3);
}

.track-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
}

.track-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    background: rgba(255, 51, 68, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-title {
    font-size: 1.8rem;
}

.track-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.track-body h4 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
}

.skill-tags li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

/* -----------------------------
   EVENTS TIMELINE
------------------------------ */
.event-timeline {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    display: flex;
    padding: 2rem;
    gap: 2rem;
    align-items: center;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateX(10px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.event-day {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-top: 0.2rem;
}

.event-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.badge-competition {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-secondary);
}

.badge-workshop {
    background: rgba(255, 51, 68, 0.15);
    color: var(--accent-primary);
}

.badge-speaker {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.event-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.event-loc {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* -----------------------------
   GUIDES GRID
------------------------------ */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    padding: 2.5rem;
}

.guide-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.guide-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.guide-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-links li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.guide-links li a i {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    transition: var(--transition);
}

.guide-links li a:hover {
    color: var(--text-main);
}

.guide-links li a:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .event-loc {
        justify-content: center;
    }

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