/* ---------------------------------- */
/* TABLE OF CONTENTS         */
/* ---------------------------------- */
/*
1.  RESET & ROOT VARIABLES
2.  BASE & TYPOGRAPHY
3.  LAYOUT & HELPERS
4.  HEADER & NAVIGATION
5.  HERO SECTION
6.  FEATURED WORK
7.  SERVICES SECTION
8.  ABOUT SECTION & CLIENT LOGOS
9.  TESTIMONIALS
10. CONTACT SECTION
11. FOOTER
12. EVENT PAGES (HUB & INDIVIDUAL)
13. GALLERY & LIGHTBOX MODAL
14. ANIMATIONS & TRANSITIONS
15. MEDIA QUERIES
*/


/* ---------------------------------- */
/* 1. RESET & ROOT VARIABLES       */
/* ---------------------------------- */
:root {
    /* Color Palette */
    --bg: #0A0A0A;
    --text: #F5F5F5;
    --muted: #BDBDBD;
    --line: #1A1A1A;
    --accent: #FFFFFF;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --fs-base: 16px;
    --lh-base: 1.6;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-slow: 0.4s ease-in-out;
}

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

/* ---------------------------------- */
/* 2. BASE & TYPOGRAPHY          */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    font-size: var(--fs-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--lh-base);
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

p {
    margin-bottom: var(--space-4);
    max-width: 65ch;
    color: var(--muted);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------- */
/* 3. LAYOUT & HELPERS           */
/* ---------------------------------- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

.section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-7);
}

.section-title {
    margin-bottom: var(--space-4);
    color: var(--text);
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    border: 1px solid transparent;
}

.btn--primary {
    background-color: var(--accent);
    color: var(--bg);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn--secondary:hover {
    background-color: var(--line);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---------------------------------- */
/* 4. HEADER & NAVIGATION          */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background-color var(--transition-slow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav__logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav__list {
    display: flex;
    gap: var(--space-6);
}

.nav__link {
    font-weight: 600;
    position: relative;
    padding: var(--space-2) 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

/* ---------------------------------- */
/* 5. HERO SECTION             */
/* ---------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.hero__background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.4));
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__content {
    color: var(--accent);
}

.hero__title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-top: var(--space-2);
    margin-bottom: var(--space-6);
    color: var(--muted);
}

.hero__cta {
    margin-top: var(--space-6);
}

/* ---------------------------------- */
/* 6. FEATURED WORK             */
/* ---------------------------------- */
.featured-work {
    padding: var(--space-6) 0;
}

.featured-work__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2);
}

.featured-work__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.featured-work__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-work__item:hover img {
    transform: scale(1.05);
}

.featured-work__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-5);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.featured-work__item:hover .featured-work__overlay {
    opacity: 1;
}

.featured-work__overlay span {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.125rem;
    transform: translateY(10px);
    transition: transform var(--transition-slow);
}

.featured-work__item:hover .featured-work__overlay span {
    transform: translateY(0);
}

/* ---------------------------------- */
/* 7. SERVICES SECTION           */
/* ---------------------------------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.service-card {
    border: 1px solid var(--line);
    padding: var(--space-6);
    border-radius: 4px;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover {
    border-color: var(--muted);
    transform: translateY(-4px);
}

.service-card__title {
    margin-bottom: var(--space-4);
    color: var(--text);
}

.service-card__description {
    margin-bottom: 0;
}

.services__cta {
    text-align: center;
    margin-top: var(--space-7);
}

/* ---------------------------------- */
/* 8. ABOUT SECTION & CLIENT LOGOS    */
/* ---------------------------------- */
.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .about__container {
        grid-template-columns: 1fr 1.5fr;
    }
}

.about__image-wrapper {
    border-radius: 4px;
    overflow: hidden;
}

.about__content .section-title {
    text-align: left;
}

.client-logos {
    padding-top: var(--space-8);
    border-top: 1px solid var(--line);
    margin-top: var(--space-8);
}

