/* ==========================================================================
   PERFECT SOLUTIONS - GLOBAL DESIGN SYSTEM
   ========================================================================== */

/* Load Premium Typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color System - Water Focus (Dominant) */
    --color-primary: #00253D;             /* Engineering Navy Dark */
    --color-primary-container: #063B5C;   /* Engineering Navy Medium */
    --color-secondary: #087EA4;           /* Deep Ocean Blue / Clean Water Blue */
    --color-aqua: #19B5C5;                /* Aqua Accent */
    
    /* Color System - Solar Focus (Accent) */
    --color-solar-gold: #F5B82E;          /* Solar Gold Accent */
    --color-solar-amber: #E89A18;         /* Warm Amber Accent */

    /* Environmental Scenes Background Colors */
    --color-deep-navy: #030F1A;           /* Deep Navy Environment */
    --color-dark-teal: #05262B;           /* Dark Teal Environment */
    --color-dark-water: #041B26;          /* Dark Water Environment */
    --color-engineering-blue: #011E30;    /* Deep Blue Engineering Environment */

    /* Neutrals & Surfaces (Dark Environmental Theme) */
    --color-bg-base: var(--color-deep-navy); /* Deep Navy Base Background */
    --color-bg-card: rgba(11, 38, 56, 0.45); /* Frosted dark navy panel */
    --color-text-on-light: #F8FAFC;       /* Default text is now light */
    --color-text-on-dark: #FFFFFF;        /* White text */
    --color-text-muted: #A2B6C5;          /* Soft slate blue for secondary text */
    --color-border-light: rgba(25, 181, 197, 0.15); /* Light aqua borders */
    --color-border-dark: rgba(255, 255, 255, 0.08);
    
    /* Shadows & Glows */
    --shadow-premium: 0 10px 40px -10px rgba(6, 59, 92, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(6, 59, 92, 0.04);
    --shadow-text: 0 2px 10px rgba(0, 0, 0, 0.15);

    /* Layout, Spacing & Border Radius */
    --spacing-unit: 8px;
    --container-max: 1280px;
    --flow-gap-desktop: 120px;
    --flow-gap-mobile: 80px;
    
    --radius-sm: 0.125rem;
    --radius-default: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;

    /* Transition defaults */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-on-light);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Typography Classes */
.display-lg {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); /* Responsive 72px max */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline-xl {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: clamp(2rem, 3vw + 0.5rem, 3rem); /* Responsive 48px max */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.headline-lg {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2vw + 0.25rem, 2rem); /* Responsive 32px max */
    font-weight: 600;
    line-height: 1.3;
}

.body-lg {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 1.2vw, 1.25rem); /* Responsive 18px max */
    font-weight: 400;
    line-height: 1.6;
}

.body-md {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.label-md {
    font-family: 'Geist', monospace;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.label-sm {
    font-family: 'Geist', monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Core Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(24px, 5vw, 64px);
    padding-right: clamp(24px, 5vw, 64px);
}

.flow-gap {
    padding-top: var(--flow-gap-desktop);
    padding-bottom: var(--flow-gap-desktop);
}

@media (max-width: 768px) {
    .flow-gap {
        padding-top: var(--flow-gap-mobile);
        padding-bottom: var(--flow-gap-mobile);
    }
}

/* Glassmorphism & Elevation */
.glass-panel {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-glass);
}

.glass-panel-dark {
    background: rgba(0, 37, 61, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-dark);
    box-shadow: var(--shadow-glass);
    color: var(--color-text-on-dark);
}

/* The Flow Motifs & Subtle Animations */
.flow-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.flow-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: flowAnimation 8s linear infinite;
}

@keyframes flowAnimation {
    to {
        stroke-dashoffset: 0;
    }
}

/* Parallax and Scroll reveal support classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .flow-path {
        animation: none !important;
        stroke-dashoffset: 0 !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
