@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Libre Franklin';
    src: url('../assets/fonts/librefranklin-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Libre Franklin';
    src: url('../assets/fonts/librefranklin-900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    /* 2026 Palette */
    --color-bg-main: #c2bdda;
    --color-brand-purple: #5f2c82;
    --color-rave-main: #76b900;
    --color-lauf-main: #ff8200;
    --color-family-secondary: #fdfc00;
    --color-rave-primary: #38e51e;
    --color-rave-magenta: #f432a0;
    
    /* System & Helpers */
    --color-bg-dark: #000000;
    --color-text-white: #ffffff;
    --color-text-dark: #000000;
    
    /* Legacy/Derived (Keeping for compatibility) */
    --color-rave-secondary: var(--color-rave-main);
    --color-lauf-primary: var(--color-lauf-main);
    --color-family-primary: var(--color-family-secondary);
    
    --font-primary: 'Libre Franklin', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg-main);
    color: var(--color-brand-purple);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-text-white);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; /* Fixed height for consistency */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(95, 44, 130, 0.95); /* Slightly more opaque */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-speed);
}

.logo a img {
    height: 50px; /* Slightly smaller to accommodate text */
    width: auto;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--color-text-white);
}

.logo a:hover {
    transform: scale(1.02);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-list li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-white);
    transition: color var(--transition-speed);
}

.nav-list li a:hover {
    color: var(--color-lauf-primary);
}

.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px; /* Better hit area */
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background-color: var(--color-text-white);
    transition: var(--transition-speed);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px; /* Exactly matching header height */
    left: 0;
    width: 100%;
    background-color: rgba(95, 44, 130, 0.98); /* Matching header brand purple */
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-list li a {
    color: var(--color-text-white);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* Hero Section */
.hero-container {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero-top {
    height: 60vh;
    min-height: 500px;
    display: flex;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Offset for the fixed header */
}

/* Diagonal Split Logic for Top Hero */
.hero-split {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: flex var(--transition-speed) ease;
}

.hero-split:hover {
    flex: 1.2;
}

/* Rave Section Styling */
.rave {
    position: relative;
    clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, 0% 100%);
    margin-right: -100px;
    z-index: 2;
    overflow: hidden;
}

.rave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/images/rave-bg.webp') no-repeat center/cover;
    background-color: #000;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.rave:hover::before {
    transform: scale(1.08);
}

/* Family Section Styling */
.family {
    position: relative;
    clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
    overflow: hidden;
}

.family::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,215,0,0.3), rgba(255,215,0,0.3)), url('../assets/images/family-bg.webp') no-repeat center/cover;
    background-color: #ffd700;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.family:hover::before {
    transform: scale(1.08);
}

.hero-bottom {
    height: 50vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

/* Lauf Section Styling */
.lauf {
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lauf::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../assets/images/lauf-bg.webp') no-repeat center/cover;
    background-color: var(--color-lauf-primary);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.lauf:hover::before {
    transform: scale(1.08);
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 1rem;
    position: relative; /* Ensure it respects z-index */
}

.hero-content .btn {
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
    line-height: 1;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-secondary);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    color: var(--color-text-white);
}

.hero-event-info {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    letter-spacing: 0.05em;
    color: var(--color-text-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.btn-rave {
    background-color: var(--color-rave-primary);
    color: black;
    border: 2px solid var(--color-rave-primary);
    box-shadow: 0 0 10px var(--color-rave-primary);
}

.btn-rave:hover {
    background-color: var(--color-rave-magenta);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px var(--color-rave-magenta), 0 0 40px var(--color-rave-magenta);
    transform: scale(1.05);
}

.btn-family {
    background-color: var(--color-family-primary);
    color: black;
    border: 2px solid var(--color-family-primary);
    box-shadow: 0 0 10px var(--color-family-primary);
}

.btn-family:hover {
    background-color: white;
    color: black;
    border-color: white;
    box-shadow: 0 0 20px var(--color-family-primary), 0 0 40px var(--color-family-primary);
    transform: scale(1.05);
}

.btn-lauf {
    background-color: var(--color-lauf-primary);
    color: white;
    border: 2px solid var(--color-lauf-primary);
    box-shadow: 0 0 10px var(--color-lauf-primary);
}

.btn-lauf:hover {
    background-color: white;
    color: var(--color-lauf-primary);
    border-color: white;
    box-shadow: 0 0 20px var(--color-lauf-primary), 0 0 40px var(--color-lauf-primary);
    transform: scale(1.05);
}

.btn-outline-family {
    background: transparent;
    color: var(--color-brand-purple);
    border: 2px solid var(--color-brand-purple);
}

.btn-outline-family:hover {
    background: var(--color-brand-purple);
    color: #fff;
    border-color: var(--color-brand-purple);
    box-shadow: 0 0 20px var(--color-brand-purple), 0 0 40px var(--color-brand-purple);
    transform: scale(1.05);
}

.hero-lauf .btn-outline-family {
    color: #ffffff;
    border-color: #ffffff;
}

.hero-lauf .btn-outline-family:hover {
    background: var(--color-lauf-primary);
    border-color: var(--color-lauf-primary);
    color: #ffffff;
    box-shadow: 0 0 20px var(--color-lauf-primary), 0 0 40px var(--color-lauf-primary);
}

/* Instagram Section */
.instagram-cta {
    height: 35vh;
    background-color: var(--color-bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.instagram-content {
    max-width: 800px;
}

.instagram-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-brand-purple);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.btn-instagram:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.6);
}

/* Countdown */
.countdown-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--color-brand-purple);
    color: var(--color-text-white);
}

