/* ==========================================
   RESET & VARIÁVEIS CSS
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Cores - Mídias */
    --color-primary-midias: #0066FF;
    --color-dark-midias: #0B0B0B;
    --color-gray-midias: #1C1C1C;
    
    /* Paleta de Cores - Camisetas */
    --color-primary-camisetas: #6E00FF;
    --color-secondary-camisetas: #FF2D95;
    --color-dark-camisetas: #000000;
    
    /* Cores Comuns */
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s ease;
    --transition-slow: 0.6s ease;
    
    /* Z-index */
    --z-loading: 9999;
    --z-floating: 100;
    --z-modal: 50;
    --z-header: 40;
    --z-content: 1;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-dark-midias);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
    background-color: var(--color-dark-midias);
    color: var(--color-white);
}

/* ==========================================
   TIPOGRAFIA
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    opacity: 0.9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-base);
}

/* ==========================================
   LOADING SCREEN
   ========================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B0B0B 0%, #1C1C1C 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loading);
    animation: fadeOut 0.6s ease forwards;
    animation-delay: 2s;
}

.loading-screen p {
    margin-top: var(--spacing-lg);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 102, 255, 0.2);
    border-top-color: #0066FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ==========================================
   BACKGROUND ANIMADO
   ========================================== */

.background-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B0B0B 0%, #1C1C1C 50%, #0B0B0B 100%);
    z-index: 0;
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #0066FF, rgba(0, 102, 255, 0)),
        radial-gradient(2px 2px at 60px 70px, #6E00FF, rgba(110, 0, 255, 0)),
        radial-gradient(1px 1px at 50px 50px, #FF2D95, rgba(255, 45, 149, 0)),
        radial-gradient(1px 1px at 130px 80px, #0066FF, rgba(0, 102, 255, 0)),
        radial-gradient(2px 2px at 90px 10px, #6E00FF, rgba(110, 0, 255, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: drift 20s linear infinite;
    opacity: 0.3;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(200px, 200px);
    }
}

/* ==========================================
   GLASSMORPHISM
   ========================================== */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.glass-sm {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   BOTÕES
   ========================================== */

.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-base);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    color: white;
    border: 2px solid #0066FF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-dark-midias);
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
    padding: calc(var(--spacing-sm) - 2px) calc(var(--spacing-md) - 2px);
}

.btn-outline:hover {
    background: currentColor;
    color: var(--color-dark-midias);
}

/* ==========================================
   CONTAINER
   ========================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    position: relative;
    z-index: var(--z-content);
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   GRADIENTES MODERNOS
   ========================================== */

.gradient-text-midias {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-camisetas {
    background: linear-gradient(135deg, #6E00FF 0%, #FF2D95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */

.whatsapp-button {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: var(--z-floating);
    transition: all var(--transition-base);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================
   MENU STICKY
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: var(--z-header);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo-image {
    max-width: 40px;
    height: auto;
}

.navbar-nav {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.navbar-nav a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-midias);
    transition: width var(--transition-base);
}

.navbar-nav a:hover::after {
    width: 100%;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .whatsapp-button {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 50px;
        height: 50px;
    }
}

/* ==========================================
   PERFORMANCE OTIMIZADO
   ========================================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    background: linear-gradient(90deg, #1C1C1C 25%, #2C2C2C 50%, #1C1C1C 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   ACESSIBILIDADE
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #f5f5f5;
        color: #000;
    }
}
