/* Performance: Use CSS custom properties for better performance */
:root {
    --gold: #D4A853;
    --gold-light: #E8C97A;
    --gold-dark: #A67C2E;
    --black: #0A0A0A;
    --black-light: #141414;
    --white: #F5F5F5;
    --white-muted: rgba(245, 245, 245, 0.6);
}

/* Performance: Reset and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.sound-waves {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 80px;
    margin-bottom: 32px;
}

.wave {
    width: 6px;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    border-radius: 10px;
    animation: wave-pulse 1.2s ease-in-out infinite;
}

.wave:nth-child(1) {
    animation-delay: 0s;
}

.wave:nth-child(2) {
    animation-delay: 0.1s;
}

.wave:nth-child(3) {
    animation-delay: 0.2s;
}

.wave:nth-child(4) {
    animation-delay: 0.3s;
}

.wave:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave-pulse {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 80px;
    }
}

.splash-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-in-text 1s ease forwards;
}

@keyframes fade-in-text {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* Audio Player */
.audio-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    border: 1px solid rgba(212, 168, 83, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
    overflow: hidden;
    z-index: 10;
    will-change: transform;
}

.audio-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 168, 83, 0.5);
}

.audio-toggle:hover::before {
    opacity: 1;
}

.audio-toggle:active {
    transform: scale(0.95);
}

.audio-icon {
    width: 24px;
    height: 24px;
    stroke: var(--black);
    transition: all 0.3s ease;
}

.audio-icon.hidden {
    display: none;
}

.audio-waves {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 24px;
}

.audio-wave {
    width: 3px;
    background: var(--black);
    border-radius: 10px;
    animation: audio-wave-pulse 0.8s ease-in-out infinite;
}

.audio-wave:nth-child(1) {
    animation-delay: 0s;
}

.audio-wave:nth-child(2) {
    animation-delay: 0.2s;
}

.audio-wave:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes audio-wave-pulse {
    0%, 100% {
        height: 8px;
    }
    50% {
        height: 24px;
    }
}

.audio-waves.paused .audio-wave {
    animation: none;
    height: 8px;
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 60px;
    position: relative;
}

.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}

.every-friday {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.friday-white {
    color: var(--white);
}

.event-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.2;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
    padding-bottom: 0.2em;
    overflow: visible;
}

.event-title::after {
    content: 'FAAJI';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(40px);
    opacity: 0.5;
    z-index: -1;
}

.countdown {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.7s;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
}

.countdown-divider {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
    margin-top: 4px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 48px;
    margin-top: 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.9s;
    align-self: flex-start;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(212, 168, 83, 0.3);
}

.cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

.hero-flyer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

.flyer-frame {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
    background: var(--black-light);
    border: 1px solid rgba(212, 168, 83, 0.2);
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
}

.flyer-frame:hover {
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: 0 0 80px rgba(212, 168, 83, 0.15);
}

.flyer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slow-zoom 8s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes slow-zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.flyer-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
}

.flyer-placeholder-icon {
    width: 48px;
    height: 48px;
    stroke: var(--gold);
    opacity: 0.4;
    margin-bottom: 12px;
}

.flyer-placeholder-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--white-muted);
}

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

.location-section {
    padding: 80px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(212, 168, 83, 0.1);
}

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

.location-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
}

.venue-address {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--white-muted);
    line-height: 1.6;
}

.footer-text {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--white-muted);
}

/* Mobile location and CTA - hidden on desktop */
.mobile-location {
    display: none;
}

.mobile-cta {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 30px 24px;
        gap: 30px;
        min-height: 100vh;
    }

    .hero-info {
        padding-right: 0;
        text-align: center;
        align-items: center;
        order: 1;
    }

    /* Hide desktop CTA button on mobile */
    .hero-info .cta-button {
        display: none;
    }

    .hero-flyer {
        order: 2;
    }

    .flyer-frame {
        max-width: 280px;
        max-height: 350px;
    }

    .event-title {
        font-size: clamp(3.5rem, 15vw, 5rem);
    }

    .countdown {
        justify-content: center;
        gap: 16px;
        margin-top: 24px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-divider {
        font-size: 1.5rem;
    }

    /* Show mobile location under flyer */
    .mobile-location {
        display: block;
        text-align: center;
        margin-top: 8px;
    }

    /* Show mobile CTA button */
    .mobile-cta {
        display: inline-flex;
        align-self: center;
        padding: 18px 40px;
    }

    /* Hide desktop location section on mobile */
    .location-section {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 20px;
    }

    .flyer-frame {
        max-width: 240px;
        max-height: 300px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.5rem;
    }

    .audio-toggle {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
    }

    .audio-icon {
        width: 20px;
        height: 20px;
    }
}