/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F5F0EB;
}
::-webkit-scrollbar-thumb {
    background: #C4725A;
    border-radius: 3px;
}

/* Hero Decorative Lines */
.line-deco {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
}

.line-h1 {
    top: 20%;
    left: 0;
    right: 0;
    height: 1px;
}

.line-h2 {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

.line-h3 {
    top: 80%;
    left: 0;
    right: 0;
    height: 1px;
}

.line-v1 {
    top: 0;
    left: 20%;
    bottom: 0;
    width: 1px;
}

.line-v2 {
    top: 0;
    right: 20%;
    bottom: 0;
    width: 1px;
}

/* Scroll Line Animation */
.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Hero Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.6s; }

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

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

#navbar.scrolled #nav-logo,
#navbar.scrolled .nav-link,
#navbar.scrolled .menu-line {
    color: #44403C;
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

/* Menu Button Animation */
.menu-line:first-child {
    transform-origin: center;
}

.menu-line:last-child {
    transform-origin: center;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

#menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Form Focus States */
input:focus, textarea:focus {
    border-bottom-color: #C4725A !important;
}

/* Image Hover */
.group:hover img {
    transform: scale(1.03);
}

/* Subtle Line Separator */
.border-t {
    border-top-width: 1px;
}

/* Selection */
::selection {
    background: #F9CBB8;
    color: #702721;
}
