/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F7F7F8; }
::-webkit-scrollbar-thumb { background: #D6D6DD; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B0B0BD; }

/* === Navigation === */
#nav {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}
#nav.scrolled {
    background-color: rgba(22, 22, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #E8735A;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #fff !important; }

/* Mobile menu */
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }
#mobileMenu .mobile-link { transform: translateY(20px); opacity: 0; transition: all 0.4s ease; }
#mobileMenu.open .mobile-link { transform: translateY(0); opacity: 1; }
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

.menu-line { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); width: 5px; }

/* === Hero Animations === */
.hero-subtitle { animation: fadeUp 0.8s ease 0.3s forwards; }
.hero-title { animation: fadeUp 0.8s ease 0.5s forwards; }
.hero-body { animation: fadeUp 0.8s ease 0.7s forwards; }
.hero-cta { animation: fadeUp 0.8s ease 0.9s forwards; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* === Reveal on Scroll === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* === Gallery Scroll === */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll 40s linear infinite;
}
.animate-scroll:hover {
    animation-play-state: paused;
}

/* === Form Focus States === */
input:focus, textarea:focus {
    border-color: #E8735A !important;
    box-shadow: 0 0 0 4px rgba(232, 115, 90, 0.1) !important;
}

/* === Selection === */
::selection { background: rgba(232, 115, 90, 0.2); color: #2A2A36; }

/* === Responsive === */
@media (max-width: 767px) {
    .hero-title { font-size: 2.75rem; }
    .reveal { transform: translateY(30px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title { font-size: 4.5rem; }
}
