/* VANGUARD VISION - CSS */

:root {
    --color-brand: #00e5ff;
    --color-brand-dark: #00b8cc;
    --color-dark: #051014;
    --color-dark-card: #0a1a20;
    --color-text: #ffffff;
    --color-text-muted: #a0aab2;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
}

/* Performance: skip rendering off-screen sections until they scroll into view */
.clients-section,
.services-section,
.testimonials-section,
.differentials-section,
.about-section,
.what-we-do-section,
.faq-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* PRELOADER */
body.no-scroll {
    overflow: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.preloader-logo {
    width: 130px;
    max-width: 28vw;
    animation: preloaderPulse 1.1s infinite alternate ease-in-out;
}

@keyframes preloaderPulse {
    0% { transform: scale(0.95); opacity: 0.75; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.2)); }
    100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.85)); }
}

.preloader.fade-out {
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
}

body.preloading {
    overflow: hidden;
}

/* PARTICLES */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100; /* floats behind the high-layer stuff like preloader or modals, but visually on top of dark sections */
    mix-blend-mode: screen; /* gives it a nice glowing effect over dark backgrounds */
}

/* UTILITIES */
.brand-text { color: var(--color-brand); }
.text-white { color: white; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.glow-text { text-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }
.glow-box { box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--color-brand);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-brand-dark);
    transform: scale(1.05);
}

.btn-sm { padding: 8px 24px; font-size: 0.9rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

.btn-white {
    background-color: white;
    color: var(--color-dark);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-white:hover {
    background-color: #e0e0e0;
}

.btn-dark {
    background-color: var(--color-dark);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* HEADER */
.header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.logo {
    height: 16px; /* Smaller logo as requested */
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.white-logo {
    filter: brightness(0) invert(1);
}

.desktop-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px; /* Constrain width of the centered menu */
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.glass-effect {
    background: rgba(10, 26, 32, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 16px 12px 32px;
}

.nav-link {
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-brand);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    right: 40px;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-dark);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    gap: 24px;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.glass-effect {
    border-radius: 0;
}

.mobile-menu.active {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 70vh; /* Limits the height significantly */
    min-height: 550px;
    max-height: 650px; /* Forces it to stay relatively short */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 40px; /* Adjusted padding so elements fit without overlapping menu */
    overflow: hidden;
}

.video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    mix-blend-mode: screen;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        linear-gradient(to bottom, rgba(5, 16, 20, 0) 0%, rgba(5, 16, 20, 0) 40%, rgba(5, 16, 20, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(25px);
}

.hero-badge {
    display: none; /* Already removed from HTML, hiding just in case */
}

.hero-title {
    font-size: 2.2rem; /* Reduced to take fewer lines and space */
    font-weight: 800;
    line-height: 1.1; /* Tighter line height */
    margin-bottom: 16px; /* Reduced */
}

.hero-desc {
    color: #e2e8f0;
    max-width: 600px;
    font-size: 0.95rem; /* Slightly smaller */
    margin-bottom: 24px; /* Reduced */
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Reduced */
}

.cta-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* MARQUEE */
.marquee-container {
    position: relative;
    width: 100%;
    background-color: var(--color-brand);
    padding: 8px 0;
    overflow: hidden;
    z-index: 20;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 48px; /* Slightly larger gap between logos */
}

.marquee-logo {
    height: 24px;
    filter: brightness(0); /* Makes the SVG black */
}

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

/* SECTION TITLES */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

/* CLIENTS */
.clients-section {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.clients-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px; /* Space for arrows */
}

.clients-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.clients-track::-webkit-scrollbar {
    display: none;
}

.client-card-loop {
    width: 100%; /* Mobile: 1 card at a time */
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-dark-card);
    border: 1px solid rgba(255,255,255,0.05);
}

.client-card-loop img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.client-card-loop:hover img {
    transform: scale(1.03);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 26, 32, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--color-brand);
    color: var(--color-dark);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* SERVICES */
.services-section {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(10, 26, 32, 0.3);
}

.cat-strip-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
}

.cat-arrow {
    flex-shrink: 0;
    background: rgba(10, 26, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.cat-arrow:hover {
    background: var(--color-brand);
    color: var(--color-dark);
    border-color: var(--color-brand);
    transform: scale(1.05);
}

.services-category-strip {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 460px;
    height: 60px;
    padding: 10px 0;
    overflow-x: clip;
    overflow-y: visible;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
            mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
}

.cat-track {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.cat-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 14px;
    transition: color 0.5s ease, background 0.5s ease, border-color 0.5s ease,
                transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    text-transform: uppercase;
    transform: scale(0.85);
    opacity: 0.55;
    filter: blur(0.6px);
    white-space: nowrap;
}

.cat-label:hover {
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.85;
}

.cat-label.active {
    color: var(--color-brand);
    background: rgba(0, 200, 255, 0.14);
    border-color: rgba(0, 200, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 28px rgba(0, 200, 255, 0.3);
    opacity: 1;
    filter: blur(0);
}

.services-slider-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 50px;
    /* Diffusion / fade on edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.services-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 30px 10px;
    /* Fade transition for category switching */
    transition: opacity 0.45s ease;
}

.services-track.is-switching {
    opacity: 0;
}

.services-track::-webkit-scrollbar {
    height: 4px;
}
.services-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    margin: 0 40px;
}
.services-track::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.45);
    border-radius: 4px;
}
.services-track::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.75);
}

