/* ===============================================
   ONYX NIGHTCLUB - MAIN STYLESHEET
   =============================================== */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --purple: #8d06f6;
    --purple-hover: #7a05dd;
    --dark-card: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background-color: var(--black);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===============================================
   HEADER
   =============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    z-index: 1000;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.4s ease, border-color 0.4s ease;
    transform: translateZ(0);
    will-change: background-color;
    -webkit-transform: translateZ(0);
}

.header.white-bg {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header.white-bg .nav-links a {
    color: #000000;
}

.header.white-bg .nav-links a:hover {
    color: var(--purple);
}

.header.white-bg .hamburger span {
    background-color: #000000;
}

.logo {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--purple);
}

.nav-links a::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.social-links {
    display: none;
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    height: 100vh;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(141, 6, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(141, 6, 246, 0.08) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    z-index: 10;
    animation: fadeInUp 1.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

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

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--white);
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-transform: uppercase;
}

.hero-title-line1 {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 6px;
}

.hero-title-line2 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 12px;
}

/* ===============================================
   EVENTS SECTION
   =============================================== */

.events-section {
    background-color: var(--white);
    color: var(--black);
    padding: 6rem 5%;
}

.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.event-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.6s ease;
}

.event-image:hover {
    opacity: 0.9;
}

.event-image:hover img {
    transform: scale(1.05);
}

.event-info {
    padding: 0;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.6rem;
    align-items: center;
    text-align: center;
}

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

.event-title {
    font-size: 2.5rem;
    color: var(--black);
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin: 0;
}

.event-description {
    font-size: 0.95rem;
    color: var(--black);
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.event-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
    align-items: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    width: auto;
}

.btn-tickets {
    background-color: var(--purple);
    color: var(--white);
}

.btn-tickets:hover {
    background-color: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(141, 6, 246, 0.4);
}

.btn-table {
    background-color: var(--purple);
    color: var(--white);
}

.btn-table:hover {
    background-color: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(141, 6, 246, 0.4);
}

/* ===============================================
   GALLERY SECTION
   =============================================== */

.gallery-section {
    background-color: var(--black);
    padding: 6rem 5%;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
}

.gallery-title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gallery-title-container .section-title {
    writing-mode: horizontal-tb;
    text-align: left;
    margin: 0;
    color: var(--white);
}

.gallery-images-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gradient overlay for side images */
.gallery-item:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

.gallery-item:last-child::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

.gallery-viewport {
    display: none;
}

.gallery-track {
    display: none;
}

.gallery-arrow {
    display: none;
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    background-color: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 5%;
}

.footer-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--purple);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

.footer-social a:hover {
    color: var(--purple);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 30px;
    height: 30px;
}

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

/* ===============================================
   RESPONSIVE DESIGN - MOBILE
   =============================================== */

@media (max-width: 968px) {
    .header {
        position: fixed;
        justify-content: center;
        padding: 0.6rem 5%;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        height: 35px;
    }

    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

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

    .hero-title-line1 {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .hero-title-line2 {
        font-size: 3rem;
        letter-spacing: 8px;
    }

    .nav-links {
        position: fixed;
        top: calc(0.8rem * 2 + 35px);
        left: 0;
        right: 0;
        width: 100%;
        height: 0;
        max-height: 0;
        background-color: #000000;
        flex-direction: column;
        padding: 0;
        transition: height 0.4s ease-in-out, max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        border-bottom: 0px solid rgba(255, 255, 255, 0.1);
        align-items: center;
        overflow: hidden;
        z-index: 998;
        display: flex;
        opacity: 1;
    }

    .nav-links.active {
        height: auto;
        max-height: 80vh;
        padding: 2rem 2rem 3rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
    }

    .header.white-bg .nav-links {
        background-color: #ffffff;
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    .header.white-bg .nav-links.active {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }

    .social-links a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--white);
        text-decoration: none;
    }

    .hero-logo {
        max-width: 300px;
        width: 70%;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0;
    }

    .event-card {
        width: 100%;
        margin: 0;
    }

    .event-image {
        width: 100%;
        margin: 0;
    }

    /* Mobile: Images are grayscale by default on mobile only */
    .event-image img {
        filter: grayscale(100%);
        -webkit-filter: grayscale(100%);
    }

    /* When touched, show color */
    .event-image.touched img {
        filter: grayscale(0%) !important;
        -webkit-filter: grayscale(0%) !important;
    }

    .section-title {
        font-size: 3rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .gallery-title-container {
        justify-content: center;
    }

    .gallery-title-container .section-title {
        text-align: center;
    }

    /* Mobile Gallery: Single image with arrows */
    .gallery-images-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        position: relative;
    }

    .gallery-item {
        display: none;
    }

    .gallery-item.active {
        display: block;
        width: 100%;
        max-width: 500px;
    }

    .gallery-arrow-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--white);
        font-size: 2.5rem;
        cursor: pointer;
        padding: 1rem;
        transition: var(--transition);
        z-index: 10;
    }

    .gallery-arrow-mobile:hover,
    .gallery-arrow-mobile:active {
        color: var(--purple);
        transform: scale(1.2);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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