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

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

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}

/* Navbar scroll state */
#navbar {
    background: rgba(255, 255, 255, 0.0);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b2e;
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* Mobile menu */
.mobile-nav-link {
    position: relative;
    border-bottom: 1px solid #e2e2e2;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Hero image parallax-like subtle effect */
#hero img {
    will-change: transform;
}

/* Gallery hover */
#gallery .rounded-2xl {
    overflow: hidden;
}

#gallery .rounded-2xl img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#gallery .rounded-2xl:hover img {
    transform: scale(1.05);
}

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    #gallery .rounded-2xl img {
        transition: none;
    }
    .floating-card {
        animation: none;
    }
}

/* Floating card animation */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

/* Selection */
::selection {
    background: #ff6b2e;
    color: #ffffff;
}
