/* ===== Base & Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #080706;
    color: #e5e5e5;
}

::selection {
    background-color: rgba(201, 169, 110, 0.3);
    color: #fff;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0e0c0b;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.5);
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(8, 7, 6, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 169, 110, 0.1);
}

.nav-link {
    position: relative;
}

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

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

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

#menuIcon span:nth-child(1) {
    transform-origin: top;
}

#menuIcon span:nth-child(3) {
    transform-origin: bottom;
}

body.menu-open {
    overflow: hidden;
}

#menuIcon.active span:nth-child(1) {
    transform: rotate(45deg) translateY(4px);
}

#menuIcon.active span:nth-child(2) {
    opacity: 0;
}

#menuIcon.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-4px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Hero ===== */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1.2s ease forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

.animate-scrollDown {
    animation: scrollDown 1.8s ease-in-out infinite;
}

/* ===== About ===== */
.about-images {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Menu ===== */
.menu-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.menu-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-tab {
    background: transparent;
    color: #9ca3af;
    border: none;
    cursor: pointer;
    position: relative;
}

.menu-tab.active {
    background: rgba(201, 169, 110, 0.15);
    color: #C9A96E;
}

.menu-tab:hover:not(.active) {
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.03);
}

.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item:hover {
    border-color: rgba(201, 169, 110, 0.15);
    background: rgba(201, 169, 110, 0.03);
}

/* ===== Gallery ===== */
.gallery-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Visit ===== */
.visit-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.visit-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.visit-map {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.visit-map.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Contact ===== */
.contact-form-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Date Input ===== */
.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .font-display {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-images {
        margin-top: 40px;
    }
}
