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

body {
    background-color: #041c1c;
}

::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: #FDF8F0;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #041c1c;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* === Animations === */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-line {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.3);
    }
}

.animate-fade-up {
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* === Scroll Reveal === */
.reveal-up,
.reveal-left,
.reveal-right {
    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-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4A853, #C49A3C);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #D4A853 !important;
}

/* === Mobile Nav Links === */
.mobile-nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4A853, #C49A3C);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 60px;
}

/* === Input Focus States === */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* === Button Hover Glow === */
button:hover,
a:hover {
    transform: translateY(-1px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* === Gold Gradient Text Fallback === */
.text-transparent.bg-clip-text {
    -webkit-text-fill-color: transparent;
}

/* === Image Loading === */
img {
    max-width: 100%;
    height: auto;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* === Print Styles === */
@media print {
    header,
    #contact-form,
    .animate-scroll-line {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
