/* ===================================
   Maid in Manatee — Custom Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===================================
   Floating Background Shapes
   =================================== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #14b8a6;
    top: -200px;
    right: -150px;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #0d9488;
    bottom: 20%;
    left: -100px;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    top: 50%;
    right: 5%;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #14b8a6;
    top: 30%;
    left: 3%;
    transform: rotate(-15deg);
}

.geo-dots {
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, #14b8a6 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    bottom: 10%;
    right: 10%;
    opacity: 0.06;
}

/* ===================================
   Hero Geometric Shapes
   =================================== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 10%;
    left: -5%;
}

.hero-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    top: 20%;
    right: 5%;
    transform: rotate(30deg);
}

.hero-geo-3 {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    bottom: 25%;
    left: 10%;
}

.hero-geo-4 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255,255,255,0.06);
    top: 40%;
    right: 15%;
    transform: rotate(20deg);
}

.hero-geo-5 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    bottom: 10%;
    right: -3%;
}

/* ===================================
   CTA Section Geometric Shapes
   =================================== */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.cta-geo-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -200px;
    left: -100px;
}

.cta-geo-2 {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 40px;
    bottom: -50px;
    right: 10%;
    transform: rotate(45deg);
}

.cta-geo-3 {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: 20%;
    right: 20%;
}

/* ===================================
   Navbar
   =================================== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .logo-text {
    color: #0f172a;
}

/* Mobile menu */
.mobile-link {
    display: block;
}

/* ===================================
   Scroll Reveal
   =================================== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Progressive enhancement — animated only when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
    perspective: 1000px;
}

/* ===================================
   Form Styles
   =================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1) !important;
}

/* ===================================
   Animations
   =================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
}

/* Apply animations only when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .hero-geo-1 { animation: float-slow 6s ease-in-out infinite; }
    .hero-geo-2 { animation: float 5s ease-in-out infinite; }
    .hero-geo-3 { animation: float-reverse 7s ease-in-out infinite; }
    .hero-geo-4 { animation: float-slow 8s ease-in-out infinite; }
    .hero-geo-5 { animation: float 6s ease-in-out infinite; }
    
    .cta-geo-1 { animation: float-slow 10s ease-in-out infinite; }
    .cta-geo-2 { animation: float 7s ease-in-out infinite; }
    .cta-geo-3 { animation: float-reverse 5s ease-in-out infinite; }
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 767px) {
    .geo-shape {
        display: none;
    }
}

@media (min-width: 768px) {
    .geo-shape {
        display: block;
    }
}
