/* ===== 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: 'Outfit', sans-serif;
    background-color: #0a1a2e;
    color: #d9e2ec;
    overflow-x: hidden;
}

::selection {
    background: #D4A017;
    color: #0a1a2e;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for elements that get animated — visible by default for accessibility */
.reveal[data-animated="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply hidden state when JS is active and animation is desired */
@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed):not([data-animated="true"]) {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.08);
}

/* ===== PROJECT CARDS ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== FORM ===== */
select option {
    background: #1a2d45;
    color: #d9e2ec;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #D4A017;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-playfair {
        line-height: 1.1;
    }
}
