/* ========================================
   Wholesale Water Conditioning LLC
   Custom Styles
======================================== */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Geometric Animations
======================================== */

.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid #ff7491;
    top: 10%;
    right: -5%;
    animation: float1 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7491, #ffadb8);
    bottom: 15%;
    left: -3%;
    animation: float2 15s ease-in-out infinite;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    top: 40%;
    right: 10%;
    animation: float3 12s ease-in-out infinite;
}

.geo-rect-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 116, 145, 0.3);
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin1 25s linear infinite;
}

.geo-rect-2 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    bottom: 25%;
    right: 8%;
    transform: rotate(30deg);
    animation: spin2 18s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 116, 145, 0.15);
    top: 60%;
    left: 15%;
    animation: float4 22s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, -20px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -15px); }
    50% { transform: translate(-5px, 10px); }
    75% { transform: translate(-15px, -5px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(20px, -25px) rotate(60deg); }
}

@keyframes spin1 {
    from { transform: rotate(45deg) translate(0, 0); }
    to { transform: rotate(405deg) translate(0, 0); }
}

@keyframes spin2 {
    from { transform: rotate(30deg); }
    to { transform: rotate(390deg); }
}

/* ========================================
   Navbar
======================================== */

#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(139, 26, 77, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Service Cards
======================================== */

.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Why Us Cards
======================================== */

.why-card {
    transform: translateY(0);
}

.why-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Testimonial Cards
======================================== */

.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: only apply
   when prefers-reduced-motion is off
======================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Mobile Menu
======================================== */

.mobile-link {
    display: block;
}

.mobile-link:hover {
    color: #ffadb8;
}

/* ========================================
   Form Focus States
======================================== */

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========================================
   Accessibility
======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Responsive Adjustments
======================================== */

@media (max-width: 640px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-circle-3,
    .geo-rect-1,
    .geo-rect-2,
    .geo-triangle {
        display: none;
    }
}
