/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
}

::selection {
    background: #C0593A;
    color: #fff;
}

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

#navbar.scrolled {
    background: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 19, 16, 0.08);
}

#navbar.scrolled .font-display {
    color: #1A1310;
}

#navbar.scrolled .menu-line {
    background: #1A1310;
}

/* ========== MOBILE MENU ========== */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* ========== GEOMETRIC DECORATIVE SHAPES ========== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: #C0593A;
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-square-1 {
    width: 300px;
    height: 300px;
    background: #e8d5a8;
    bottom: 20%;
    left: -80px;
    transform: rotate(45deg);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #C0593A;
    top: 50%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: #e8d5a8;
    border-radius: 50%;
    bottom: -150px;
    left: 30%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ========== SCROLL ANIMATIONS ========== */
.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.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    border-color: #C0593A !important;
    box-shadow: 0 0 0 3px rgba(192, 89, 58, 0.15) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }

    .geo-circle-1 { display: block; width: 300px; height: 300px; }
    .geo-circle-2 { display: block; width: 200px; height: 200px; }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}
