@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Syncopate:wght@400;700&display=swap');

:root {
    /* Cores Elite V6 - Mais Vibrantes */
    --bg-dark: #020202;
    --bg-charcoal: #080808;
    --accent-turquoise: #00f5ff;
    --accent-glow: rgba(0, 245, 255, 0.6);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7); /* Mais visível */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    /* Fontes */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Timing Extreme */
    --ease-ultra: cubic-bezier(0.9, 0, 0.1, 1);
}

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

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

/* Scrollbar Customizada Estilo AAA */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-turquoise);
}

/* Background Canvas Layer */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Atrás apenas do background, mas visível */
    pointer-events: none;
    opacity: 0.6;
}

/* Containers de Layout */
/* Novo Preloader Cinematográfico */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-text-wrapper {
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-word {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    opacity: 0;
    filter: blur(10px);
}

.loader-eduardo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1rem;
    color: var(--accent-turquoise);
    opacity: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section Styles */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
    z-index: 5;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 70%), 
                      linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,1)), 
                      url('https://images.unsplash.com/photo-1492691523567-30730029ad0a?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-turquoise);
    margin-bottom: 30px;
    opacity: 0.8;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem); /* Reduzido conforme solicitado */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-heading);
    text-align: center;
    width: 100%;
}

.hero-title .title-line {
    display: block;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-title.active .title-line {
    transform: translateX(0);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Botões Estilo High-End */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 18px 36px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.5s var(--ease-cinematic);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-turquoise);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-turquoise);
}

/* Seções Gerais */
section {
    padding: 160px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--accent-turquoise);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    margin-bottom: 30px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent-turquoise);
}

/* Grid de Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-charcoal);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-cinematic);
}

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

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s var(--ease-cinematic);
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* Glass Panels / HUD Elements */
.hud-element {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    font-size: 0.6rem;
    color: var(--text-dim);
    padding: 10px;
    letter-spacing: 2px;
    opacity: 0.2; /* Bem discreto */
    font-weight: 300;
}

#hud-tl { top: 40px; left: 40px; border-right: none; border-bottom: none; }
#hud-tr { top: 40px; right: 40px; border-left: none; border-bottom: none; }
#hud-bl { bottom: 40px; left: 40px; border-right: none; border-top: none; }
#hud-br { bottom: 40px; right: 40px; border-left: none; border-top: none; }

/* Especialidades Cards - Elite Design */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.specialty-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    padding: 60px 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.8s var(--ease-ultra);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.8s var(--ease-ultra);
}

.specialty-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-turquoise);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

.specialty-icon {
    font-size: 2.5rem;
    color: var(--accent-turquoise);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.specialty-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.specialty-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    pointer-events: none;
    z-index: 9999;
}

/* Scrollytelling V5 Leclerc */
.scrolly-section {
    position: relative;
    background: var(--bg-dark);
}

.scrolly-container {
    display: flex;
    position: relative;
    min-height: 100vh;
}

.scrolly-visuals {
    position: sticky;
    top: 0;
    left: 0;
    width: 55%;
    height: 100vh;
    overflow: hidden;
}

.scrolly-image-container {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--ease-ultra), transform 1.5s var(--ease-ultra);
    transform: scale(1.1);
}

.scrolly-image-container.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.scrolly-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.9) 100%);
}

.scrolly-content {
    width: 45%;
    padding: 0 10%;
    position: relative;
    z-index: 10;
}

.scrolly-block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15vh 0;
    opacity: 0.3; /* Aumentado */
    transform: translateY(30px);
    transition: all 1s var(--ease-ultra);
}

.scrolly-block.active {
    opacity: 1;
    transform: translateY(0);
}

.block-number {
    font-family: var(--font-heading);
    font-size: 1rem; /* Aumentado */
    color: var(--accent-turquoise);
    letter-spacing: 8px;
    margin-bottom: 25px;
    display: block;
}

.block-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem); /* Monumental */
    line-height: 1;
    margin-bottom: 35px;
    color: #fff;
}

.scrolly-block p {
    font-size: 1.25rem; /* Mais legível */
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 500px;
}

/* Timeline Indicator - Mais vibrante */
.timeline-indicator {
    position: absolute;
    left: 55%;
    top: 0;
    height: 100%;
    width: 3px; /* Mais grossa */
    background: rgba(255,255,255,0.1);
    z-index: 100;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--accent-turquoise);
    box-shadow: 0 0 25px var(--accent-turquoise), 0 0 50px var(--accent-turquoise);
}

.story-manifesto .story-highlight {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* Stats Styling - Monumental */
.stat-item {
    text-align: left;
    border-left: 2px solid var(--accent-turquoise);
    padding: 40px;
    background: var(--glass-bg);
    transition: all 0.6s var(--ease-ultra);
}

.stat-item:hover {
    background: rgba(0, 245, 255, 0.05);
    transform: scale(1.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4.5rem; /* Maior */
    color: #fff;
    text-shadow: 0 0 30px var(--accent-glow);
    line-height: 1;
    margin-bottom: 10px;
}

/* Processo - Kinetic Design */
.step-card {
    background: var(--bg-charcoal);
    padding: 50px 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.8s var(--ease-ultra);
    position: relative;
}

.step-card:hover {
    border-color: var(--accent-turquoise);
    background: var(--glass-bg);
}

.step-number {
    color: var(--accent-turquoise);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}

/* Background Vibes */
.vibrant-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-glow);
    filter: blur(150px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Vignette Overlay Cinematográfico */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 9998;
}
