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

:root {
    --charcoal: #0D0D0D;
    --charcoal-light: #161616;
    --surface: #1A1A1A;
    --offwhite: #F5F0EB;
    --coral: #FF6B4A;
    --coral-dark: #E85A3A;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--charcoal);
    color: var(--offwhite);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .font-heading { font-family: 'Space Grotesk', sans-serif; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Navbar ─────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0;
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 24px; }
.mobile-link { transition: color var(--transition); }

/* ── Buttons ────────────────────────────────────── */
.btn-coral {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--coral);
    color: var(--charcoal);
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-coral:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 74, 0.3);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--offwhite);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-outline:hover {
    border-color: var(--coral);
    background: rgba(255, 107, 74, 0.1);
    transform: translateY(-2px);
}

/* ── Hero ───────────────────────────────────────── */
.hero-overlay {
    background: linear-gradient(
        to right,
        rgba(13, 13, 13, 0.95) 0%,
        rgba(13, 13, 13, 0.75) 50%,
        rgba(13, 13, 13, 0.4) 100%
    );
}

/* ── Marquee ────────────────────────────────────── */
.marquee-track { animation: marquee 25s linear infinite; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Service Cards ──────────────────────────────── */
.service-card {
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(255, 107, 74, 0.08);
}

/* ── Gallery ────────────────────────────────────── */
.gallery-item { position: relative; cursor: pointer; }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }

/* ── Form ───────────────────────────────────────── */
.input-field {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: var(--offwhite);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.input-field::placeholder { color: rgba(245, 240, 235, 0.3); }
.input-field:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}
select.input-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF6B4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select.input-field option { background: var(--surface); color: var(--offwhite); }

/* ── Scroll Animations ──────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .font-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
    #hero h1 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
    .service-card { padding: 1.5rem; }
    #about .relative > div:first-child { margin-bottom: 2rem; }
    .gallery-item { min-height: 180px; }
}