.client-logos__title {
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: var(--space-6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.client-logos__grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.client-logo {
    max-height: 30px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.client-logo:hover {
    opacity: 1;
}

/* ---------------------------------- */
/* 9. TESTIMONIALS            */
/* ---------------------------------- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider__wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 var(--space-7);
    text-align: center;
}

.testimonial-slide__text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--space-5);
    color: var(--text);
}

.testimonial-slide__author {
    font-weight: 600;
    color: var(--muted);
}

.testimonial-slider__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-6);
}

.testimonial-slider__button {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.5rem;
}

.testimonial-slider__button:hover {
    background-color: var(--line);
    color: var(--accent);
}

.testimonial-slider__dots {
    display: flex;
    gap: var(--space-3);
    margin: 0 var(--space-5);
}

.testimonial-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--line);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.testimonial-slider__dot--active {
    background-color: var(--muted);
}

/* ---------------------------------- */
/* 10. CONTACT SECTION          */
/* ---------------------------------- */
.contact {
    border-top: 1px solid var(--line);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact__info .section-title {
    text-align: left;
}

.contact__link {
    display: block;
    font-size: 1.25rem;
    margin: var(--space-5) 0;
    font-weight: 600;
}

.contact__socials {
    display: flex;
    gap: var(--space-5);
}

.contact__socials a {
    font-weight: 600;
}

.contact__form .form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
    color: var(--muted);
}

.form-input {
    width: 100%;
    padding: var(--space-3);
    background-color: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--muted);
}

.form-input.invalid {
    border-color: #e74c3c;
}

.form-error-message {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: var(--space-2);
    min-height: 1.2em;
}

.form-success-message {
    margin-top: var(--space-4);
    color: #2ecc71;
}

/* ---------------------------------- */
/* 11. FOOTER               */
/* ---------------------------------- */
.footer {
    padding: var(--space-7) 0;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__logo {
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: var(--space-2);
}

.footer__right {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

@media (min-width: 768px) {
    .footer__right {
        flex-direction: row;
        align-items: center;
        gap: var(--space-7);
    }
}

.footer__nav {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
}

.footer__socials {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
}

/* ---------------------------------- */
/* 12. EVENT PAGES (HUB & INDIVIDUAL) */
/* ---------------------------------- */
.page-header {
    padding: 120px 0 var(--space-8);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.events-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    color: var(--accent);
    display: block;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.event-card__content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-card__title {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
}

.event-card__description {
    color: var(--muted);
    margin: 0;
}

.breadcrumbs {
    margin-bottom: var(--space-6);
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: var(--text);
}

.event-page__cta {
    text-align: center;
    padding: var(--space-8) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.event-page__nav {
    display: flex;
    justify-content: space-between;
    padding: var(--space-6) 0;
}

.event-page__nav a {
    font-weight: 600;
}

/* ---------------------------------- */
/* 13. GALLERY & LIGHTBOX MODAL     */
/* ---------------------------------- */
.gallery-grid {
    --gap: var(--space-4);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap);
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    transition: transform var(--transition-slow);
}

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

.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: var(--space-4);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    color: var(--accent);
}

.lightbox__close {
    top: var(--space-4);
    right: var(--space-4);
}

.lightbox__prev {
    top: 50%;
    left: var(--space-4);
    transform: translateY(-50%);
}

.lightbox__next {
    top: 50%;
    right: var(--space-4);
    transform: translateY(-50%);
}

/* ---------------------------------- */
/* 14. ANIMATIONS & TRANSITIONS     */
/* ---------------------------------- */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}
.fade-in--delay1 { animation-delay: 0.2s; }
.fade-in--delay2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------- */
/* 15. MEDIA QUERIES           */
/* ---------------------------------- */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg);
        transition: right var(--transition-slow);
        padding: var(--space-7);
    }
    
    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-7);
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__toggle {
        display: block;
    }

    .testimonial-slide {
        padding: 0;
    }
}
