/* Blue Flow Design System - Inspired by clarq.ca */
/* Ultra-smooth color morphing system for Craig Hite LLC */

:root {
    /* Blue Flow Color Palette */
    --flow-navy: #0B0F19;        /* Deep Navy - Start */
    --flow-midnight: #1A1F2E;     /* Midnight Blue */
    --flow-electric: #0052FF;     /* Electric Blue - Signature */
    --flow-cyan: #00D4FF;         /* Cyan Accent - Peak */
    --flow-dark: #0A0C14;         /* Ultra Dark */
    
    /* Typography Scale - Massive like clarq */
    --text-hero: clamp(3rem, 10vw, 8rem);
    --text-section: clamp(2rem, 7vw, 5rem);
    --text-large: clamp(1.5rem, 4vw, 3rem);
    --text-body: clamp(1rem, 2vw, 1.25rem);
    --text-small: clamp(0.875rem, 1.5vw, 1rem);
    
    /* Spacing System */
    --space-hero: clamp(4rem, 10vh, 8rem);
    --space-section: clamp(3rem, 8vh, 6rem);
    --space-large: clamp(2rem, 5vh, 4rem);
    --space-medium: clamp(1rem, 3vh, 2rem);
    --space-small: clamp(0.5rem, 2vh, 1rem);
    
    /* Animation Timings */
    --flow-transition: 800ms cubic-bezier(0.4, 0, 0.2, 1);
    --flow-ease: cubic-bezier(0.645, 0.045, 0.355, 1);
    
    /* Current scroll-based colors (set by JS) */
    --current-bg: var(--flow-navy);
    --current-text: #FFFFFF;
    --current-accent: var(--flow-electric);
}

/* Base Reset for Minimal Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--current-bg);
    background-attachment: fixed;
    color: var(--current-text);
    transition: background 500ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 82, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Container System */
.flow-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

/* Section Heights for Color Transitions */
.flow-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-section) 0;
}

/* MOBILE FIXES FOR 3D HOUSE ICON */
@media (max-width: 768px) {
    .house-container {
        width: 44px !important;
        height: 50px !important;
        margin-top: 0px !important;
        perspective: 1000px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 4px !important;
    }
    
    .house-3d {
        width: 32px !important;
        height: 28px !important;
        margin: 2px !important;
        animation: houseRotate 6s linear infinite !important;
        transform-style: preserve-3d !important;
    }
}

@media (max-width: 480px) {
    .house-container {
        width: 40px !important;
        height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 0px !important;
        padding-top: 4px !important;
    }
    
    .house-3d {
        width: 28px !important;
        height: 24px !important;
        margin: 2px !important;
        animation: houseRotate 6s linear infinite !important;
        transform-style: preserve-3d !important;
    }
}

/* Add rotation animation for house icon */
@keyframes houseRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
}

/* Header Styles - Smooth Blue Flow Integration */
.flow-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.7) 80%, transparent 100%);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flow-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.flow-header:hover::before {
    opacity: 1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-text-homepage {
    font-family: 'Orbitron', 'Monaco', monospace;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--flow-cyan);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scaleY(0.85);
    display: inline-block;
}

.logo-text-homepage:hover {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.minimal-nav-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.minimal-nav-link {
    font-family: 'Orbitron', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    text-transform: uppercase;
}

.minimal-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--flow-cyan), var(--flow-electric));
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.minimal-nav-link:hover {
    color: var(--flow-cyan);
}

.minimal-nav-link:hover::after {
    width: 100%;
}

/* Typography Styles */
.hero-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: logoTextReveal 1.2s var(--flow-ease) 0.2s forwards;
    position: relative;
    display: inline-block;
    color: white;
}


@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.3; transform: scale(1); }
}

@keyframes sparkle1 {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(10px, -5px) scale(1); }
}

@keyframes sparkle2 {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    40% { opacity: 1; transform: translate(-8px, 8px) scale(1); }
}

@keyframes sparkle3 {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    60% { opacity: 1; transform: translate(12px, 10px) scale(1); }
}

.flow-hero-text {
    font-size: var(--text-hero);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(40px);
    animation: flowReveal 1.2s var(--flow-ease) 0.4s forwards;
}

.flow-section-title {
    font-size: var(--text-section);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-medium);
}

.flow-large-text {
    font-size: var(--text-large);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.flow-body-text {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
}

/* Logo Animation */
.flow-logo {
    width: clamp(150px, 20vw, 300px);
    height: auto;
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    animation: logoFloat 1.5s var(--flow-ease) 0.3s forwards;
}

@keyframes logoFloat {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Smooth Scroll Animations */
@keyframes logoTextReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flowReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--flow-ease);
}

.flow-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card System */
.flow-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: var(--space-medium);
    transition: all 0.3s var(--flow-ease);
}

.flow-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* Product Grid */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-medium);
    margin-top: var(--space-large);
}

/* Buttons */
.flow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    background: linear-gradient(135deg, var(--flow-cyan), var(--flow-electric));
    color: white;
    font-weight: 600;
    font-size: var(--text-body);
    text-decoration: none;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--flow-ease);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.2);
}

.flow-button::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 0.6s ease;
}

.flow-button:hover::before {
    left: 100%;
}

.flow-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 82, 255, 0.4),
        0 0 20px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, var(--flow-electric), var(--flow-cyan));
}

/* Contact Section at Bottom */
.flow-contact {
    background: var(--flow-dark);
    padding: var(--space-hero) 0;
    text-align: center;
}

.flow-contact-title {
    font-size: var(--text-hero);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-large);
}

.flow-phone {
    font-size: var(--text-section);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--flow-cyan);
    text-decoration: none;
    transition: all 0.3s var(--flow-ease);
}

.flow-phone:hover {
    transform: scale(1.05);
}

/* Form Styling */
.flow-form {
    max-width: 600px;
    margin: 0 auto;
    margin-top: var(--space-large);
}

.flow-input {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: var(--text-body);
    border-radius: 8px;
    transition: all 0.3s var(--flow-ease);
}

.flow-input:focus {
    outline: none;
    border-color: var(--flow-cyan);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .flow-hero-text {
        text-align: center;
    }
    
    .flow-grid {
        grid-template-columns: 1fr;
    }
}