.countdown-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-text-white);
}

@media (max-width: 768px) {
    .section-title-family {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span:first-child {
    font-size: 3rem;
    font-weight: 900;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--color-family-primary);
}

.time-unit .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.event-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #eee;
    font-family: var(--font-secondary);
}

.event-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.event-name {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-rave-magenta);
    text-transform: uppercase;
    font-size: 1.2rem;
}

.event-date {
    font-weight: 700;
    color: white;
}

.event-time {
    font-size: 0.9rem;
}

.event-divider {
    font-size: 1.5rem;
    color: var(--color-sport-primary);
}

.event-location {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-transform: uppercase;
}

/* Updated Countdown Date helper */
.event-date-footer {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #ccc;
}

/* Family Hero Slideshow */
.family-hero-slideshow {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slide-fade 40s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }
.slide:nth-child(4) { animation-delay: 24s; }
.slide:nth-child(5) { animation-delay: 32s; }

@keyframes slide-fade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 0.4; }
    20% { opacity: 0.4; }
    25% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.family-hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* About Section Header Clearance */
.about-section {
    padding: 140px 2rem 6rem; /* Increased top padding */
    background-color: var(--color-bg-main);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon-container {
    width: 250px;
    height: 250px;
    background-color: rgba(95, 44, 130, 0.05);
    border: 3px solid var(--color-brand-purple);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: var(--color-brand-purple);
    box-shadow: 0 0 15px rgba(95, 44, 130, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-icon-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(95, 44, 130, 0.3);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-brand-purple);
}

.about-text p {
    line-height: 1.6;
    color: var(--color-brand-purple);
    font-weight: 500;
}

/* Social Feed */
.social-feed {
    min-height: 45vh;
    height: auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.social-feed .section-title {
    color: var(--color-brand-purple);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-brand-purple);
    max-width: 800px;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Community Image Reel */
.reel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
}

.reel-viewport {
    overflow: hidden;
    width: 100%;
}

.reel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease-in-out;
}

.feed-item {
    flex: 0 0 calc(33.333% - 1rem); /* 3 items visible at once */
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    height: auto;
}

.feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.reel-btn {
    background: var(--color-brand-purple);
    border: 2px solid var(--color-rave-magenta);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.reel-btn:hover {
    background: var(--color-rave-magenta);
    box-shadow: 0 0 15px var(--color-rave-magenta);
}

@media (max-width: 992px) {
    .feed-item {
        flex: 0 0 calc(50% - 0.75rem); /* 2 items visible */
    }
}

@media (max-width: 600px) {
    .feed-item {
        flex: 0 0 100%; /* 1 item visible */
    }
    .reel-container {
        padding: 0 1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--color-text-dark);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--color-text-white);
}

