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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(21, 82, 82, 0.2);
    color: inherit;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1b5252;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #236868;
}

/* === Navbar Scroll State === */
.navbar-scrolled #navbar {
    background: rgba(7, 13, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

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

.navbar-scrolled .menu-line {
    background: #fff;
}

/* === Scroll Indicator Animation === */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

/* === Menu Category Hover === */
.menu-category li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.menu-category li:last-child {
    border-bottom: none;
}

/* === Mobile Menu === */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 6px;
}

/* === Form Focus Styles === */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* === Smooth Image Loading === */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* === Print Styles === */
@media print {
    nav, #contact, footer { display: none; }
    body { color: #000; background: #fff; }
}
