/* css for smooth scrolling and utility classes */

html {
    scroll-behavior: smooth;
    /* Adjusts the scroll offset when clicking anchor links due to fixed navbar */
    scroll-padding-top: 100px; 
}

/* Custom Scrollbar - More elegant */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a; /* deep brand dark */
}
::-webkit-scrollbar-thumb {
    background: #064e3b; /* brand green dark */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a373;
}

/* Base styles / Helpers */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar Scrolled State classes */
#navbar.navbar-scrolled {
    background: rgba(15, 23, 42, 0.85); /* brand dark with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 100%;
    left: 0;
    top: 0;
    margin-top: 0;
    border-radius: 0;
}

@media (min-width: 1024px) {
    #navbar.navbar-scrolled {
        margin-top: 1rem;
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        width: calc(100% - 4rem);
        left: 2rem;
    }
}

/* Animations */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.animate-kenburns {
    animation: kenburns 20s ease-out forwards;
}

/* Text Selection */
::selection {
    background: #d4a373;
    color: #0f172a;
}

/* Watermark Text */
.watermark {
    font-size: clamp(6rem, 15vw, 16rem);
    line-height: 1;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.03);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.05em;
}

/* Simple Reveal Animation for scrolling */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
}

.animate-zoom-in {
    transform: scale(0.95);
}
.animate-zoom-in.active {
    transform: scale(1);
}

.animate-fade-in-up {
    transform: translateY(40px);
}
.animate-fade-in-up.active {
    transform: translateY(0);
}

.animate-fade-in-left {
    transform: translateX(-40px);
}
.animate-fade-in-left.active {
    transform: translateX(0);
}

.animate-fade-in-right {
    transform: translateX(40px);
}
.animate-fade-in-right.active {
    transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Custom Underline Hover */
.link-underline {
    position: relative;
}
.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #d4a373;
    transition: width 0.3s ease-in-out;
}
.link-underline:hover::after {
    width: 100%;
}

/* Modern Card Hover Effects */
.menu-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.menu-card img {
    transition: transform 0.8s ease;
}
.menu-card:hover img {
    transform: scale(1.08);
}
/* Mobile menu slide down */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
