/* ------------ VARIABLES ------------ */
:root {
    --header-h: 70px;
    --brand-orange: #ff9900;
}

/* ------------ RESET / GLOBAL ------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    background: #111;
    color: #f0f0f0;
    overflow-x: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- SMOOTH SCROLL STYLES --- */
#smooth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#smooth-content {
    width: 100%;
    will-change: transform;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ------------ HEADER / NAV ------------ */
#siteHeader {
    position: fixed;
    width: 100%;
    inset: 0 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.7), transparent);
    transition: background-color .4s ease, box-shadow .4s ease, transform 0.4s ease;
}

#siteHeader.scrolled {
    background: rgba(17, 17, 17, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo img {
    height: 20px;
}

nav a {
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav a.active,
nav a:hover {
    color: var(--brand-orange);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}
.language-selector a {
    font-weight: 600;
    font-size: 0.9rem;
    color: #aaa;
    transition: color 0.3s ease;
}
.language-selector a.active,
.language-selector a:hover {
    color: #fff;
}
.language-selector span {
    color: #555;
}

/* ------------ PAGE & SECTION BEHAVIOR ------------ */
.page-section {
    display: none;
    animation: fadeIn 0.8s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-content-container {
    padding: calc(var(--header-h) + 40px) 2rem 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* ------------ PARALLAX EFFECT ------------ */
.parallax-section {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    overflow: hidden; 
}

.parallax-image {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    z-index: -1;
    will-change: transform;
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 500px;
}

.parallax-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.parallax-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-orange);
    cursor: pointer;
    transition: letter-spacing 0.3s ease;
    display: inline-block;
}

.parallax-link:hover {
    letter-spacing: 0.15em;
}

/* ------------ VIDEO SECTION ------------ */
#video-parallax-section {
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    max-height: 114%;
    width: auto;
    height: auto;
    z-index: -1;
}

.overlay-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    pointer-events: none;
}

/* --- HERO BUTTON (OCULTO) --- */
.btn-hero {
    display: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 59%;
    transform: translateX(-50%);
    background-color: #fff;
    color: var(--brand-orange);
    padding: 20px 45px;
    border-radius: 50px;
    font-size: 1rem;
    padding-bottom: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
}

.btn-hero:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: var(--brand-orange);
    color: #fff;
}


/* ------------ ABOUT PAGE STYLES ------------ */
.about-us-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.about-us-tagline {
    font-size: 1.4rem;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 2rem;
    line-height: 1.4;
}
.about-us-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}
.team-members {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.member-photo {
    width: 300px;
    height: auto; 
    object-fit: cover;
    border: 4px solid var(--brand-orange);
    margin-bottom: 15px;
}
.member-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}
.about-us-call-to-action {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-orange);
    margin-top: 3rem;
    line-height: 1.5;
}
.section-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3.5rem auto;
    width: 80%;
}
.about-section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}


/* --- CSS MARQUEE STYLES --- */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    --marquee-element-width: calc(100% / var(--marquee-elements-displayed));
    --marquee-animation-duration: calc(var(--marquee-elements) * 5s); /* Speed factor */
}
.marquee:before, .marquee:after {
    position: absolute;
    top: 0;
    width: 10rem;
    height: 100%;
    content: "";
    z-index: 1;
}
.marquee:before {
    left: 0;
    background: linear-gradient(to right, #111 0%, transparent 100%);
}
.marquee:after {
    right: 0;
    background: linear-gradient(to left, #111 0%, transparent 100%);
}
.marquee-content {
    list-style: none;
    height: 100%;
    display: flex;
    animation: scrolling var(--marquee-animation-duration) linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes scrolling {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--marquee-element-width) * var(--marquee-elements))); }
}
.marquee-content li {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: var(--marquee-element-width);
    max-height: 100%;
    white-space: nowrap;
    padding: 0 20px;
}

/* --- Marquee: Brands/Clients Carousel --- */
#brands-section .marquee {
    height: 100px;
    --marquee-elements-displayed: 7;
}
#brands-section .marquee-content li img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    padding-bottom: 10px;
}

/* --- Marquee: Gear Carousel --- */
#gear-section .marquee {
    height: 300px;
    --marquee-elements-displayed: 4;
}
#gear-section .marquee-content li {
    flex-direction: column;
}
#gear-section .marquee-content li img {
    height: 250px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}
#gear-section .marquee-content li figcaption {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ddd;
}


/* === PORTFOLIO STYLES === */
body.portfolio-active #siteHeader {
    transform: translateY(-100%);
}

