/* ===== BASE & RESET ===== */
*, *::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;
}

/* ===== NAVBAR ===== */
.nav-text-color {
    color: #1f2937;
    transition: color 0.3s ease;
}

[data-scroll="dark"] .nav-text-color {
    color: #f9fafb;
}

[data-scroll="light"] .nav-text-color {
    color: #1f2937;
}

#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.hero-bg {
    background-color: transparent;
}

#navbar.hero-bg .nav-text-color {
    color: #f9fafb;
}

#navbar.hero-bg .menu-line {
    background-color: #f9fafb !important;
}

#navbar.scrolled .nav-text-color,
#navbar:not(.hero-bg) .nav-text-color {
    color: #1f2937;
}

#navbar.scrolled .menu-line {
    background-color: #1f2937 !important;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #C0603A;
    padding-left: 8px;
}

/* ===== HERO ANIMATIONS ===== */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #FADCD1;
    top: -100px;
    left: -100px;
    animation: floatShape 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #F5E0C8;
    bottom: 10%;
    right: 5%;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #EDC9A8;
    top: 30%;
    right: 15%;
    animation: floatShape 6s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #FADCD1;
    top: 15%;
    left: 8%;
    animation: rotateShape 12s linear infinite;
    opacity: 0.08;
}

.geo-square {
    width: 120px;
    height: 120px;
    background: #F5E0C8;
    border-radius: 20px;
    bottom: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: rotateShape 15s linear infinite;
    opacity: 0.1;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #FADCD1 2px, transparent 2px);
    background-size: 20px 20px;
    top: 60%;
    right: 25%;
    animation: floatShape 7s ease-in-out infinite;
    opacity: 0.15;
}

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

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

/* ===== BUTTONS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF9F3;
}

::-webkit-scrollbar-thumb {
    background: #D4956A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* ===== SELECTION ===== */
::selection {
    background: #C0603A;
    color: white;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
