/* ===================================
   CONECTA EXPO CENTER - STYLES
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #0b2c3e;
    --secondary-color: #c4c7c3;
    --white: #ffffff;
    --dark-gray: #1e293b;
    --medium-gray: #64748b;
    --light-gray: #f8fafc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0b2c3e 0%, #164058 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(11, 44, 62, 0.95) 0%, rgba(22, 64, 88, 0.85) 100%);
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.hero-section-container {
    position: relative;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, var(--transition-smooth);
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    transform: translateY(0);
}

.header.scrolled {
    background: transparent;
    box-shadow: none;
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.header.scrolled .nav-logo img {
    height: 70px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    overflow: hidden;
}

.nav-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.nav-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(196, 199, 195, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.nav-menu a:hover .nav-button {
    opacity: 1;
    transform: scale(1);
    background: rgba(196, 199, 195, 0.2);
}

.nav-menu a:hover .nav-text {
    color: var(--white);
}

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

/* YouTube Video Background */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250vw;
    height: 250vh;
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
}

/* Overlay escuro para legibilidade do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 2rem;
    width: 100%;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Main Title */
.hero-title-container {
    margin-bottom: 2rem;
    position: relative;
}

.hero-main-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    color: var(--white);
}

.title-line-1 {
    display: block;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line-2 {
    display: block;
    color: var(--secondary-color);
    font-weight: 400;
}

.title-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Subtitle */
.hero-subtitle-container {
    margin-bottom: 3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.hero-subtitle strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Features */
.hero-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.feature-item:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feature-text h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(11, 44, 62, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(11, 44, 62, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right Image Gallery */
.hero-right {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    z-index: 3;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    background: #000;
    z-index: 2;
    /* Garantir que wrapper não bloqueie interações */
    pointer-events: auto;
}

.hero-video {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
    background: #000;
    /* Prevenir tela cheia automática no iOS/Android */
    -webkit-playsinline: true;
    -moz-playsinline: true;
    -ms-playsinline: true;
    playsinline: true;
    /* Desabilitar controles nativos que podem causar tela cheia */
    -webkit-media-controls: none;
    -webkit-media-controls-enclosure: none;
    /* Garantir que o vídeo não estoure no container */
    max-width: 100%;
    max-height: 100%;
    /* Permitir interação com o vídeo */
    pointer-events: auto;
    /* Garantir z-index correto */
    position: relative;
    z-index: 1;
}

/* Ocultar completamente controles nativos do iOS/Android */
.hero-video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-timeline {
    display: none !important;
}

.hero-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.hero-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Garantir que vídeo não entre em picture-in-picture ou tela cheia */
.hero-video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Estilo para botão de play customizado (se necessário) */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 30px;
    color: #0b2c3e;
    cursor: pointer;
    z-index: 1000;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.video-play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(196, 199, 195, 0.1), rgba(11, 44, 62, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Animated Background Logos */
.animated-bg-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-logo {
    position: absolute;
    height: 180px;
    width: auto;
    opacity: 0.06;
    filter: blur(1px);
    transform: translateY(-120%);
    animation: logoFall linear infinite;
}

.bg-logo-1 {
    left: 12%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bg-logo-2 {
    left: 48%;
    animation-duration: 15s;
    animation-delay: -4s;
}

.bg-logo-3 {
    left: 78%;
    animation-duration: 18s;
    animation-delay: -8s;
}

@keyframes logoFall {
    0% {
        transform: translateY(-150%) translateX(0) rotate(-10deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    50% {
        opacity: 0.05;
        transform: translateY(20%) translateX(2%) rotate(5deg);
    }
    100% {
        transform: translateY(160%) translateX(-3%) rotate(12deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 4rem 0 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Brand */
.hero-brand {
    margin-bottom: 3rem;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.2));
}

.hero-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--secondary-color);
    margin: 0;
}

/* Main Heading */
.hero-heading {
    margin-bottom: 3rem;
}

.main-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: var(--white);
}

.line-1, .line-2 {
    display: block;
}

.line-2 {
    color: var(--secondary-color);
}

/* Tech Icons */
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.tech-icon:nth-child(1) .icon-circle {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.tech-icon:nth-child(2) .icon-circle {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.tech-icon:nth-child(3) .icon-circle {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.tech-icon:nth-child(4) .icon-circle {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.tech-icon span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.tech-icon:hover .icon-circle {
    transform: scale(1.1);
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-welcome {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    background: rgba(11, 44, 62, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
    margin-bottom: 2rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
}

.glowing-text {
    position: relative;
    color: var(--white);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(196, 199, 195, 0.8),
        0 0 40px rgba(196, 199, 195, 0.6),
        0 0 50px rgba(196, 199, 195, 0.4),
        0 0 60px rgba(196, 199, 195, 0.3),
        0 0 70px rgba(196, 199, 195, 0.2);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(196, 199, 195, 0.8),
            0 0 40px rgba(196, 199, 195, 0.6),
            0 0 50px rgba(196, 199, 195, 0.4),
            0 0 60px rgba(196, 199, 195, 0.3),
            0 0 70px rgba(196, 199, 195, 0.2);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.9),
            0 0 40px rgba(196, 199, 195, 1),
            0 0 50px rgba(196, 199, 195, 0.9),
            0 0 70px rgba(196, 199, 195, 0.7),
            0 0 90px rgba(196, 199, 195, 0.5),
            0 0 110px rgba(196, 199, 195, 0.3);
    }
}

/* Estilos de peso de fonte */
.bold-text {
    font-weight: 800;
}

.regular-text {
    font-weight: 400;
}

/* Halo de luz ao redor do texto */
.hero-title {
    filter: drop-shadow(0 0 30px rgba(196, 199, 195, 0.6));
}

/* Removido: Raios de luz radiais */

.hero-title .highlight {
    color: var(--white);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 1.4s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease-out 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECTION STYLES
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(11, 44, 62, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--light-gray);
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-gray);
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 44, 62, 0.9), transparent);
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.about-image:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===================================
   SPACES SECTION
   =================================== */
.spaces {
    background: var(--white);
    padding: var(--section-padding);
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Laboratórios na mesma linha */
@media (min-width: 1200px) {
    .space-card:nth-child(2),
    .space-card:nth-child(3),
    .space-card:nth-child(4) {
        grid-column: span 1;
    }
    
    .spaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.space-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.space-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.space-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.space-image-video {
    min-height: 250px;
}

.space-image-video .carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

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

.space-card:hover .space-image .carousel-slide.active img {
    transform: scale(1.1);
}

/* ===================================
   CAROUSEL STYLES
   =================================== */
.space-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

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

.carousel-slide video,
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.space-image:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn i {
    color: var(--primary-color);
    font-size: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.space-image:hover .carousel-indicator {
    opacity: 1;
}

.carousel-indicator.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-btn {
        opacity: 1 !important;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }
    
    .carousel-btn i {
        font-size: 1.1rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-indicator {
        opacity: 1 !important;
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 10px;
    }
    
    /* Garantir que imagens e vídeos sejam exibidos corretamente */
    .carousel-slide img,
    .carousel-slide video,
    .carousel-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        -webkit-user-drag: none;
        user-select: none;
    }
    
    .space-image {
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y;
    }
}

.space-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 20;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    letter-spacing: 0.3px;
}

.space-badge.new {
    background: var(--primary-color);
    color: var(--white);
}

.space-badge.gastronomia {
    background: var(--primary-color);
    color: var(--white);
}

.space-badge.premium {
    background: var(--primary-color);
    color: var(--white);
}

.space-badge.included {
    background: var(--primary-color);
    color: var(--white);
}

.parking-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #374151, #1f2937);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 12px;
}

.parking-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.parking-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
}

.space-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.space-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.space-content p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.space-features {
    margin-bottom: 1.5rem;
}

.space-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.space-features i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
}

.btn-card:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    background: linear-gradient(135deg, #0b2c3e 0%, #0d3349 50%, #112840 100%);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196,199,195,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196,199,195,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.services .section-header .section-tag {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15);
}

.services .section-header .section-title {
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(196, 199, 195, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    background: rgba(196, 199, 195, 0.2);
    border-color: rgba(196, 199, 195, 0.4);
}

.card-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

/* ===================================
   EVENTS SECTION
   =================================== */
.events {
    background: var(--white);
    padding: var(--section-padding);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.event-type {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.event-type:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.event-type i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.event-type:hover i {
    color: var(--secondary-color);
}

.event-type h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.event-type:hover h3 {
    color: var(--white);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--medium-gray);
    margin: 0.25rem 0;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-map {
    width: 100%;
    margin-top: 2rem;
    display: block;
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Esconder mapa em dispositivos móveis */
@media (max-width: 768px) {
    .contact-map {
        display: none;
    }
}

.contact-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 2rem;
 }
 
.contact-form-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(18, 140, 126, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-cta i {
    font-size: 1.4rem;
}

.contact-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(18, 140, 126, 0.45);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
}

.footer-contact i {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--secondary-color);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-color);
    transition: var(--transition);
}

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

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: translateY(-5px);
}

.whatsapp-float i {
    font-size: 24px;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===================================
   HERO SECTION RESPONSIVE
   =================================== */
@media (max-width: 1200px) {
    .hero-content-wrapper {
        padding: 120px 2rem 2rem;
    }
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        padding: 100px 1.5rem 2rem;
    }
    
    .hero-video-bg iframe {
        width: 250vw;
        height: 250vh;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .secondary-images {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .image-item .gallery-img {
        height: 120px;
    }
    
    /* Vídeo YouTube background no mobile */
    .hero-video-bg iframe {
        width: 300vw;
        height: 300vh;
    }
    
    .hero-content-wrapper {
        padding: 100px 1rem 2rem;
    }
    
    .space-image {
        height: 200px;
        min-height: 200px;
    }
    
    .space-image img,
    .carousel-slide img {
        min-height: 200px;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .about-image img {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content-wrapper {
        padding: 90px 1rem 2rem;
    }
    
    .hero-main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* WhatsApp e Scroll to Top - Mobile */
    .whatsapp-float {
        bottom: 85px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
    
    .tech-icons {
        gap: 1rem;
    }
    
    .tech-icon .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .spaces-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================
   YOUTUBE FACADE (lazy load)
   =================================== */
.hero-youtube-facade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* YouTube iframe injected by JS */
#heroYouTube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250vw;
    height: 250vh;
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
    border: none;
}

/* ===================================
   PERFORMANCE HINTS
   =================================== */
/* will-change hints prevent forced reflow on animated elements */
.space-card,
.service-card,
.about-image,
.space-image {
    will-change: transform;
}

/* Contain carousel slides to prevent layout outside their bounds */
.space-carousel {
    contain: layout style;
}

/* Hardware accelerate hero overlay */
.hero-overlay,
.hero-youtube-facade {
    will-change: opacity;
    transform: translateZ(0);
}

/* ===================================
   STATS / NÚMEROS SECTION
   =================================== */
.stats-section {
    background: var(--primary-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(255,255,255,0.015) 60px,
        rgba(255,255,255,0.015) 61px
    );
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-block {
    text-align: center;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-block:last-child {
    border-right: none;
}

.stat-block-number {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-block-number span {
    color: var(--secondary-color);
}

.stat-block-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .stat-block {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1.5rem;
    }

    .stat-block:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    .stat-block:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================
   LOADING SCREEN
   =================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--primary-color);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-logo {
    height: 110px;
    width: auto;
    animation: loadingPulse 1.2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 30px rgba(196,199,195,0.3));
}

@keyframes loadingPulse {
    from { opacity: 0.7; transform: scale(0.97); }
    to   { opacity: 1;   transform: scale(1.03); }
}

.loading-bar {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 99px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), #fff);
    border-radius: 99px;
    animation: loadingFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadingFill {
    0%   { width: 0%; }
    60%  { width: 80%; }
    100% { width: 100%; }
}

/* ===================================
   CUSTOM CURSOR — COBRA
   =================================== */
@media (pointer: fine) {
    body { cursor: none; }
    a, button { cursor: none; }
}

/* Ponto principal */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    will-change: transform;
    transition: width 0.2s ease, height 0.2s ease;
}

/* Segmentos da cauda — criados via JS */
.cursor-segment {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    background: #fff;
    mix-blend-mode: difference;
    will-change: transform;
}

/* Não mostrar cursor-trail antigo (vazio agora) */
.cursor-trail { display: none; }

/* ===================================
   SCROLL PROGRESS RING
   =================================== */

.scroll-progress-ring {
    position: absolute;
    inset: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.scroll-progress-track {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 2.5;
}

.scroll-progress-fill {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 119.4; /* 2πr = 2 * π * 19 */
    stroke-dashoffset: 119.4;
    transition: stroke-dashoffset 0.1s linear;
}

/* ===================================
   TILT 3D — SERVICE CARDS (Infraestrutura)
   =================================== */
.service-card {
    transform-style: preserve-3d;
}

/* ===================================
   STAGGER ENTRADA CARDS SERVIÇO
   =================================== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                background 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.service-card.service-visible {
    opacity: 1;
    transform: translateY(0);
    /* Após aparecer: transform vira rápido para o tilt 3D funcionar sem lag */
    transition: opacity 0.5s ease, transform 0.08s ease,
                background 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease;
    transition-delay: 0s !important;
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.19s; }
.service-card:nth-child(4) { transition-delay: 0.26s; }
.service-card:nth-child(5) { transition-delay: 0.33s; }
.service-card:nth-child(6) { transition-delay: 0.40s; }
