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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
    background: #7f1e1e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a2323;
}

/* ===== Selection ===== */
::selection {
    background: rgba(154, 35, 35, 0.4);
    color: #fff;
}

/* ===== Navbar Transition ===== */
#navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Hero Image Grid ===== */
@media (min-width: 1024px) {
    #hero .grid > div:first-child {
        animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    }
    #hero .grid > div:last-child {
        animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Menu Card Hover ===== */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #b82e2e;
    outline-offset: 2px;
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ===== Map Invert Fix ===== */
iframe[title*="Google Maps"] {
    border-radius: 16px;
}

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

/* ===== Print Styles ===== */
@media print {
    nav, #contact-form, .reveal {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
