/* Full page glass effect for about */
.blur-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* background: rgba(0, 0, 0, 0.3); */
    z-index: 1; /* sit above the animated background */
}

.blur-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(30px);
    z-index: -1;
}

/* prevent scrollbars and make box-sizing predictable */
html {
    /* Prevent iOS in-app browsers from auto text-zooming which looks like a page zoom */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html, body {
    height: 100%;
    overflow: hidden; /* lock viewport, no scrollbars */
}

/* About page needs to scroll: override the global lock */
html.about-page, body.about-page {
    overflow-y: auto;
    height: auto; /* allow body to grow with content */
    min-height: 100%;
}

/* Prevent browser from allowing viewport rubber-band to reveal edges */
html.about-page, body.about-page { overscroll-behavior: none; }

/* Enlarged fixed blur cover sits above animated canvas, below content */
.about-page .blur-cover {
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 120vw;
    height: 140vh;
    pointer-events: none;
    z-index: 1; /* between background and content */
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    background: rgba(0,0,0,0.45);
}

/* Allow scrolling on the about page (longer content) */
body.about-page {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Keep room for the fixed brands bar on scrolling pages */
/* No extra bottom padding needed now that brands bar is only on home */

/* Make the glass container participate in normal flow so content height creates scroll */
.about-page .blur-bg {
    position: relative; /* was fixed */
    height: auto;       /* let it expand with content */
    min-height: 100vh;  /* at least full viewport */
    width: 100%;
    align-items: center; /* keep horizontal centering */
    justify-content: flex-start; /* start content at top */
    padding-top: 0; /* menu spacing handled by about-content */
}

/* Keep the blurred backdrop spanning the viewport while scrolling */
.about-page .blur-bg::before {
    position: fixed; /* decouple from content height so it always covers screen */
}

/* Themed scrollbar (WebKit/Blink) */
body.about-page::-webkit-scrollbar {
    width: 10px;
}
body.about-page::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
}
body.about-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0,46,138,0.85), rgba(2,83,245,0.85));
    border-radius: 40px;
    box-shadow: 0 0 8px rgba(2,83,245,0.7), 0 0 18px rgba(1,76,224,0.5);
    border: 2px solid rgba(0,0,0,0.55);
}
body.about-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0,76,182,0.95), rgba(2,105,255,0.95));
}

/* Firefox scrollbar theming */
body.about-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(2,83,245,0.85) rgba(255,255,255,0.05);
}

/* Adjust spacing inside team section on smaller screens to improve scroll experience */
@media (max-width: 768px) {
  .about-page .about-content { padding-top: 90px; padding-left: 28px; padding-right: 28px; }
  .about-page .team-grid { gap: 32px 26px; }
}
@media (max-width: 520px) {
  .about-page .about-content { padding-left: 20px; padding-right: 20px; }
  .about-page .team-photo-wrap { width: 150px; height: 150px; }
}

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

.about-content {
    text-align: justify;
    /* vertical-align: auto; */
    /* width respects viewport but won't exceed 900px and includes padding */
    width: min(70vw, 900px);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.8;
    background: transparent;
    padding: 48px; /* slightly reduced so content doesn't overflow small viewports */
    padding-top: 88px; /* extra top padding to avoid menu overlap */
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

/* Mobile about content adjustments */
@media (max-width: 768px) {
    .about-content {
        font-size: 1.2rem;
        padding: 40px;
        padding-top: 80px;
        width: 85vw;
    }
    
    .about-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        font-size: 1rem;
        line-height: 1.6;
        padding: 20px;
        padding-top: 70px;
        width: 90vw;
    }
    
    .about-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

.menu-item .menu-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    font-weight: bold;
    display: inline-block;
}

.menu-item .menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px; /* Place underline below text without affecting layout */
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgb(0,46,138), rgba(2,83,245,0.9));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.2,0.9,0.3,1), box-shadow 0.28s ease;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(2,83,245,0.85), 0 0 24px rgba(1,76,224,0.6);
}

