/* ============================================
   Labor Pros — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(52, 212, 168, 0.25);
    color: #0a1628;
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    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: 1.5px;
    background: #34d4a8;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #34d4a8 !important;
}

/* --- Mobile Menu --- */
#mobile-menu {
    max-height: 0;
    opacity: 0;
}

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

.mobile-link {
    position: relative;
    padding-left: 0;
}

/* --- Hero --- */
.hero-decor {
    animation: float 8s ease-in-out infinite;
}

.hero-circle-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 212, 168, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.hero-circle-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 212, 168, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -3s;
}

.hero-circle-3 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 212, 168, 0.15) 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation-delay: -5s;
}

.hero-ray-1 {
    position: absolute;
    width: 2px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, rgba(52, 212, 168, 0.1), transparent);
    top: 0;
    left: 25%;
    transform: rotate(15deg);
    animation-delay: -2s;
}

.hero-ray-2 {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(52, 212, 168, 0.08), transparent);
    top: 0;
    right: 30%;
    transform: rotate(-10deg);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

.hero-content {
    animation: heroFadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(10, 22, 40, 0.12);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.15s; }
.service-card:nth-child(3) { transition-delay: 0.25s; }
.service-card:nth-child(4) { transition-delay: 0.35s; }
.service-card:nth-child(5) { transition-delay: 0.45s; }
.service-card:nth-child(6) { transition-delay: 0.55s; }

/* --- Form --- */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.15);
}

#contact-form button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#contact-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

#contact-form button[type="submit"]:hover::before {
    left: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-circle-1 {
        width: 300px;
        height: 300px;
        right: -100px;
    }
    
    .hero-circle-2 {
        width: 200px;
        height: 200px;
    }
}

/* --- 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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
