/* ========== Base Styles ========== */
*, *::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: #c9a84c;
    color: #0d1529;
}

/* ========== Scroll Animations ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== Scroll Down Indicator ========== */
@keyframes scrollDown {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(13, 21, 41, 0.08);
}

#navbar.scrolled #nav-logo-text {
    color: #1a2744;
}

/* ========== Mobile Menu ========== */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu:not(.open) {
    transform: translateX(100%);
}

.menu-line:nth-child(1) {
    transform: translateY(-6px);
}

.menu-line:nth-child(3) {
    transform: translateX(4px);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translateX(-4px);
}

/* ========== Nav Links ========== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== Mobile Links ========== */
.mobile-link {
    position: relative;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(201, 168, 76, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ========== Input Focus ========== */
input:focus,
select:focus,
textarea:focus {
    border-color: #c9a84c !important;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15) !important;
}

/* ========== Button Hover Effects ========== */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== Image Hover ========== */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== Responsive Typography ========== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ========== Smooth Image Loading ========== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* ========== Selection ========== */
::selection {
    background: #c9a84c;
    color: #0d1529;
}

/* ========== Print Styles ========== */
@media print {
    #navbar, #mobile-menu, .animate-scroll-down {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