.menu-item .menu-link:hover::after {
    transform: scaleX(1);
}
body {
    background: black;
    color:  rgb(255, 255, 255);
    display: flex;
    margin: 0;
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "DM Serif Text", sans-serif;
    font-weight: 400;
}

.body-container {
    display: flex;
    min-height: 100vh;
    min-width: 100vw;
    flex-direction: column;
    background: black;
}

/* Prefer dynamic viewport units where supported to avoid iOS UI-induced layout shifts */
@supports (height: 100dvh) {
    .body-container { min-height: 100dvh; }
    .blur-bg { height: 100dvh; }
}

.menu {
    display: flex;
    width: 100%;
    justify-content: center; /* center the menu buttons */
    position: fixed; /* ensure z-index applies and keep menu on top */
    top: 0;
    left: 0;
    z-index: 3; /* above blur/overlay/video */
    font-weight: 600;
    font-size: 1.1rem; /* slightly smaller */
    /* let height grow with content to avoid overflow */
    height: auto;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 15px;
    backdrop-filter: blur(10px);
}

.menu .menu-item {
    margin: 0 1.5rem; /* tighten spacing a bit */
}

/* Mobile menu optimizations */
@media (max-width: 768px) {
    .menu {
        font-size: 1rem;
        padding-top: 15px;
        padding-bottom: 10px;
        justify-content: center;
        flex-wrap: wrap;
        height: auto;
    }
    
    .menu .menu-item {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .menu {
        font-size: 0.9rem;
        padding-top: 10px;
        padding-bottom: 8px;
    }
    
    .menu .menu-item {
        margin: 0 0.5rem;
    }
    
}

.footer {
    position: fixed;
    width: 90%;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.footer .progress-bar {
    height: 3px;
    width: 100%;
    margin-top: 25px;
    background: rgb(255, 255, 255);;
}

.progress-bar-fill {
    position: absolute;
    height: 100%;
    width: 0;
    left: -1px;
    background: rgb(0, 46, 138);
    box-shadow: 0 0 20px rgb(1, 76, 224), 0 0 40px rgba(2, 83, 245, 0.9), 0 0 60px rgba(2, 83, 245, 0.8);
}

.footer .title {
    font-size: 1.3rem; /* slightly smaller base */
}

.footer .title .title-h {
    font-size: 3.1rem; /* slightly smaller */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    font-weight: 700;

    @media (max-width: 480px) {
        font-size: 2.4rem;
    }
}

.footer .title .title-description {
    font-size: 1.3rem; /* make the subtitle a bit smaller */
    margin-top: 6px;
    letter-spacing: 0.02em;
    @media (max-width: 768px) {
        font-size: 1rem;
    }
}

/* apply same shadow to subtitle and instagram and menu links */
.footer .title .title-description,
.bottom-link,
.menu .menu-item,
.menu .menu-item .menu-link {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.footer .bottom-link {
    text-align: end;
    margin-top: 10px;
    font-size: 1.2rem; /* slightly smaller */
}

/* Instagram link styling with hover animation */
.footer .bottom-link .ig-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.footer .bottom-link .ig-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgb(0,46,138), rgba(2,83,245,0.9));
    transform: scaleX(0);
    transform-origin: right; /* animate from right to left to match right alignment */
    transition: transform 0.28s cubic-bezier(0.2,0.9,0.3,1), box-shadow 0.28s ease;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(2,83,245,0.7), 0 0 18px rgba(1,76,224,0.5);
}

.footer .bottom-link .ig-link:hover::after,
.footer .bottom-link .ig-link:focus-visible::after {
    transform: scaleX(1);
}

.footer .bottom-link .ig-link:focus-visible {
    outline: 2px solid rgba(2,83,245,0.7);
    outline-offset: 3px;
    border-radius: 4px;
}

/* SVG Claw strike background animation */
.lightning-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 0; /* behind blur (blur has z-index: 1) */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* hide anything outside viewport to avoid scrollbars */
}

.body-container .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ===== Brands Section with Label ===== */
.brands-section {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
}

