/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #0a1628;
}

/* ===== Navigation ===== */
.nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.nav-link:hover {
    color: #c9a84c;
}

#navbar.scrolled .nav-link {
    color: rgba(15, 33, 64, 0.7);
}

#navbar.scrolled .nav-link:hover {
    color: #b8943f;
}

#navbar.scrolled .logo-text {
    color: #0f2140;
}

/* ===== Hero Animations ===== */
.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-title {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-desc {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-cta {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #b8943f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Gallery ===== */
.gallery-item {
    height: 280px;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(10, 22, 40, 0.2);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .gallery-item img {
        transition: none;
    }
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #c9a84c;
}

/* ===== Form ===== */
input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #c9a84c !important;
}

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

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

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        height: 320px;
    }
}
