@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-dark: #000000;
    --bg-light: #ffffff;
    --text-light: #ffffff;
    --text-dark: #000000;
    --border-light: #ffffff;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease-in-out;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Layout Sections */
section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero {
    justify-content: center;
    padding-top: 80px;
    background: var(--bg-dark);
}

.previous-events {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 5%;
    min-height: auto;
}

/* Navigation Bar */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    width: 100%;
    padding: 0 10px;
}

.nav-btn {
    flex: 1;
    max-width: 250px;
    padding: 15px 10px;
    border: 2px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-btn.large {
    flex: 1.5;
    font-size: 2rem;
}

/* Instagram Link */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Timeline */
.timeline {
    margin: 100px 0;
    width: 100%;
}

.timeline-year {
    font-size: 6rem;
    font-weight: 900;
    margin-top: 10px;
}

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

.timeline-item {
    text-align: center;
    padding-bottom: 60px;
    margin-bottom: 60px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #222;
    margin: 0 auto 20px;
    border: 3px solid white;
    overflow: hidden;
    position: relative;
}

.timeline-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    pointer-events: none;
    flex-wrap: wrap; 
}

@media (max-width: 768px) {
    header {
        position: absolute !important;
        padding: 15px 20px;
    }
}

/* Hamburger Icon */
.hamburger {
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: all;
    z-index: 2100;
    mix-blend-mode: difference; /* Ensure visibility on any background */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Logos in Header */
.main-logo {
    pointer-events: all;
    margin-left: 20px;
}

.main-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.main-logo img:hover {
    transform: scale(1.05);
}

/* Afterparty Logo/Trigger positioning */
.afterparty-trigger, .header-afterparty-logo {
    position: absolute;
    right: 40px;
    top: 30px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    z-index: 2500;
    pointer-events: all;
}

.afterparty-trigger img, .header-afterparty-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

body.afterparty-page .header-afterparty-logo {
    display: block;
}

/* Side Menu Overlay */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2050;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: scale(1.1);
    color: #ff4d4d;
}

.side-menu.active {
    left: 0;
}

.side-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.side-menu a:hover {
    color: #00A3E1; /* Daxo blue tint color */
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2040;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Character Container */
.daxo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5vw;
    width: 95%;
    max-width: 1400px;
    margin-bottom: 50px;
}

.char {
    height: 12vw;
    max-height: 250px;
    transition: transform var(--transition-fast);
    animation: float 3s ease-in-out infinite;
}

.char:nth-child(2) { animation-delay: 0.5s; }
.char:nth-child(4) { animation-delay: 1s; }
.char:nth-child(5) { animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.char:hover {
    transform: scale(1.1) rotate(5deg) !important;
}

/* Blob Video Frame */
.video-frame {
    width: 25vw;
    height: 25vw;
    max-width: 400px;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    clip-path: url(#blob-mask);
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: sepia(0.2) contrast(1.1) brightness(0.9);
}

.video-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-ap-video {
    width: 30vw;
    height: 30vw;
    max-width: 450px;
    max-height: 450px;
    margin-bottom: 40px;
    border: 4px solid white;
}

.vintage-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/black-linen.png");
    opacity: 0.15;
    pointer-events: none;
    z-index: 3;
    animation: noise 0.2s infinite;
}

@keyframes noise {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,10%) }
    80% { transform: translate(-15%,0) }
    90% { transform: translate(10%,5%) }
    100% { transform: translate(5%,0) }
}

/* Buttons */
.button-container {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.btn {
    border: 3px solid var(--border-light);
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-light);
    background: transparent;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    cursor: pointer;
}

.btn.large {
    font-size: 3rem;
    padding: 20px 80px;
}

.btn:hover {
    background: var(--bg-light);
    color: var(--bg-dark);
}

/* Previous Events Section */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 50px;
    width: 100%;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
}

.event-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-info {
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: transparent;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Afterparty Button */
.afterparty-trigger {
    position: fixed;
    top: 25px; /* Aligned with header padding */
    right: 40px; /* Aligned with desktop header padding */
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    z-index: 2500; /* Above everything */
}

.afterparty-trigger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

/* Partnership Branding in Event Cards */
.event-partnership {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partnership-text {
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    color: #888;
    text-transform: uppercase;
}

.partnership-logo img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partnership-logo img:hover {
    opacity: 1;
}

.afterparty-trigger:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    width: 100%;
    padding: 60px 5% 40px;
    background: var(--bg-light);
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.footer-info p {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.footer-rights {
    font-size: 0.7rem;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        position: absolute !important;
        padding: 15px 20px;
        flex-wrap: nowrap; /* Prevent wrapping so we can position trigger absolute */
    }

    .hamburger {
        order: 1;
    }

    .main-logo {
        order: 2;
        margin-left: 10px;
    }

    .afterparty-trigger, .header-afterparty-logo {
        position: absolute !important;
        top: 15px;
        right: 15px;
        width: 55px !important;
        height: 55px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 0 !important;
        z-index: 2501;
    }

    .afterparty-trigger img, .header-afterparty-logo img {
        height: 100% !important;
        width: 100% !important;
        border-radius: 50%;
        object-fit: contain;
    }

    .hero {
        padding-top: 120px;
    }

    .daxo-container {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .char-group {
        display: flex;
        gap: 15px;
        justify-content: center;
        width: 100%;
    }

    .char {
        height: 22vw;
        max-height: 100px;
    }

    .video-frame {
        width: 85vw;
        height: 85vw;
        order: -1;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
    }

    .nav-btn {
        width: 90%;
        font-size: 1.1rem;
        padding: 10px;
    }

    .nav-btn.large {
        font-size: 1.4rem;
    }

    .button-container {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: -1px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    .afterparty-title {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

/* Video Modal Styling */
#videoModal {
    backdrop-filter: blur(10px);
}

#videoModal span:hover {
    color: #ff4d4d;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Back Link Styling */
.back-link:hover {
    background: white;
    color: black;
    border-color: black;
}
/* Contact Page & Form Styling */
.contact-section {
    padding: 120px 5% 80px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: -2px;
    text-align: center;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-footer {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    width: 100%;
}

.contact-footer p {
    color: #888;
    margin-bottom: 10px;
}

.direct-email {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.direct-email:hover {
    color: #00A3E1;
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 3rem;
    }
    
    .contact-section {
        padding-top: 100px;
    }
}
