/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #5eead4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(240, 253, 244, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}
.nav-text {
    transition: color 0.3s;
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #0f172a;
    border: 2px solid transparent;
}
.menu-tab.active {
    background: #0f172a;
    color: #f0fdf4;
}
.menu-tab:hover:not(.active) {
    border-color: #5eead4;
    color: #059669;
}

/* Menu items animation */
.menu-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}
.menu-item.hidden {
    display: none;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

/* Menu lines animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px;
    margin-left: 0;
    margin-right: 0;
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .menu-item {
        transition: none;
    }
    img:hover, .group:hover .group-hover\:scale-110 {
        transform: none;
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 4px;
}