.services-track .service-video {
    /* Show 3 at a time: calc((100% - 2 gaps) / 3) */
    width: calc((100% - 32px) / 3);
    min-width: 180px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: center;
    margin: 0;
    display: none;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease, box-shadow 0.5s ease;
    transform: scale(1);
    opacity: 1;
}

.services-track .service-video.is-featured {
    display: flex;
    transform: scale(1);
    opacity: 1;
    filter: none;
    box-shadow: 0 8px 32px rgba(0, 200, 255, 0.18), 0 0 0 1px rgba(0, 200, 255, 0.25);
}

.services-track .service-video.is-featured:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 44px rgba(0, 200, 255, 0.35), 0 0 0 1px rgba(0, 200, 255, 0.5);
}

.service-video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.service-video video,
.service-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
    display: block;
    border: 0;
}

/* Lazy-loaded video placeholder shimmer */
.service-video video:not([src]),
.testimonial-card-simple video:not([src]) {
    background: linear-gradient(110deg, #111 8%, #1a2a30 18%, #111 33%);
    background-size: 200% 100%;
    animation: videoShimmer 1.5s linear infinite;
}

@keyframes videoShimmer {
    to { background-position: -200% 0; }
}

.service-video.horizontal {
    aspect-ratio: 16/9;
}

.service-video.vertical {
    aspect-ratio: 9/16;
}

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

.service-video:hover .service-img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.service-video:hover .service-overlay {
    background: rgba(0,0,0,0.2);
}

.play-btn {
    width: 72px;
    height: 72px;
    background: rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), inset 0 0 15px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.6), inset 0 0 20px rgba(0, 229, 255, 0.3);
    transform: scale(1.1);
}

.play-btn i {
    color: var(--color-brand);
    font-size: 32px;
    margin-left: 6px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.8));
    transition: all 0.3s ease;
}

.play-btn:hover i {
    color: #ffffff;
    filter: drop-shadow(0 0 12px #ffffff);
}

.play-btn-small {
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
}

.play-btn-small:hover {
    background: rgba(0, 229, 255, 0.3);
    transform: scale(1.1);
}

.play-btn-small i { 
    color: var(--color-brand); 
    font-size: 20px; 
    margin-left: 4px;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.8));
}

/* TESTIMONIALS */
.testimonials-section {
    padding: 40px 20px; /* Reduced padding to make section shorter */
    background: linear-gradient(to bottom, var(--color-dark), rgba(10, 26, 32, 0.5));
    overflow: hidden;
}

.testimonials-slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Reduced from 1200px to make videos smaller/shorter */
    margin: 0 auto;
    padding: 10px 40px;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card-simple {
    width: 100%; /* Mobile: 1 card at a time */
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.testimonial-card-simple video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 16px;
    outline: none;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    text-align: center;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
}

.t-quote {
    color: #cbd5e1;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.t-author {
    font-weight: 700;
    font-size: 0.9rem;
}

.t-sub {
    font-size: 0.8rem;
    color: #64748b;
}

/* DIFFERENTIALS */
.differentials-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.diff-card {
    background: #080808;
    padding: 32px;
    border-radius: 16px;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-top-color 0.3s ease,
                box-shadow 0.3s ease;
}

.diff-card:hover {
    transform: translateY(-8px);
    border-top-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 12px 30px -10px rgba(0, 229, 255, 0.35);
}

