/* ============================================
   SHAY'S AND ROGER'S CLEANING SERVICES
   Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GEOMETRIC BACKGROUND SHAPES
   ============================================ */
.geometric-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #4ade80;
    top: -200px;
    right: -150px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #4ade80;
    bottom: 10%;
    left: -100px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 346px solid #4ade80;
    top: 40%;
    right: 5%;
    opacity: 0.02;
}

.shape-diamond {
    width: 200px;
    height: 200px;
    background: #4ade80;
    top: 60%;
    left: 10%;
    transform: rotate(45deg);
    opacity: 0.02;
}

.shape-arc {
    width: 300px;
    height: 300px;
    border: 60px solid #4ade80;
    border-radius: 50%;
    top: 20%;
    left: 5%;
    opacity: 0.02;
}

/* ============================================
   FLOATING CARDS ANIMATION
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-stat-1 {
    animation-delay: 0s;
}

.card-stat-2 {
    animation-delay: 2s;
}

.card-stat-3 {
    animation-delay: 4s;
}

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

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #4ade80;
}

/* ============================================
   HERO
   ============================================ */
.scroll-indicator {
    opacity: 0.6;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 41, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(74, 222, 128, 0.1);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive Enhancement - only active with JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for grid items */
    .reveal:nth-child(2) { transition-delay: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
    .reveal:nth-child(4) { transition-delay: 300ms; }
    .reveal:nth-child(5) { transition-delay: 400ms; }
    .reveal:nth-child(6) { transition-delay: 500ms; }
}

/* When JS is enabled, reveal on scroll */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(40px);
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   GEOMETRIC PATTERN (CTA Section)
   ============================================ */
.geometric-pattern {
    background-image: 
        linear-gradient(30deg, #102a43 12%, transparent 12.5%, transparent 87%, #102a43 87.5%, #102a43),
        linear-gradient(150deg, #102a43 12%, transparent 12.5%, transparent 87%, #102a43 87.5%, #102a43),
        linear-gradient(30deg, #102a43 12%, transparent 12.5%, transparent 87%, #102a43 87.5%, #102a43),
        linear-gradient(150deg, #102a43 12%, transparent 12.5%, transparent 87%, #102a43 87.5%, #102a43);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-nav-link {
    display: block;
    padding: 8px 16px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

/* ============================================
   FORM STYLES
   ============================================ */
select option {
    background: #102a43;
    color: #fff;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .floating-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 12px 0;
        animation: none;
    }
    
    .hero-card-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .shape-circle-1,
    .shape-circle-2,
    .shape-triangle,
    .shape-diamond,
    .shape-arc {
        display: none;
    }
}

/* ============================================
   FOCUS VISIBLE FOR ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #fff;
}
