/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Color Palette - Premium White & Blue */
    --clr-bg-main: #ffffff;
    --clr-bg-surface: #f4f7f9;
    --clr-bg-surface-light: #ffffff;
    
    --clr-text-primary: #0a2540;
    --clr-text-secondary: #425466;
    
    --clr-accent-gold: #0056b3; /* Kept variable name for ease, but changed to primary blue */
    --clr-accent-gold-hover: #004494;
    --clr-accent-metallic: #71717a;
    --logo-height: 3.5rem;
    
    /* Typography */
    --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-xxl: 8rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

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

html {
    background-color: #ffffff;
}

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

/* Background patterns only show on non-home pages */
body:not(.home-page)::before, 
body:not(.home-page)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Higher than base, lower than content */
    pointer-events: none;
}

/* Rich Liquid Mesh Blobs */
body:not(.home-page)::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 110, 255, 0.45) 0%, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 255, 0.5) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(0, 230, 200, 0.25) 0%, transparent 65%),
        radial-gradient(circle at 80% 10%, rgba(0, 90, 255, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 20% 90%, rgba(0, 200, 255, 0.45) 0%, transparent 45%);
    filter: blur(100px);
    animation: liquidMorph 11s ease-in-out infinite alternate;
}

/* Multi-layered Curvy Lines */
body:not(.home-page)::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.35)' fill='none' stroke-width='3'/%3E%3Cpath d='M0,300 C250,150 350,450 500,300 C650,150 750,450 1000,300' stroke='rgba(0,150,255,0.2)' fill='none' stroke-width='2'/%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.45)' fill='none' stroke-width='4'/%3E%3Cpath d='M0,100 C300, -50 400,250 600,100 C800,-50 900,250 1100,100' stroke='rgba(0,86,179,0.25)' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 150% 150%;
    opacity: 0.75;
    animation: lineFlow 32s linear infinite;
}

@keyframes liquidMorph {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(8%, -8%) scale(1.3) rotate(5deg); }
    66% { transform: translate(-6%, 10%) scale(0.8) rotate(-5deg); }
    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: 4px;
    height: 4px;
    background: var(--clr-accent-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

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

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

button, input, textarea {
    font-family: inherit;
}

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

/* Fluid Typography for responsiveness */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    margin-bottom: var(--space-lg);
}

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

p {
    color: var(--clr-text-secondary);
}

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

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

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

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: rgba(0, 86, 179, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--clr-text-primary);
    border: 1px solid rgba(0, 86, 179, 0.2);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
}

.btn-primary:hover {
    background: rgba(0, 86, 179, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
    border-color: rgba(0, 86, 179, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--clr-text-primary);
    border: 1px solid rgba(0, 86, 179, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--clr-accent-gold);
    color: var(--clr-accent-gold);
}
