/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Modern Dark Theme with Vibrant Accents */
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --accent-primary: #00d4ff;
    --accent-secondary: #ff6b35;
    --accent-tertiary: #7c3aed;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(45deg, #ff6b35 0%, #f7931e 100%);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--gradient-bg);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 30s;
    background: var(--gradient-secondary);
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: -15s;
    animation-duration: 35s;
    background: var(--accent-tertiary);
    opacity: 0.08;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 5%;
    animation-delay: -20s;
    animation-duration: 15s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    top: 70%;
    right: 5%;
    animation-delay: -25s;
    animation-duration: 28s;
    background: var(--gradient-secondary);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
    opacity: 0.6;
}

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

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav {
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    position: relative;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.brand-text:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

/* Title Styling */
.title-container {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.title-line {
    display: block;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-reveal 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-line-1 {
    animation-delay: 0.2s;
}

.title-line-2 {
    animation-delay: 0.4s;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes title-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    animation: line-expand 1s ease-out 0.6s forwards;
    transform: scaleX(0);
    transform-origin: center;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite 0.8s;
}

@keyframes line-expand {
    to {
        transform: scaleX(1);
    }
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Subtitle */
.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fade-in-up 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.subtitle-highlight {
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
}

.subtitle-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.5;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description */
.description {
    margin-bottom: var(--spacing-xxl);
    animation: fade-in-up 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.description p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Interactive Section */
.interactive-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
}

/* Progress Container */
.progress-container {
    width: 100%;
    max-width: 400px;
    animation: fade-in-up 1s ease-out 1.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    animation: progress-fill 2s ease-out 1.5s forwards;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-fill {
    to {
        width: 87%;
    }
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-percentage {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    animation: fade-in-up 1s ease-out 1.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

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

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

.whatsapp-text {
    font-size: 1rem;
}

.whatsapp-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.whatsapp-btn:hover .whatsapp-arrow {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: var(--spacing-xl);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-decoration {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-dot {
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

.footer-line {
    width: 30px;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.5;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--accent-secondary);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--accent-tertiary);
    animation-duration: 2s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .main-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }
    
    .description p {
        font-size: 1rem;
    }
    
    .whatsapp-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }
    
    .shape {
        display: none;
    }
    
    .shape-1, .shape-2 {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .interactive-section {
        gap: var(--spacing-lg);
    }
    
    .progress-container {
        max-width: 300px;
    }
    
    .whatsapp-btn {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-md);
    }
    
    .whatsapp-arrow {
        display: none;
    }
}

/* Cross-browser Compatibility */
@supports not (background-clip: text) {
    .main-title .title-line,
    .brand-text {
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--accent-primary);
    }
    
    .title-line-2 {
        color: var(--accent-secondary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes,
    .particles {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --text-muted: #cccccc;
    }
    
    .whatsapp-btn {
        border: 2px solid #ffffff;
    }
}

/* Print Styles */
@media print {
    .bg-animation,
    .particles,
    .loading-overlay {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
