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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #f6f6f7;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 19, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F97316;
    transition: width 0.3s ease;
}

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

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Hero Paint Swatches ── */
.paint-swatch {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.swatch-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.5) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.swatch-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -3%;
    animation-delay: -2s;
}

.swatch-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 147, 77, 0.4) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -4s;
}

.swatch-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(234, 108, 10, 0.3) 0%, transparent 70%);
    top: 30%;
    right: 15%;
    animation-delay: -6s;
}

.swatch-5 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 186, 133, 0.3) 0%, transparent 70%);
    bottom: 25%;
    right: 30%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ── Scroll Line ── */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ── Hero Animations ── */
.hero-badge {
    animation: fadeDown 0.8s ease forwards;
}

h1 {
    animation: fadeUp 0.8s ease 0.2s both;
}

#hero p {
    animation: fadeUp 0.8s ease 0.4s both;
}

#hero .flex-col {
    animation: fadeUp 0.8s ease 0.5s both;
}

#hero .mt-16 {
    animation: fadeUp 0.8s ease 0.6s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Default visible state for progressive enhancement */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* Reduced motion: disable transitions */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
    }
    .paint-swatch {
        animation: none;
    }
    .hero-badge, h1, #hero p, #hero .flex-col, #hero .mt-16 {
        animation: none;
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}

/* ── Service Cards ── */
.service-card {
    background: rgba(26, 31, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.5s ease;
}

.service-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
}

/* ── Form Styles ── */
select option {
    background: #1a1f28;
    color: #e2e3e5;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1319;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5f626b;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .paint-swatch {
        filter: blur(60px);
        opacity: 0.3;
    }
    .swatch-1 { width: 250px; height: 250px; }
    .swatch-2 { width: 200px; height: 200px; }
    .swatch-3 { width: 150px; height: 150px; }
    .swatch-4 { width: 150px; height: 150px; }
    .swatch-5 { width: 120px; height: 120px; }

    .hero-badge span {
        font-size: 0.7rem;
    }
}
