/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Color Palette - Premium Blue, White, Gold & Red */
    --clr-bg-main: #ffffff;
    --clr-bg-surface: #f4f7f9;
    --clr-bg-surface-light: #ffffff;
    
    --clr-text-primary: #0a2540;
    --clr-text-secondary: #425466;
    
    --clr-primary: #0056b3;
    --clr-primary-dark: #004494;
    --clr-accent-gold: #c5a059;
    --clr-accent-brass: #d4af37;
    --clr-accent-red: #c41e3a;
    
    /* Typography */
    --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif; /* Or similar premium serif */
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 999px;
}

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

html {
    background-color: #ffffff;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: transparent;
    color: var(--clr-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background patterns - Global for all pages */
body::before, 
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Rich Liquid Mesh Blobs */
body::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 110, 255, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 255, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 65%),
        radial-gradient(circle at 80% 10%, rgba(0, 90, 255, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 20% 90%, rgba(0, 200, 255, 0.15) 0%, transparent 45%);
    filter: blur(120px);
    animation: liquidMorph 15s ease-in-out infinite alternate;
}

/* Multi-layered Curvy Lines */
body::after {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000' viewBox='0 0 1000 1000'%3E%3Cpath d='M0,500 C200,350 300,650 500,500 C700,350 800,650 1000,500' stroke='rgba(0,86,179,0.1)' fill='none' stroke-width='3'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000' viewBox='0 0 1000 1000'%3E%3Cpath d='M0,700 C150,550 250,850 500,700 C750,550 850,850 1000,700' stroke='rgba(135,206,235,0.15)' fill='none' stroke-width='4'/%3E%3C/svg%3E");
    background-size: 150% 150%;
    opacity: 0.4;
    animation: lineFlow 40s linear infinite;
}

@keyframes liquidMorph {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(5%, -5%) scale(1.1) rotate(2deg); }
    66% { transform: translate(-4%, 6%) scale(0.9) rotate(-2deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes lineFlow {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100% 100%, -100% -100%; }
}

/* Floating Particles */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--clr-primary);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translateY(110vh) translateX(0) scale(0); opacity: 0; }
    50% { opacity: 0.4; transform: translateY(50vh) translateX(20px) scale(1); }
    100% { transform: translateY(-10vh) translateX(-20px) scale(1.5); opacity: 0; }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 700;
}

.font-serif {
    font-family: var(--font-serif);
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fluid Typography */
h1 {
    font-size: clamp(2.8rem, 6vw + 1rem, 5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

p {
    font-size: 1.1rem;
    color: var(--clr-text-secondary);
}

.label-small {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-accent-gold);
    display: block;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Animation Utility Classes
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Loop for stagger delays */
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; }

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-padding {
    padding: var(--space-xxl) 0;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }

/* Glassmorphism System */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.glass-accent {
    background: rgba(0, 86, 179, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-spring);
    font-size: 1.05rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background: var(--clr-primary-dark);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.4);
}

.btn-accent {
    background: var(--clr-accent-red);
    color: #fff;
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.3);
}

.btn-accent:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(196, 30, 58, 0.4);
}

.btn-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #128C7E !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: #fff;
    transform: translateY(-5px);
}
