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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #ff8a55;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f05520;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ========== SCROLL REVEAL ========== */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    position: relative;
    padding-left: 0;
}

/* ========== HERO ========== */
#top {
    scroll-margin-top: 0;
}

/* ========== SECTION TRANSITIONS ========== */
section {
    position: relative;
}

/* ========== CARD HOVER EFFECTS ========== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ========== BUTTON FOCUS ========== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff6f3a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== IMAGE LAZY LOADING ========== */
img {
    loading: lazy;
}

/* ========== SELECTION ========== */
::selection {
    background: #ffd0b8;
    color: #1a1a1a;
}
