/* ========================================
   AA's Mobile Service — Custom Styles
   ======================================== */

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

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

body {
    background-color: #040d1a;
    color: #f0fdf4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d1a;
}
::-webkit-scrollbar-thumb {
    background: #1a3a6b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

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

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 10%;
    left: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-triangle {
    top: 40%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(34, 197, 94, 0.04);
    transform: rotate(20deg);
}

.geo-square {
    top: 60%;
    right: 8%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(34, 197, 94, 0.08);
    border-radius: 16px;
    transform: rotate(45deg);
}

.geo-dots {
    bottom: 20%;
    right: 15%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(34, 197, 94, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    border-radius: 12px;
}

/* ========================================
   Navigation
   ======================================== */
.nav-header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-header.scrolled {
    background-color: rgba(4, 13, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.2s ease, left 0.2s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* Mobile Menu */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* ========================================
   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, #22c55e, #86efac);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible by default)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
}

/* ========================================
   Button Hover Effects
   ======================================== */
button[type="submit"],
a[href="tel:+15738811575"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after,
a[href="tel:+15738811575"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

button[type="submit"]:hover::after,
a[href="tel:+15738811575"]:hover::after {
    opacity: 1;
}

/* ========================================
   Form Focus States
   ======================================== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-triangle,
    .geo-square,
    .geo-dots {
        display: none;
    }
}
