/* =========================================================================
   BASE STYLES & VARIABLES (IMMERSION AESTHETIC)
   ========================================================================= */
:root {
    --bg-color: #CBCBC4;
    --text-main: #111111;
    --text-muted: rgba(17, 17, 17, 0.65);

    --accent: #FF3300;

    /* Inverse theme variables for dark sections */
    --bg-inverse: #111111;
    --text-inverse: #CBCBC4;
    --text-inverse-muted: rgba(203, 203, 196, 0.65);

    /* Typographic details: Valiente aesthetic */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Space Mono', monospace;
    --font-ui: 'Inter', sans-serif;

    /* Extremely fluid and dramatic easing curve used on premium web awards sites */
    --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

/* =========================================================================
   TYPOGRAPHY SCALING & OVERRIDES
   ========================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h4 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 600;
}

.pre-title,
.badge,
.brand {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-size: 0.95rem;
}

/* Custom Cursor */
* {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.cursor-dot.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 51, 0, 0.2);
    border: 1px solid var(--accent);
}

/* =========================================================================
   UTILITIES & CONTAINERS
   ========================================================================= */
.container {
    width: 100%;
    padding-left: clamp(1rem, 5vw, 4rem);
    padding-right: clamp(1rem, 5vw, 4rem);
    max-width: 1600px;
    margin: 0 auto;
}

.section-padding {
    padding: 8rem 0;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

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

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.staggered-1 {
    transition-delay: 0.1s;
}

.staggered-2 {
    transition-delay: 0.2s;
}

.staggered-3 {
    transition-delay: 0.3s;
}

.staggered-4 {
    transition-delay: 0.4s;
}

.staggered-5 {
    transition-delay: 0.5s;
}

/* Buttons (Immersion Pill UI) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-family: var(--font-heading);
    text-transform: none;
    letter-spacing: -0.01em;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 100px;
    border: 1px solid var(--text-main);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-solid:hover {
    background: transparent;
    color: var(--accent);
}

.btn-black {
    background: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-black:hover {
    background: var(--text-main);
    color: var(--bg-color) !important;
}

.btn-gold {
    background: #f5c518;
    color: var(--text-main) !important;
    border-color: #f5c518;
    font-weight: 700;
}

.btn-gold:hover {
    background: transparent;
    color: var(--text-main) !important;
}

/* =========================================================================
   LANGUAGE SWITCHER
   ========================================================================= */
.lang-switcher {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-switcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lang-switcher .flag-icon {
    width: 24px;
    height: 18px;
    background-size: cover;
    background-position: center;
    display: inline-block;
    border-radius: 2px;
}

.lang-switcher svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform var(--transition);
}

/* =========================================================================
   HERO SECTION (IMMERSION REDESIGN)
   ========================================================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 5vh;
    padding-top: 15vh;
    overflow: hidden;
}

.hero-lumos-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 16vw;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: var(--text-main);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.05;
}

.hero-lumos-char {
    display: inline-block;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 23, 23, 0.4);
    /* subtle dark tint */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-giant-number {
    position: absolute;
    top: -1rem;
    right: 1rem;
    font-size: 8rem;
    font-family: var(--font-heading);
    color: var(--text-inverse-muted);
    opacity: 0.15;
    z-index: 0;
    line-height: 1;
}

.service-card {
    position: relative;
    padding: 3rem 2rem;
    background: var(--bg-inverse);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s, background 0.4s, box-shadow 0.4s;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card h4 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-inverse);
}

.service-card ul {
    position: relative;
    z-index: 1;
    list-style: none;
    color: var(--text-inverse-muted);
}

.service-card ul li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.pre-title {
    display: block;
    font-size: 0.75rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
}

