:root {
    --color-primary: #FF6B00;
    --color-secondary: #FF3D00;
    --color-dark: #0A0A0A;
    --color-gray: #1A1A1A;
    --header-height: 72px;
    --header-height-mobile: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-dark);
    color: white;
    overflow-x: hidden;
    /* Padding para compensar header fixo */
    padding-top: var(--header-height);
}

/* Mobile: ajuste do padding */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-mobile);
    }
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* ========================================
   HEADER / NAVIGATION - FIXO SIMPLES
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .main-header {
        height: var(--header-height-mobile);
    }
}

/* ========================================
   CUSTOM CURSOR - DESKTOP ONLY
   ======================================== */
@media (min-width: 1024px) {
    body {
        cursor: none;
    }
}

@media (max-width: 1023px) {
    .cursor, .cursor-follower {
        display: none !important;
    }
    body {
        cursor: auto;
    }
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

/* ========================================
   GRAIN EFFECT
   ======================================== */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ========================================
   HERO CANVAS
   ======================================== */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ========================================
   TEXT REVEAL ANIMATION
   ======================================== */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

/* ========================================
   SPEED LINES
   ======================================== */
.speed-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    height: 1px;
    opacity: 0;
}

/* ========================================
   GLITCH EFFECT
   ======================================== */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(58px, 9999px, 14px, 0); }
    40% { clip: rect(11px, 9999px, 78px, 0); }
    60% { clip: rect(82px, 9999px, 35px, 0); }
    80% { clip: rect(43px, 9999px, 91px, 0); }
    100% { clip: rect(65px, 9999px, 12px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    20% { clip: rect(12px, 9999px, 54px, 0); }
    40% { clip: rect(88px, 9999px, 12px, 0); }
    60% { clip: rect(33px, 9999px, 76px, 0); }
    80% { clip: rect(55px, 9999px, 44px, 0); }
    100% { clip: rect(21px, 9999px, 88px, 0); }
}

/* ========================================
   MARQUEE
   ======================================== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

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

/* ========================================
   CARD HOVER EFFECTS
   ======================================== */
.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

/* ========================================
   SERVICE CARD
   ======================================== */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 107, 0, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: black;
}

/* ========================================
   MAGNETIC BUTTON
   ======================================== */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   STATS COUNTER
   ======================================== */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

/* ========================================
   NAVIGATION LINKS
   ======================================== */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: #333;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-flag {
    width: 28px;
    height: 20px;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.language-flag:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.language-flag.active {
    border-color: #FF6B00;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.7);
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ========================================
   WHATSAPP TOOLTIP
   ======================================== */
.whatsapp-tooltip {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9998;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #25D366;
}

.whatsapp-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FOOTER - LAYOUT EM COLUNA
   ======================================== */
.main-footer {
    padding: 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: black;
}

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

/* Ícones sociais - NO TOPO */
.footer-social {
    display: flex;
    gap: 20px;
    order: 1;
}

.footer-social a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-primary);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

/* Copyright - NO MEIO */
.footer-copyright {
    color: #6B7280;
    font-size: 14px;
    text-align: center;
    order: 2;
}

/* Logo - EM BAIXO */
.footer-logo {
    font-size: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    order: 3;
}

.footer-logo span {
    color: var(--color-primary);
}

/* ========================================
   VLIBRAS WIDGET POSITION
   ======================================== */
.vlibras {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 9997;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    #hero-title {
        font-size: 3rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        right: 20px;
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .vlibras {
        bottom: 85px;
        left: 15px;
    }
    
    .main-footer {
        padding: 32px 16px;
    }
    
    .footer-social svg {
        width: 22px;
        height: 22px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    #hero-title {
        font-size: 2.5rem !important;
    }
    
    #hero-subtitle {
        font-size: 0.7rem !important;
    }
    
    #hero-desc {
        font-size: 0.9rem !important;
    }
}