#portfolioPage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
}
#portfolioPage:active {
    cursor: grabbing;
}


.portfolio-info-pill {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.portfolio-active .portfolio-info-pill {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.back-to-home-btn {
    position: static;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.back-to-home-btn:hover {
    background: var(--brand-orange);
    color: #111;
}

.portfolio-text-content {
    text-align: left;
    color: #e0e0e0;
}

#portfolio-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

#portfolio-description {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
    line-height: 1.3;
}

body.portfolio-active,
body.contact-overlay-open {
    overflow: hidden;
}

#portfolio-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
}

#portfolio-loader {
    position: absolute;
    inset: 0;
    background: #111;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}
#portfolio-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

#portfolio-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: var(--brand-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== NEW: LIGHTBOX STYLES ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
    transform-origin: center center;
    will-change: transform;
    transition: none;
}

.lightbox.active .lightbox-content {
    transition: opacity 0.4s ease;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}
.lightbox-close:hover {
    transform: rotate(90deg);
    color: #fff;
}


/* ------------ CONTACT OVERLAY STYLES ------------ */
body.contact-overlay-open #smooth-wrapper,
body.lightbox-open #smooth-wrapper,
body.lightbox-open #portfolioPage {
    filter: blur(8px);
    pointer-events: none;
}
.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-overlay.active {
    opacity: 1;
    visibility: visible;
}
.overlay-content {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
    cursor: default;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}
.page-overlay.active .overlay-content {
    transform: scale(1);
    opacity: 1;
}
.close-overlay-btn {
    position: absolute;
    top: 1.5rem; right: 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 20;
}
.close-overlay-btn:hover {
    transform: rotate(90deg) scale(1.1);
    color: #fff;
}
.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.contact-intro {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 60ch;
    line-height: 1.7;
    margin: 1rem 0;
}
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border: 2px solid var(--brand-orange);
    border-radius: 50px;
    color: var(--brand-orange);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.contact-btn:hover {
    background-color: var(--brand-orange);
    color: #111;
    transform: translateY(-5px);
}
.contact-btn i { font-size: 1.4rem; }
.social-links { display: flex; gap: 2rem; justify-content: center; margin-top: 1.5rem;}
.social-link {
    font-size: 2.2rem;
    color: #aaa;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-link:hover {
    color: var(--brand-orange);
    transform: scale(1.15);
}

/* ------------ RESPONSIVE ------------ */
@media(max-width: 768px) {
    body {
        overflow-y: auto;
    }
    #smooth-wrapper {
        position: static;
        overflow: visible;
    }
    #smooth-content {
        will-change: auto;
    }

    .overlay-logo {
        width: 170%;
    }

    #siteHeader { padding: 0 1rem; }
    .logo img { height: 15px; }
    nav { display: none; }
    .language-selector { margin-left: auto; }

    .btn-hero {
        font-size: 0.9rem;
        padding: 12px 28px;
        top: 70%;
    }

    .parallax-section { justify-content: center; }
    .parallax-content { text-align: center; padding: 0 1rem; }
    .parallax-title { font-size: 2.5rem; }

    .page-content-container { padding: calc(var(--header-h) + 20px) 1rem 20px; }
    .about-us-title, .contact-title { font-size: 2.2rem; }
    .about-us-tagline { font-size: 1.1rem; }
    .about-us-description, .contact-intro { font-size: 0.95rem; }
    .member-photo { width: 120px; }
    .member-name { font-size: 1.2rem; }
    .about-section-title { font-size: 2rem; }
    
    #brands-section .marquee {
        --marquee-elements-displayed: 4;
        height: 140px;
    }
    #gear-section .marquee {
        --marquee-elements-displayed: 2;
        height: 220px;
    }
    #gear-section .marquee-content li img {
        height: 180px;
    }
    .marquee:before, .marquee:after {
        width: 5rem;
    }

    .portfolio-info-pill {
        width: 95%;
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        gap: 0.75rem;
    }
    .portfolio-text-content {
        text-align: left;
        flex-grow: 1;
    }
    #portfolio-title {
        font-size: 0.9rem;
    }
    #portfolio-description {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    .back-to-home-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .back-to-home-btn span {
        display: none;
    }
    
    .close-overlay-btn { top: 1rem; right: 1rem; font-size: 2rem; }
    .contact-buttons { gap: 1rem; }
    .contact-btn { padding: 12px 24px; font-size: 0.9rem; }

    .lightbox-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 2.5rem;
    }
}

#portfolio-canvas {
    touch-action: none;
    -ms-touch-action: none;
    cursor: grab;
  }