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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
.nav-scrolled #navbar {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .menu-line {
    background: #292524;
}

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

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

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #f4dfaa;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f9d8cc;
    bottom: 15%;
    left: 5%;
    animation-delay: -2s;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #fefcf8;
    top: 25%;
    left: 8%;
    border-radius: 24px;
    transform: rotate(30deg);
    animation-delay: -4s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #f4dfaa;
    top: 60%;
    right: 10%;
    animation-delay: -1s;
    opacity: 0.15;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f9d8cc;
    top: 40%;
    right: 20%;
    animation-delay: -3s;
}

.geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #fefcf8 2px, transparent 2px);
    background-size: 16px 16px;
    top: 20%;
    left: 15%;
    opacity: 0.3;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

/* ===== SCROLL LINE ===== */
.scroll-line {
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-visible.reveal-up {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-visible.reveal-left {
        opacity: 1;
        transform: translateX(0);
    }
    .reveal-visible.reveal-right {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #e0654a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c2361c;
}
