/* ── 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: rgba(201, 152, 46, 0.2);
    color: #0a1628;
}

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

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

/* ── Navbar transition ── */
.nav-link-text {
    transition: color 0.3s ease;
}

.nav-scrolled .nav-link-text {
    color: rgba(255, 255, 255, 0.85);
}

.nav-scrolled #navbar {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

/* ── Mobile Menu ── */
.mobile-nav-link {
    transition: color 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

/* ── Service Card Hover ── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.6);
}
