/* ─── Reset & Base ─── */
*, *::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(255, 107, 63, 0.2);
    color: #1a1a1a;
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c7c7cd;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* ─── Hero Animations ─── */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroScale {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-badge {
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.hero-badge {
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.hero h1 {
    animation: heroFadeIn 0.8s ease-out 0.4s both;
}

.hero p {
    animation: heroFadeIn 0.8s ease-out 0.6s both;
}

.hero > div > div:last-child {
    animation: heroFadeIn 0.8s ease-out 0.8s both;
}

.hero-img {
    animation: heroScale 1.2s ease-out both;
}

/* ─── Reveal Animations (below fold only) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-100 { transition-delay: 100ms; }
    .reveal.delay-200 { transition-delay: 200ms; }
    .reveal.delay-300 { transition-delay: 300ms; }
}

/* ─── Service Cards ─── */
.service-card {
    will-change: transform;
}

/* ─── Gallery Items ─── */
.gallery-item {
    will-change: transform;
}

.gallery-item img {
    display: block;
}

/* ─── Navbar Transition ─── */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo-text {
    color: #1a1a1a !important;
}

.navbar-scrolled .menu-line {
    background: #1a1a1a !important;
}

/* ─── Mobile Menu ─── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ─── Hero Overlay ─── */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 23, 0.72) 0%,
        rgba(20, 20, 23, 0.55) 50%,
        rgba(20, 20, 23, 0.68) 100%
    );
}

/* ─── Custom Select Arrow ─── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ─── Subtle Hover Glow for Coral Buttons ─── */
button[type="submit"]:hover {
    box-shadow: 0 10px 40px -10px rgba(255, 107, 63, 0.4) !important;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* ─── Print Styles ─── */
@media print {
    nav, #back-to-top, .reveal { display: none; }
    body { color: #000; background: #fff; }
}
