/* ===== CSS Variables ===== */
:root {
    --primary: #7B2D8E;
    --primary-dark: #5E2270;
    --primary-light: #9B4DB0;
    --accent: #C9A227;
    --secondary: #2d2d3a;
    --background: #faf8f6;
    --surface: #ffffff;
    --surface-light: #f5f1ef;
    --text: #2d2d3a;
    --text-muted: #6b6b7a;
    --text-dim: #9a9aab;
    --gradient-start: #7B2D8E;
    --gradient-end: #9B4DB0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(123, 45, 142, 0.2);
    --shadow: 0 25px 50px -12px rgba(123, 45, 142, 0.15);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Video Background ===== */
/* ===== Threads Background ===== */
.threads-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #0F0518;
    /* Dark purple/black base */
}

.threads-background canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== Navigation ===== */
/* ===== PillNav Styles ===== */
.pill-nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.pill-nav {
    --nav-h: 50px;
    --logo: 42px;
    --pill-pad-x: 20px;
    --pill-gap: 4px;
    /* Custom Colors */
    --base: #ffffff;
    --pill-bg: #060010;
    --hover-text: #060010;
    --pill-text: #ffffff;

    width: max-content;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pill-nav-items {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--nav-h);
    background: var(--base);
    /* White background for items container */
    border-radius: 9999px;
    padding: 4px;
}

.pill-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-h);
    padding: 0 20px;
    background: var(--base);
    border-radius: 9999px;
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
    gap: 8px;
    /* Add gap between logo and text */
}

.pill-logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.pill-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--pill-gap);
    margin: 0;
    padding: 0;
    height: 100%;
}

.pill-list>li {
    display: flex;
    height: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 var(--pill-pad-x);
    background: transparent;
    color: #000;
    /* Text on white background */
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.pill:hover {
    color: #fff;
    /* Text color on hover (black pill bg) */
}

/* The circle that expands on hover */
.hover-circle {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 10px;
    /* JS will set this */
    height: 10px;
    /* JS will set this */
    border-radius: 50%;
    background: #000;
    /* Black hover circle */
    z-index: 1;
    pointer-events: none;
    transform: translate(-50%, 50%) scale(0);
    /* Hidden initially */
}

.label-stack {
    position: relative;
    z-index: 2;
}

.pill-label {
    display: block;
}

.pill-label-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    opacity: 0;
}

/* Mobile Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: var(--base);
    border: none;
    width: var(--nav-h);
    height: var(--nav-h);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: #000;
    border-radius: 2px;
}

/* Mobile Menu Popover */
.mobile-menu-popover {
    position: absolute;
    top: calc(var(--nav-h) + 20px);
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    /* JS toggles visibility */
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-link {
    display: block;
    padding: 12px 20px;
    text-align: center;
    border-radius: 12px;
    color: #000;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .pill-nav-container {
        width: 90%;
        top: 20px;
    }

    .pill-nav {
        width: 100%;
        justify-content: space-between;
    }

    .pill-nav-items:not(.mobile-only) {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: rgba(15, 5, 24, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.2);
}

.navbar.scrolled {
    background: rgba(15, 5, 24, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--secondary) !important;
    border-radius: 30px;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle svg {
    width: 28px;
    height: 28px;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    /* Removed individual shadows to reduce blur */
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Gradient logic moved to span if needed, or simplified */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.italic-purple {
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Use lighter gradient for better contrast on dark background */
    background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Clean drop-shadow instead of muddy text-shadow */
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.4));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 600;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(94, 34, 112, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--secondary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 169, 98, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(225, 29, 72, 0.08);
    border-color: var(--primary);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.85rem;
    animation: scrollBounce 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-6px);
    }

    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* ===== Sections ===== */
.section {
    padding: 120px 24px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 1.1rem;
}

/* ===== About Section ===== */
.about {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.about-card {
    padding: 40px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition);
    cursor: pointer;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 246, 0.95));
    box-shadow: 0 15px 30px -5px rgba(123, 45, 142, 0.15);
}

