/* ===== Custom Styles for Paulie's Family Car Wash ===== */

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

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

body {
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav-scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

.nav-scrolled .menu-line {
    background: #800020;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    position: relative;
}

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

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

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #FFFAF5 0%, #FCE7EB 50%, #fdf2f4 100%);
    min-height: 100vh;
}

.hero-img-wrapper {
    box-shadow: 24px 24px 0px #800020, 0 25px 60px rgba(128, 0, 32, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-img-wrapper:hover {
    transform: translate(-4px, -4px);
    box-shadow: 28px 28px 0px #800020, 0 30px 70px rgba(128, 0, 32, 0.25);
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 40, 79, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 148, 148, 0.2);
    border-radius: 24px;
    bottom: 20%;
    left: 5%;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(128, 0, 32, 0.06);
    top: 30%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 148, 148, 0.15);
    top: 15%;
    right: 15%;
    animation: spin 20s linear infinite;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(128, 0, 32, 0.12) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 15%;
    right: 5%;
    animation: float 9s ease-in-out infinite reverse;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:not(:hover)::before {
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
}

/* ===== Feature Blocks ===== */
.feature-block {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-block:hover {
    transform: translateY(-2px);
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Prefers reduced motion */
@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 ===== */
@media (max-width: 768px) {
    .hero-img-wrapper {
        box-shadow: 12px 12px 0px #800020, 0 15px 40px rgba(128, 0, 32, 0.2);
    }
    
    .hero-img-wrapper:hover {
        box-shadow: 16px 16px 0px #800020, 0 20px 50px rgba(128, 0, 32, 0.25);
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #B8284F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: rgba(128, 0, 32, 0.15);
    color: #4a0010;
}
