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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf6f1;
    color: #111827;
    overflow-x: hidden;
}

/* === NAVBAR === */
#navbar {
    background: rgba(250, 246, 241, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(250, 246, 241, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

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

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

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

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

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Menu button animation */
#menuBtn .menu-line:nth-child(1) {
    top: 2.5px;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    top: 8px;
    width: 24px;
    transform: rotate(-45deg);
}

/* === HERO GEOMETRIC SHAPES === */
.geo-circle-1 {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(229, 90, 66, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 197, 122, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-rect-1 {
    position: absolute;
    top: 25%;
    left: 45%;
    width: 120px;
    height: 120px;
    background: rgba(229, 90, 66, 0.06);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-triangle-1 {
    position: absolute;
    bottom: 25%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(232, 197, 122, 0.1);
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    top: 20%;
    left: 8%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(229, 90, 66, 0.2) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* === SCROLL LINE === */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* === SERVICE CARDS === */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(229, 90, 66, 0.15);
}

/* === GALLERY === */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === BACK TO TOP === */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* === FORM STYLES === */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 90, 66, 0.15);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }

    .geo-rect-1 {
        display: none;
    }

    .geo-triangle-1 {
        display: none;
    }
}

/* === SELECTION === */
::selection {
    background: rgba(229, 90, 66, 0.2);
    color: #111827;
}
