/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(232, 101, 74, 0.3);
    color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d20;
}
::-webkit-scrollbar-thumb {
    background: #3d4248;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ── Navbar Transition ── */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(26, 29, 32, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(61, 66, 72, 0.5);
}

/* ── Mobile Menu ── */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 20px;
    margin-left: 0;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        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; }
}

/* Fallback: ensure content is visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Floating Card Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-6px) translateX(4px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: float-slow 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ── Service Card Hover Glow ── */
.group:hover .group-hover\:bg-coral-500\/25 {
    box-shadow: 0 0 30px rgba(232, 101, 74, 0.15);
}

/* ── Button Ripple Effect ── */
button, a {
    position: relative;
    overflow: hidden;
}

/* ── Select Dropdown Styling ── */
select option {
    background: #2c3035;
    color: #fff;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid rgba(232, 101, 74, 0.6);
    outline-offset: 2px;
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .floating-card-1,
    .floating-card-2 {
        display: none;
    }
}

/* ── Print Styles ── */
@media print {
    #navbar, #menuBtn, #mobileMenu {
        display: none !important;
    }
    body {
        background: white;
        color: #1a1d20;
    }
}
