/* ===== Base & Utilities ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Decorative Animations ===== */
.deco-circle {
    animation: float 8s ease-in-out infinite;
}

.deco-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== Scroll Reveal ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #FF6B6B;
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #FF6B6B;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF5F5;
}

::-webkit-scrollbar-thumb {
    background: #FFADAD;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E85555;
}

/* ===== Selection ===== */
::selection {
    background: #FF6B6B;
    color: white;
}

/* ===== Smooth image loading ===== */
img {
    image-rendering: auto;
}

/* ===== Print styles ===== */
@media print {
    #navbar, .deco-circle, .deco-float {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