.about-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    margin-bottom: 24px;
}

.about-icon svg {
    width: 28px;
    height: 28px;
    color: var(--secondary);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.about-card:hover h3::after {
    width: 60px;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: justify;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== Events Section ===== */
.events {
    background: var(--background);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.event-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -5px rgba(123, 45, 142, 0.15);
}

.event-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1), rgba(255, 215, 0, 0.05));
    border-color: rgba(201, 169, 98, 0.3);
}

.event-date {
    min-width: 70px;
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.event-date .logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.event-date .month {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.event-content {
    flex: 1;
}

.event-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 169, 98, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.event-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.event-meta svg {
    width: 16px;
    height: 16px;
}

/* ===== Blog Section ===== */
/* ===== Blog Section ===== */
.blog {
    background: linear-gradient(180deg, #f8f5fc 0%, #ffffff 100%);
    position: relative;
    padding: 100px 0;
}

.blog-category {
    margin-bottom: 60px;
}

.blog-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.flag {
    font-size: 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* Redesigned Blog Card */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.blog-image {
    display: none;
    /* Ensure image container is gone */
}

.blog-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Kicker / Overline Style for Tag */
.blog-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
}

.blog-tag::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    margin-top: 6px;
}

.blog-content h4 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    /* Larger title */
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
}

.blog-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Push meta to bottom */
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.blog-link:hover {
    gap: 10px;
}

.blog-link svg {
    width: 16px;
    height: 16px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.read-time svg {
    width: 14px;
    height: 14px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(201, 169, 98, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

/* ===== Infinite Menu Styles ===== */
#infinite-menu-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    overflow: hidden;
    background: #0F0518;
    /* Matched hero purple */
}

#infinite-grid-menu-canvas {
    cursor: grab;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    outline: none;
    display: block;
}

#infinite-grid-menu-canvas:active {
    cursor: grabbing;
}

.action-button {
    position: absolute;
    left: 50%;
    bottom: 20%;
    /* Adjusted for better visibility */
    z-index: 10;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: #a855f7;
    /* Purple accent */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%) scale(1);
}

.action-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.action-button.active {
    opacity: 1;
    pointer-events: auto;
}

.interaction-tip {
    position: absolute;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
    color: #FACC15;
    /* Yellow */
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    animation: fadeIn 1s ease-out 1s backwards;
    width: 100%;
    z-index: 9;
}

.action-button.inactive {
    transform: translateX(-50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.action-button-icon {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    margin: 0;
}

.face-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #fff;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 80%;
}

.face-title.active {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.face-title.inactive {
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.face-description {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 600px;
    pointer-events: none;
    width: 90%;
}

.face-description.active {
    opacity: 1;
    transition: opacity 0.5s ease 0.1s;
    /* Slight delay */
}

.face-description.inactive {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Hide old footer top margin if it interferes */
footer {
    position: relative;
    z-index: 10;
}

/* ===== Footer ===== */
.footer {
    background: var(--surface);
    padding: 60px 24px 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .event-card.featured {
        grid-column: span 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: calc(var(--nav-height) + 20px) 20px 80px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .section {
        padding: 80px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .event-card {
        flex-direction: column;
        gap: 16px;
    }

    .event-date {
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
        width: fit-content;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 28px 24px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Logo Styles */
.nav-logo,
.sidebar-logo {
    display: flex;
    align-items: center;
}

.nav-logo img,
.sidebar-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover img,
.sidebar-logo:hover img {
    transform: scale(1.05);
}

/* Scroll Indicator for Infinite Menu */
.scroll-indicator-menu {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 1s backwards;
}

.scroll-indicator-menu:hover {
    color: #fff;
    transform: translateX(-50%) scale(1.05);
}

.scroll-indicator-menu svg {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

@media (max-width: 768px) {
    .scroll-indicator-menu {
        bottom: 80px;
        /* Higher on mobile */
    }

    /* Move action button and tip up on mobile to avoid overlap */
    .action-button {
        bottom: 28% !important;
    }

    .interaction-tip {
        bottom: 22% !important;
    }
}