/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 114, 74, 0.2);
    color: #6B3425;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #E0C4A8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A574;
}

/* ===== Hero Gradient Orbs ===== */
.hero-gradient-orb {
    background: radial-gradient(circle, rgba(212, 165, 116, 0.4) 0%, transparent 70%);
}
.hero-gradient-orb2 {
    background: radial-gradient(circle, rgba(204, 124, 92, 0.2) 0%, transparent 70%);
}

/* ===== Scroll Dot ===== */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { top: 0; opacity: 1; }
    50% { top: 16px; opacity: 0.3; }
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #D4724A 0%, #C05C3A 100%);
    color: white;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #C05C3A 0%, #A04A30 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(192, 92, 58, 0.35);
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #44403C;
    border: 1.5px solid #E7E5E4;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-secondary:hover {
    border-color: #D4724A;
    color: #D4724A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 114, 74, 0.12);
}

/* ===== Input Fields ===== */
.input-field {
    background: #FAFAF9;
    border: 1.5px solid #E7E5E4;
    transition: all 0.3s ease;
}
.input-field:focus {
    background: white;
    border-color: #D4A574;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}
.input-field:hover:not(:focus) {
    border-color: #D4C4B0;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #D4724A, #E08A5E);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ===== Mobile Menu ===== */
.menu-line {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}
.mobile-menu.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu.active .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* ===== Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal-scale {
    transform: scale(0.95) translateY(20px);
}
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ===== Staggered children ===== */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* ===== Parallax Images ===== */
.parallax-img {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ===== Divider ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E7E5E4, transparent);
}

/* ===== Floating Card Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* ===== Decorative Pattern ===== */
.pattern-dots {
    background-image: radial-gradient(circle, #E0C4A8 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-gradient-orb {
        width: 300px;
        height: 300px;
    }
    .hero-gradient-orb2 {
        width: 200px;
        height: 200px;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, .scroll-indicator, #contact {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
