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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #1A1A1A;
    color: #ffffff;
    overflow-x: hidden;
}

.font-space-grotesk {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.font-inter {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Navbar Scroll State ── */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Selection ── */
::selection {
    background: rgba(255, 90, 61, 0.4);
    color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #2D2D2D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF5A3D;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ── Service Card Hover ── */
.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

/* ── Form Focus Styles ── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: fadeUp 0.3s ease;
}

/* ── Responsive typography ── */
@media (max-width: 640px) {
    h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }
}

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

@media (min-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }
}

/* ── Utility ── */
.text-balance {
    text-wrap: balance;
}
