/* ========================================
   AVIX DIGITAL — HERO SECTION
   Paleta: Verde WhatsApp Premium
   ======================================== */

:root {
    /* Colors */
    /*
    --green: #00D95F;
    --green-light: #00FF66;
    --green-glow: #39FF88;
    --green-dark: #00B84D;
    --green-muted: rgba(0, 217, 95, 0.15);
    */

    --green: #00D95F;
    --green-light: #00FF66;
    --green-glow: #39FF88;
    --green-dark: #00B84D;
    --green-muted: rgba(0, 217, 95, 0.15);
    
    --bg-primary: #060606;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-green: rgba(0, 217, 95, 0.2);
    
    /* Typography */
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   CURSOR GLOW
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 95, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }
}

/* ========================================
   GRID BACKGROUND
   ======================================== */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 217, 95, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 95, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   AMBIENT ORBS
   ======================================== */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 95, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orb-float-1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orb-float-2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(57, 255, 136, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-float-3 18s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.05); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(0.92); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ========================================
   PARTICLES
   ======================================== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--green-glow);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow: hidden;
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ========================================
   ANIMATED LINES
   ======================================== */
.hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0.15;
    animation: line-sweep 8s ease-in-out infinite;
}

.line-1 {
    top: 30%;
    left: 0;
    width: 100%;
    animation-delay: 0s;
}

.line-2 {
    top: 55%;
    left: 0;
    width: 100%;
    animation-delay: 3s;
}

.line-3 {
    top: 75%;
    left: 0;
    width: 100%;
    animation-delay: 5s;
}

@keyframes line-sweep {
    0%, 100% { opacity: 0.05; transform: scaleX(0.6); }
    50% { opacity: 0.15; transform: scaleX(1); }
}

/* ========================================
   LOGO
   ======================================== */
.logo-wrapper {
    display: block;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-logo {
    
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 217, 95, 0.3));
    animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 217, 95, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 217, 95, 0.5)); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-weight: 400;
    color: var(--text-secondary);
}

/* ========================================
   BADGE
   ======================================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-green);
    background: rgba(0, 217, 95, 0.06);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--green-light);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: badge-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--green);
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ========================================
   TITLE
   ======================================== */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.title-line-1 {
    display: block;
    color: var(--text-primary);
}

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

.title-gradient {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 50%, var(--green-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SUBTITLE
   ======================================== */
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 400;
}

/* ========================================
   BUTTONS
   ======================================== */
.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out-expo);
    opacity: 0.5;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Primary Button — Glow Effect */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #000;
    box-shadow: 
        0 0 20px rgba(0, 217, 95, 0.3),
        0 0 60px rgba(0, 217, 95, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(0, 217, 95, 0.4),
        0 0 80px rgba(0, 217, 95, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Ghost Button */
.btn-ghost {
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: var(--border-green);
    background: rgba(0, 217, 95, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 217, 95, 0.1);
}

/* ========================================
   TECH STACK
   ======================================== */
.tech-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tech-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tech-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--border-green);
    color: var(--green-light);
    background: var(--green-muted);
    transform: translateY(-2px);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--green), transparent);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal-hero {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero {
        padding: 24px 20px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-badge {
        margin-bottom: 28px;
        font-size: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
    
    .logo-wrapper {
        margin-bottom: 28px;
    }
    
    .hero-logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .ambient-orb {
        filter: blur(80px);
    }
    
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }
    
    .scroll-indicator {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .tech-badges {
        gap: 8px;
    }
    
    .tech-badge {
        font-size: 0.6875rem;
        padding: 5px 12px;
    }
}
