/* === BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* === NAVBAR === */
#navbar {
    background: rgba(254, 252, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228, 193, 178, 0.3);
}

#navbar.scrolled {
    background: rgba(254, 252, 248, 0.95);
    box-shadow: 0 4px 30px rgba(110, 66, 46, 0.08);
}

.nav-logo-text {
    transition: color 0.3s;
}

/* === MOBILE MENU === */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

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

#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 {
    display: block;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.4rem;
}

/* === HERO === */
.navbar-spacer {
    height: 72px;
}

/* === GEOMETRIC SHAPES === */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(233, 100, 64, 0.08) 0%, transparent 70%);
    top: -80px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(238, 191, 104, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(243, 184, 165, 0.2);
    border-radius: 24px;
    top: 25%;
    right: 3%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(233, 100, 64, 0.06);
    bottom: 20%;
    right: 15%;
    animation: float-slow 7s ease-in-out infinite;
}

.geo-dot-group {
    position: absolute;
    pointer-events: none;
}

.geo-dot-group::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d94f25;
    border-radius: 50%;
    top: 30%;
    left: 45%;
    opacity: 0.2;
    animation: pulse-dot 3s ease-in-out infinite;
}

.geo-dot-group::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #eebf68;
    border-radius: 50%;
    top: 32%;
    left: 47%;
    opacity: 0.3;
    animation: pulse-dot 3s ease-in-out infinite 0.5s;
}

/* === ANIMATIONS === */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(15deg); }
    to { transform: rotate(375deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-8px) rotate(15deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
}

/* === HERO BADGE === */
.hero-badge {
    animation: fadeInUp 0.6s ease-out both;
}

/* === SCROLL REVEAL === */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float, .animate-float-delayed {
        animation: none;
    }
    .geo-circle-1, .geo-circle-2, .geo-rect-1, .geo-triangle-1 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* === SERVICE CARDS === */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.5s ease, background 0.3s ease;
}

/* === SCROLL INDICATOR === */
.scroll-indicator-line {
    background: linear-gradient(to bottom, #c09e8e, transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* === FADE IN UP === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    .geo-rect-1 {
        width: 70px;
        height: 70px;
    }
}