.diff-card h3 {
    color: var(--color-brand);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.diff-card p {
    color: #94a3b8;
}

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

/* ABOUT */
.about-section {
    padding: 100px 20px;
    background-color: #03080a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-image {
    width: 100%;
}

.mobile-only-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-label span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

.about-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-desc {
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* WHAT WE DO */
.what-we-do-section {
    padding: 100px 20px;
    background-color: #03080a;
}

.what-we-do-container {
    max-width: 1100px;
    margin: 0 auto;
}

.wwd-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.wwd-desc {
    color: #cbd5e1;
    max-width: 700px;
    margin-bottom: 48px;
}

.wwd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.wwd-card {
    background: #051114;
    border: 1px solid transparent;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    padding: 32px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.wwd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.wwd-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 229, 255, 0.3);
    border-top-color: rgba(0, 229, 255, 1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 255, 0.15);
}

.wwd-card:hover::before {
    opacity: 1;
}

.wwd-card h3 {
    color: var(--color-brand);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.wwd-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* FAQ */
.faq-section {
    padding: 100px 20px;
    background-color: #0a1f26;
}

.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-left h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.faq-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.faq-item {
    background: #08171d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.faq-item:hover {
    border-color: rgba(0, 229, 255, 0.5);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.faq-header i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.faq-header span {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--color-brand);
}

.faq-item.active .faq-header i {
    transform: rotate(180deg); /* ph-caret-down becomes ph-caret-up */
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 16px;
    opacity: 1;
}

/* FOOTER */
.footer {
    background-color: #020608; /* Extremely dark, almost black to match site */
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    color: white;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-brand);
}

.footer-links, .footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.footer-links a i {
    color: var(--color-brand);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: var(--color-brand);
    transform: translateX(6px);
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-contact li {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact a {
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--color-brand);
}

.footer-contact i {
    font-size: 1.3rem;
}

.footer-logo {
    height: 25px;
    margin-bottom: 20px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--color-brand);
    color: var(--color-dark);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-4px);
}

/* STICKY BAR */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    padding: 12px 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.sticky-text {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #cbd5e1;
}

.sticky-v-icon {
    width: 16px;
    display: none;
}

.desktop-text {
    display: none;
    font-size: 0.9rem;
}

.mobile-text {
    display: block;
    font-size: 0.7rem;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-btn {
    white-space: nowrap;
}

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

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* MEDIA QUERIES */
@media (min-width: 768px) {
    .desktop-br { display: block; }
    
    .desktop-nav { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .hero-title { font-size: 4rem; }
    .hero-desc { font-size: 1.2rem; }
    /* Desktop layout for sliders and grids */
    .client-card-loop { width: calc((100% - 60px) / 4); }
    .testimonial-card-simple { width: calc((100% - 60px) / 4); }
    .services-track .service-video { width: calc((100% - 32px) / 3); min-width: 200px; max-width: 280px; }
    .testimonial-card { 
        width: 450px; 
        flex-direction: row; 
    }
    .testimonial-video {
        width: 120px;
        flex-shrink: 0;
    }
    .testimonial-content {
        justify-content: center;
    }
    
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    
    .about-section {
        background-image: url('IMAGENS/Sobre-nos_-Bg.webp');
    }
    
    .about-container { 
        flex-direction: row; 
        justify-content: flex-end; /* Pushes content to the right */
    }
    
    .about-image { display: none; } /* Hide the mobile image entirely on desktop */
    
    .about-content { 
        width: 50%; 
        padding-left: 40px; /* Give it some breathing room from the center */
    }
    
    .about-title { font-size: 3rem; }
    
    .wwd-grid { grid-template-columns: repeat(3, 1fr); }
    .wwd-title { font-size: 3rem; }
    
    .faq-container { flex-direction: row; }
    .faq-left { width: 33.333%; }
    .faq-right { width: 66.666%; }
    
    .footer-container { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
    .footer-bottom { flex-direction: row; text-align: left; }
    
    .sticky-v-icon { display: block; }
    .desktop-text { display: block; }
    .mobile-text { display: none; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 4rem; }
}

/* FLOATING WHATSAPP BUTTON */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    transform: translateY(150px);
    background: rgba(5, 16, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 8px 8px 16px;
    z-index: 999;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.floating-wa-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.floating-wa-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0a1f26;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    z-index: 2;
}

.floating-wa-close:hover {
    background: var(--color-brand);
    color: var(--color-dark);
    border-color: var(--color-brand);
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .floating-wa {
        display: none !important;
    }
}

.floating-wa.show {
    transform: translateY(0);
    opacity: 1;
    animation: waPulse 2.4s ease-in-out 0.6s infinite;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 0 rgba(0, 229, 255, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 14px rgba(0, 229, 255, 0); }
}

.wa-logo-box img {
    height: 16px;
    filter: brightness(0) invert(1);
}

.wa-btn-box {
    background: var(--color-brand);
    color: var(--color-dark);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-wa:hover .wa-btn-box {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* FULLSCREEN VIDEO — preserve aspect ratio (no stretch on vertical clips) */
/* NOTE: each vendor prefix must be in its own rule — grouping invalidates the whole selector list in browsers that don't recognize one of them */
video:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}
video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}
video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}
video:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}
video.is-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}
