/* ── Base & Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

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

#navbar.scrolled {
    background: rgba(249, 240, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 63, 91, 0.08);
}

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

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

.menu-line.active:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-line.active:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

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

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

/* ── Room Cards ── */
.room-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.room-card:nth-child(2) { transition-delay: 0.1s; }
.room-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Experience Section ── */
#experience .grid > div {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#experience .grid > div.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Location Cards ── */
#location > div > div > div {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#location > div > div > div.visible {
    opacity: 1;
    transform: translateY(0);
}

#location > div > div > div:nth-child(1) { transition-delay: 0s; }
#location > div > div > div:nth-child(2) { transition-delay: 0.1s; }
#location > div > div > div:nth-child(3) { transition-delay: 0.2s; }

/* ── Section Headers ── */
.section-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Floating Card ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

/* ── Focus Styles ── */
input:focus, textarea:focus {
    outline: none;
}

/* ── Selection ── */
::selection {
    background: rgba(123, 63, 91, 0.15);
    color: #5A2B42;
}

/* ── Smooth transitions for all interactive elements ── */
a, button {
    transition: all 0.3s ease;
}

/* ── Print ── */
@media print {
    #navbar, #mobile-menu { display: none; }
    body { background: white; }
}