.brands-label {
    position: relative;
    background: transparent;
    border-top: none;
    padding: 12px 0 8px 0;
    text-align: center;
    /* Debug styling to make sure it's visible */
    min-height: 32px;
}

.brands-text {
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.9), 
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.6),
        4px 4px 16px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.brands-text::before,
.brands-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

.brands-text::before {
    right: calc(100% + 16px);
}

.brands-text::after {
    left: calc(100% + 16px);
}

@media (max-width: 768px) {
    .brands-label {
        padding: 10px 0 6px 0;
    }
    
    .brands-text {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }
    
    .brands-text::before,
    .brands-text::after {
        width: 30px;
    }
    
    .brands-text::before {
        right: calc(100% + 12px);
    }
    
    .brands-text::after {
        left: calc(100% + 12px);
    }
}

@media (max-width: 480px) {
    .brands-label {
        padding: 8px 0 4px 0;
    }
    
    .brands-text {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }
    
    .brands-text::before,
    .brands-text::after {
        width: 20px;
    }
    
    .brands-text::before {
        right: calc(100% + 8px);
    }
    
    .brands-text::after {
        left: calc(100% + 8px);
    }
}

/* ===== Bottom Brands Bar (infinite scroll) ===== */
/*
     Visual updates:
     - Frosted glass background to match the menu (backdrop-filter blur + subtle tint)
     - Edge fade via CSS mask so logos fade to transparent at left/right edges
     Behavior:
     - Infinite scroll handled by JS in index.html which normalizes to two sets and
         animates exactly one set width for a seamless loop.
*/
.brands-bar {
    position: relative;
    height: var(--brands-h, 48px);
    /* Frosted glass background similar to the menu */
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    overflow: hidden;
    pointer-events: none; /* purely decorative; don't block clicks */
}

.brands-scroller {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden; /* mask overflow */
    /* Constrain rolling area to 75% and center it */
    width: 75%;
    margin: 0 auto;
    /* Reduced side padding; edge fade is now handled by a mask */
    padding: 0 clamp(12px, 6vw, 72px);
    /* Edge fade to transparency: mask the content so logos disappear smoothly */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0) 100%);
}

.brands-track {
    display: flex;
    flex: none;              /* width equals content width */
    align-items: center;
    gap: clamp(36px, 6vw, 72px);
    height: 100%;
}

.brands-track li { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    min-width: 60px; /* Ensure minimum visual space for each logo */
}
.brands-track img {
    display: block;
    height: 24px;
    min-width: 50px; /* Ensure logos have minimum width for better visibility */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.05) brightness(1.05);
    opacity: 0.9;
    /* Center logos within their containers */
    margin: 0 auto;
}

@media (max-width: 768px) { 
    .brands-track img { 
        height: 20px; 
        min-width: 42px; 
    } 
}
@media (max-width: 480px) { 
    .brands-track img { 
        height: 17px; 
        min-width: 35px; 
    } 
}

/* keyframes removed; motion handled by JS for perfect recycling */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .brands-section { display: none; }
}

/* Lift footer above the brands bar and keep spacing consistent */
.footer { z-index: 3; bottom: calc(40px + var(--brands-h, 48px) + 32px); }

@media (max-width: 768px) {
    .footer { bottom: calc(40px + var(--brands-h, 48px) + 28px); }
}

@media (max-width: 480px) {
    .footer { bottom: calc(40px + var(--brands-h, 48px) + 24px); }
}

.contact-content {
    display: flex;
    gap: 20px;
    font-size: 1.3rem;
    /* font-weight: 600; */
}

