/* ===== Custom base styles ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Floating card animations ===== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes floatMedium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-0.5deg); }
}
@keyframes floatFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.3deg); }
}

.animate-float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}
.animate-float-medium {
    animation: floatMedium 4s ease-in-out infinite;
    animation-delay: 0.5s;
}
.animate-float-fast {
    animation: floatFast 3.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===== Navbar scroll state ===== */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile menu animation ===== */
#mobile-menu.open {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Bar hamburger animation ===== */
#menu-btn.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== Selection color ===== */
::selection {
    background: #1B5E20;
    color: #fefdf8;
}

/* ===== Focus visible ===== */
:focus-visible {
    outline: 2px solid #1B5E20;
    outline-offset: 2px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf0;
}
::-webkit-scrollbar-thumb {
    background: #1B5E20;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #33691e;
}