.main-title {
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.04em;
    line-height: 1;
    max-width: 15ch;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hover-word-white {
    transition: color 0.4s ease;
    cursor: default;
}

.hover-word-white:hover {
    color: #ffffff;
}

.hero-subcopy-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.hero-text {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.25;
    font-weight: 500;
    max-width: 45ch;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    transform: rotate(90deg);
    transform-origin: right center;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background: var(--text-main);
    animation: pulseWidth 2s infinite ease-in-out;
}

@keyframes pulseWidth {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    51% {
        transform: scaleX(1);
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* =========================================================================
   SOCIAL PROOF BAR (MARQUEE)
   ========================================================================= */
.social-proof-bar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 0 2rem;
}

/* Base state for containers */
.scroll-interactive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.scroll-interactive:active {
    cursor: grabbing;
}

.scroll-interactive::-webkit-scrollbar {
    display: none;
}

.badge {
    color: silver;
    font-size: 1.2rem;
    font-weight: 500;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.brand:hover {
    opacity: 1;
    color: var(--text-main);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Requires duplicated content in HTML for seamless loop */
}

/* =========================================================================
   THE GALLERY
   ========================================================================= */
.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
    /* Let images dictacte natural height */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 13;
    grid-row: span 1;
}

.gallery-item:nth-child(2) {
    grid-column: 1 / 5;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: 5 / 9;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: 9 / 13;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: 1 / 7;
    grid-row: span 1;
}

.gallery-item:nth-child(6) {
    grid-column: 7 / 13;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition);
}

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

.item-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* =========================================================================
   PARALLAX DIVIDER
   ========================================================================= */
.parallax-divider {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 4rem 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.5);
    /* subtle dimming so image pops but text is readable */
    z-index: 1;
}

.divider-content {
    position: relative;
    z-index: 2;
}

.divider-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
}

.divider-sub {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-main);
    letter-spacing: 2px;
}

.photographer-link {
    background: var(--text-main) !important;
    color: var(--bg-inverse) !important;
    transition: var(--transition);
}

.photographer-link:hover {
    background: var(--accent) !important;
    color: #fff !important;
}

/* =========================================================================
   HORIZONTAL IMDB SCROLL (VALIENTE AESTHETIC)
   ========================================================================= */
.imdb-scroll-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.imdb-card {
    min-width: 300px;
    max-width: 350px;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.imdb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
    pointer-events: none;
}

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

.imdb-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.9) 0%, transparent 100%);
    color: #CBCBC4;
    /* using variable color literal for clarity over img */
    z-index: 2;
}

.imdb-card-info .project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.imdb-card-info .project-credit {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(203, 203, 196, 0.8);
    margin-bottom: 0;
}

@keyframes imdbScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 197, 24, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
    }
}

.imdb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f5c518;
    color: #f5c518 !important;
    /* Force gold color */
    padding: 1rem 2rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: rgba(245, 197, 24, 0.05);
    border-radius: 100px;
}

.imdb-badge:hover,
.pulse-hover:hover {
    background: #f5c518;
    color: #000;
    animation: none;
}

.pulse-hover {
    animation: pulseBadge 2s infinite;
}

/* =========================================================================
   ABOUT ME
   ========================================================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* =========================================================================
   SERVICES
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    padding: 3rem 2rem;
    background: var(--bg-inverse);
    /* Solid dark background to hide overlapping photo */
    color: var(--text-inverse);
    /* Readable light text on solid dark background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s, background 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* Base shadow so it floats */
}

.interactive-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.85);
    /* Darker overlay for readability */
    transition: background 0.5s ease;
    z-index: 1;
}

.interactive-card:hover .card-overlay {
    background: rgba(8, 8, 8, 0.6);
    /* Reveal background image more on hover */
}

.interactive-card .card-content-front {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group select {
    color: var(--text-muted);
    appearance: none;
}

.input-group select option {
    background: var(--bg-color);
    color: var(--text-main);
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Floating label effect */
.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--text-main);
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--text-main);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.footer-links a {
    margin-left: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* =========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST MENTALITY ENFORCEMENT)
   ========================================================================= */
@media (max-width: 900px) {
    .hero-bg {
        background-attachment: scroll;
        /* Hotfix for missing hero images on iOS devices */
    }

    .hero-lumos-text {
        top: 65% !important;
        font-size: 18vw !important;
        letter-spacing: 0 !important;
    }

    .hero-overlay {
        background: linear-gradient(to top, var(--bg-color) 0%, rgba(203, 203, 196, 0.7) 30%, transparent 100%);
    }

    .section-padding {
        padding: 4rem 0;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-item {
        height: auto;
        transform: none !important;
    }

    .gallery-item:nth-child(n+5) {
        display: none;
    }

    .parallax-divider {
        height: 35vh;
        margin: 2rem 0;
    }

    .cursor-dot {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 2.5rem 1.5rem;
        background: var(--bg-inverse);
    }

    .service-card.appear {
        animation: mobilePopUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    @keyframes mobilePopUp {
        0% {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
        }

        70% {
            opacity: 1;
            transform: translateY(-5px) scale(1.02);
        }

        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .services-intro-flex {
        gap: 1rem !important;
        margin-bottom: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .imdb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .imdb-card {
        min-width: 200px;
        max-width: 240px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
    }
}