/* ============================================
   Multi Services of Queens — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Base reset & smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1e;
}
::-webkit-scrollbar-thumb {
    background: #1a2340;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a853;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f0f0f0;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 15, 30, 0.8);
    border-bottom: 1px solid rgba(26, 35, 64, 0.5);
}

#navbar.scrolled {
    background: rgba(3, 7, 20, 0.95);
    border-bottom-color: rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(26, 35, 64, 0.5);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hamburger animation */
#menu-btn[aria-expanded="true"] #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menu-btn[aria-expanded="true"] #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn[aria-expanded="true"] #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0), transparent);
    transition: background 0.5s ease;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #0f1629;
    color: #e5e7eb;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .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; }
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3rem;
    }
}

/* ============================================
   Focus visible for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(212, 168, 83, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu,
    .service-card,
    section:not(#hero) {
        break-inside: avoid;
    }

    body {
        background: white;
        color: #111;
    }

    a {
        color: #111;
    }
}