@media screen and (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.contact-column.country {
    font-weight: 800!important;
}


.site-title {
    font-size: 2.3rem;
    margin-bottom: 60px;
    font-weight: 800!important;
}
/* Intro animation: fade in while sliding down from -10px over 0.5s */
@keyframes intro-slide-fade {
    from {
        opacity: 0;
    transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply to common text elements and progress bar so it works out of the box */
:where(h1, h2, h3, h4, h5, h6, p, a, span, li, button, label, small, strong, em,
       .menu .menu-item, .menu .menu-link,
       .footer .title, .footer .bottom-link,
       .about-content,
       .progress-bar, .progress-bar-fill) {
    animation: intro-slide-fade 0.7s ease-out both;
    will-change: transform, opacity;
}

/* Utility: apply to direct children, with optional light stagger */
.intro-stagger > * {
    animation: intro-slide-fade 0.7s ease-out both;
}
.intro-stagger > *:nth-child(2) { animation-delay: 0.05s; }
.intro-stagger > *:nth-child(3) { animation-delay: 0.1s; }
.intro-stagger > *:nth-child(4) { animation-delay: 0.15s; }
.intro-stagger > *:nth-child(5) { animation-delay: 0.2s; }

/* ===== Team Section (About) ===== */
.team-section {
    margin-top: clamp(32px, 6vh, 70px); /* more breathing room above founders */
    margin-bottom: 20px;
    width: 100%;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 42px clamp(32px, 5vw, 60px);
    align-items: start;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 28px 26px 32px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    box-shadow: 0 6px 28px -4px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04), 0 0 32px rgba(0,76,182,0.18);
    transition: transform 0.55s cubic-bezier(.16,.84,.44,1), box-shadow 0.45s ease, background 0.6s ease;
}
.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0,76,182,0.35), transparent 65%),
                radial-gradient(circle at 70% 85%, rgba(2,83,245,0.25), transparent 70%);
    opacity: 0.55;
    mix-blend-mode: screen;
    pointer-events: none;
}
.team-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 46px -6px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.07), 0 0 60px rgba(1,76,224,0.35);
    background: rgba(255,255,255,0.05);
}
.team-photo-wrap {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-bottom: 22px;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05), 0 0 0 1px rgba(255,255,255,0.2), 0 8px 26px -4px rgba(0,0,0,0.55), 0 0 40px -4px rgba(0,76,182,0.45);
    transition: box-shadow 0.6s ease, transform 0.6s ease;
}
.team-card:hover .team-photo-wrap {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.35), 0 10px 34px -4px rgba(0,0,0,0.6), 0 0 60px -2px rgba(2,83,245,0.6);
    transform: rotate(-1.5deg) scale(1.04);
}
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(105%) contrast(105%);
    transition: filter 0.6s ease, transform 0.8s ease;
}
.team-card:hover .team-photo { filter: saturate(115%) contrast(110%) brightness(1.05); transform: scale(1.08); }
.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 6px 0;
}
.team-role {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 14px;
    color: rgba(255,255,255,0.8);
    position: relative;
}
.team-role::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, rgba(0,46,138,0), rgba(0,76,182,0.9), rgba(0,46,138,0));
    box-shadow: 0 0 14px rgba(2,83,245,0.7), 0 0 24px rgba(1,76,224,0.55);
    border-radius: 2px;
}
.team-bio {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    max-width: 320px;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 900px) {
    .team-grid { gap: 36px 32px; }
    .team-photo-wrap { width: 200px; height: 200px; }
}
@media (max-width: 600px) {
    .team-photo-wrap { width: 170px; height: 170px; margin-bottom: 18px; }
    .team-name { font-size: 1.2rem; }
    .team-bio { font-size: 0.9rem; }
}

/* Extra small devices: further reduce footprint */
@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; gap: 28px; }
    .team-card { padding: 20px 18px 26px; }
    .team-photo-wrap { width: 140px; height: 140px; margin-bottom: 16px; }
    .team-name { font-size: 1.05rem; }
    .team-role { font-size: 0.7rem; letter-spacing: 0.15em; margin-bottom: 10px; }
    .team-role::after { margin-top: 6px; }
    .team-bio { font-size: 0.82rem; line-height: 1.45; }
}

@media (max-width: 380px) {
    .team-photo-wrap { width: 120px; height: 120px; }
    .team-card { padding: 18px 16px 22px; }
    .team-bio { font-size: 0.78rem; }
}

