/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0c7d71;
    --color-secondary: #e0d8c8;
    --color-accent: #ff6b6b;
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #b0b0b0;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --font-title: 'Georgia', serif;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
}

/* ===== CURSOR CUSTOMIZADO ===== */
body::before {
    content: '';
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease-out, opacity 0.3s;
    opacity: 0;
}

body.cursor-active::before {
    opacity: 1;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--color-text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== CANVAS 3D ===== */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===== OVERLAY DE CONTEÚDO ===== */
#content-overlay {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

#content-overlay * {
    pointer-events: auto;
}

/* ===== SEÇÕES ===== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s, transform 1s;
}

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

.section-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

/* ===== TIPOGRAFIA ===== */
.title-main {
    font-family: var(--font-title);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-section {
    font-family: var(--font-title);
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 30px;
    letter-spacing: 0.03em;
    color: var(--color-secondary);
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.text-body {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-body strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* ===== BOTÕES ===== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: left 0.5s;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 0;
}

.btn-primary:hover,
.btn-secondary:hover {
    color: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(12, 125, 113, 0.3);
}

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

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

/* ===== ELEMENTOS VISUAIS ===== */
.visual-element {
    margin: 60px auto;
    display: flex;
    justify-content: center;
}

.circle-pulse {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

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

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ===== TECH GRID ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.tech-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-smooth);
}

.tech-item:hover {
    background: rgba(12, 125, 113, 0.1);
    border-color: var(--color-primary);
}

.tech-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

.tech-label {
    display: block;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== CONTROLES DE ÁUDIO ===== */
#audio-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    background: rgba(12, 125, 113, 0.3);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

/* ===== INDICADOR DE SCROLL ===== */
#scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s;
}

#scroll-indicator.hidden {
    opacity: 0;
}

.scroll-arrow {
    font-size: 30px;
    animation: bounce 2s infinite;
}

.scroll-text {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }
    
    .stats-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #audio-controls {
        bottom: 20px;
        right: 20px;
    }
}