.footer-left h3 {
    color: var(--color-text-white);
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--color-rave-magenta);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .hero-container {
        height: auto;
        display: block;
    }

    .hero-top, .hero-bottom {
        height: auto;
        display: block;
        padding-top: 0;
    }

    .hero-container {
        padding-top: 80px; /* Header offset only once at the top */
    }

    .hero-split, .hero-full {
        width: 100%;
        height: auto;
        min-height: 40vh;
        padding: 4rem 1rem; /* Balanced top/bottom padding */
        clip-path: none;
        margin-right: 0;
    }
    }

    @media (max-width: 480px) {
    .header {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo a img {
        height: 40px;
    }

    .logo a {
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .time-unit span:first-child {
        font-size: 2rem;
    }

    .social-icon {
        font-size: 2rem;
        margin-left: 1.5rem;
    }

    .footer {
        padding: 2rem 1.5rem; /* Balanced padding */
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Community Reel Mobile Fixes */
    .reel-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    .reel-btn {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    .feed-item {
        flex: 0 0 100%; /* Show one full item at a time */
        scroll-snap-align: center;
    }
    .reel-viewport {
        scroll-snap-type: x mandatory;
    }
}

/* Global Hero Section */
.hero-main {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}

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

.hero-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 80px 2rem 0;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    display: block;
    font-size: 0.4em; /* Relative to H1 size */
    font-weight: 400;
    font-family: var(--font-secondary);
    margin-top: 0.5rem;
    text-shadow: none !important;
}

.hero-description {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero-facts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    font-weight: 700;
}

.hero-facts span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Modifiers */

/* --- RAVE --- */
.hero-rave {
    color: var(--color-text-white);
}

.hero-rave::after {
    background: linear-gradient(to bottom, rgba(95, 44, 130, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-rave h1 {
    color: var(--color-rave-primary);
    text-shadow: 3px 3px 0px var(--color-rave-magenta);
}

.hero-rave .hero-description {
    color: var(--color-text-white);
}

.hero-rave .hero-facts {
    color: var(--color-rave-primary);
}

/* --- FAMILY --- */
.hero-family {
    background: #fff;
    color: var(--color-brand-purple);
}

.hero-family::after {
    background: rgba(255, 255, 255, 0.4);
}

.hero-family h1 {
    color: var(--color-brand-purple);
    text-shadow: 3px 3px 0px var(--color-family-secondary);
}

.hero-family .hero-description,
.hero-family .hero-facts {
    color: var(--color-brand-purple);
}

/* --- LAUF --- */
.hero-lauf {
    background: var(--color-bg-main);
    color: #ffffff;
}

.hero-lauf::after {
    background: linear-gradient(135deg, rgba(95, 44, 130, 0.8) 0%, rgba(255, 130, 0, 0.4) 100%);
}

.hero-lauf h1 {
    color: #ffffff;
    text-shadow: 3px 3px 0px var(--color-lauf-primary);
}

.hero-lauf .hero-description {
    color: #ffffff;
    font-weight: 700;
}

.hero-lauf .hero-facts {
    color: #ffffff;
    display: inline-flex;
}

/* Page Specific Content Containers */
.family-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Slideshow remains page specific but uses the new container */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slide-fade 40s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }
.slide:nth-child(4) { animation-delay: 24s; }
.slide:nth-child(5) { animation-delay: 32s; }

@keyframes slide-fade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 0.4; }
    20% { opacity: 0.4; }
    25% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
    }
    .hero-facts {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .hero-subtitle {
        font-size: 0.6em;
    }
}

/* Section Gradients & Transitions */
.bg-gradient-white-main {
    background: linear-gradient(to bottom, #ffffff, var(--color-bg-main));
}

.bg-gradient-main-white {
    background: linear-gradient(to bottom, var(--color-bg-main), #ffffff);
}

/* Program Section */
.family-program {
    padding: 8rem 0;
}
.section-title-family {
    text-align: center;
    color: var(--color-brand-purple);
    font-family: var(--font-primary);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
    text-transform: uppercase;
    font-weight: 900;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-tile {
    background: var(--color-bg-main);
    padding: 3rem 2rem;
    border-radius: 30px; /* Rounded corners */
    text-align: center;
    transition: transform 0.3s ease;
}

.program-tile:hover {
    transform: translateY(-10px);
}

.tile-icon {
    font-size: 3rem;
    color: var(--color-family-secondary);
    margin-bottom: 1.5rem;
    background: var(--color-brand-purple);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.program-tile h3 {
    color: var(--color-brand-purple);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
}

.program-tile p {
    color: var(--color-brand-purple);
    font-weight: 500;
    line-height: 1.4;
}

/* Info Section */
.family-info {
    padding: 8rem 0;
}

.info-content {
    background: #fff;
    padding: 5rem 3rem;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(95, 44, 130, 0.05);
}

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

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--color-brand-purple);
    margin-bottom: 1.5rem;
}

.info-item h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-brand-purple);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.info-item p {
    color: var(--color-brand-purple);
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 768px) {
    .family-hero-btns {
        flex-direction: column;
    }
    .family-facts-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* About Section (The "Why") */
.family-about {
    padding: 8rem 0;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text-block {
    background: var(--color-bg-main);
    padding: 4rem;
    border-radius: 40px;
    color: var(--color-brand-purple);
}

.about-text-block h2 {
    color: var(--color-brand-purple);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-text-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.about-philosophy {
    color: var(--color-brand-purple);
}

.about-philosophy h3 {
    color: var(--color-brand-purple);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.philosophy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.philosophy-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.philosophy-icon {
    font-size: 1.5rem;
    color: var(--color-family-secondary);
    background: var(--color-brand-purple);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.philosophy-text h4 {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.philosophy-text p {
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text-block {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .family-about {
        padding: 4rem 0;
    }
    
    .about-text-block {
        padding: 2rem 1.5rem;
        border-radius: 25px;
    }

    .about-text-block h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Rave Page Specific Styles */
.rave-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.rave-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8; /* Let some purple through from the background */
}

.glitch-text {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-rave-primary);
    text-shadow: 3px 3px 0px var(--color-rave-magenta);
}

.btn-outline-rave {
    background: transparent;
    color: var(--color-rave-primary);
    border: 2px solid var(--color-rave-primary);
}

.btn-outline-rave:hover {
    background: var(--color-rave-primary);
    color: black;
    box-shadow: 0 0 20px var(--color-rave-primary);
}

/* Mission Section */
.rave-mission {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #1a0b2e, #2d134d);
    color: var(--color-text-white);
}

.mission-text {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 3rem;
    border-left: 5px solid var(--color-rave-magenta);
    padding-left: 2rem;
}

.dkms-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-rave-magenta);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Line-Up Section */
.rave-lineup {
    padding: 6rem 0;
    background: #2d134d;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.artist-card {
    position: relative;
    aspect-ratio: 1;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.artist-card::after {
    content: '\f05a'; /* FontAwesome Info Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 3rem;
    color: var(--color-rave-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.artist-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.artist-card:hover {
    border-color: var(--color-rave-primary);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(56, 229, 30, 0.3);
}

.artist-card:hover .artist-info {
    opacity: 0.3;
    filter: blur(2px);
}

.artist-info {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    transition: all 0.3s ease;
}

.artist-more {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.artist-more:hover {
    border-style: solid;
    background: rgba(255, 255, 255, 0.05);
}

.artist-more h3 {
    color: var(--color-text-white);
    opacity: 0.5;
}

.artist-info h3 {
    font-size: 1.5rem;
    color: var(--color-rave-primary);
    margin-bottom: 0.2rem;
}

.artist-info p {
    color: var(--color-text-white);
    opacity: 0.7;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Hard Facts Section */
.rave-facts {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #2d134d, #1a0b2e);
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.facts-list {
    list-style: none;
    margin-top: 2rem;
}

.facts-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    color: var(--color-text-white);
    display: flex;
}

.facts-list li .label {
    color: var(--color-rave-primary);
    font-weight: 700;
    width: 120px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .facts-list li {
        font-size: 1.1rem;
    }
    .facts-list li .label {
        width: 100px;
    }
}

/* DJ Modal */
.dj-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dj-modal.active {
    display: flex;
}

.dj-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.dj-modal-content {
    position: relative;
    background: #1a0b2e;
    width: 100%;
    max-width: 900px;
    border: 2px solid var(--color-rave-primary);
    border-radius: 20px;
    overflow: hidden;
    animation: modal-appear 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modal-appear {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dj-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-rave-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dj-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--color-rave-magenta);
    color: white;
}

.dj-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 400px;
}

.dj-modal-image {
    background-size: cover;
    background-position: center;
}

.dj-modal-text {
    padding: 3rem;
    color: white;
}

.dj-modal-text h2 {
    color: var(--color-rave-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px var(--color-rave-magenta);
}

.dj-modal-text p {
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .dj-modal {
        padding: 1rem;
    }
    
    .dj-modal-body {
        grid-template-columns: 1fr;
    }
    
    .dj-modal-image {
        height: 250px;
    }
    
    .dj-modal-text {
        padding: 2rem;
    }
    
    .dj-modal-text h2 {
        font-size: 1.8rem;
    }
}

/* Community Section */
.rave-community {
    padding: 6rem 0;
    background: #1a0b2e;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.community-card {
    background: #1a0b2e;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--color-rave-magenta);
}

.community-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-white);
}

.community-card p {
    color: var(--color-text-white);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
    }
    
    .facts-grid, .community-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-text {
        font-size: 1.4rem;
    }
}
