/* ===== BASE STYLES ===== */
*, *::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: #FDF9F3;
    color: #714E38;
    overflow-x: hidden;
}

::selection {
    background-color: #C1666B;
    color: #FDF9F3;
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 102, 107, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(193, 102, 107, 0.06);
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 165, 116, 0.08);
    top: 60%;
    right: 8%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(193, 102, 107, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 15%;
    right: 15%;
    opacity: 0.5;
}

/* Diamond shape for dark section */
.geo-diamond-1 {
    width: 300px;
    height: 300px;
    background: rgba(193, 102, 107, 0.08);
    top: 20%;
    left: -100px;
    transform: rotate(45deg);
    animation: spin-slow 40s linear infinite;
}

.geo-circle-3 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(212, 165, 116, 0.15);
    top: 50%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.geo-stripe-1 {
    width: 400px;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        rgba(193, 102, 107, 0.1) 0px,
        rgba(193, 102, 107, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    bottom: 30%;
    left: 0;
    transform: skewX(-20deg);
}

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

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

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }

/* ===== NAVBAR ===== */
#navbar.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(113, 78, 56, 0.08);
}

.menu-line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #714E38;
    transition: all 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu link hover effect */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #C1666B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 80%;
}

/* ===== BUTTONS ===== */
a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
    
    .geo-dots {
        width: 100px;
        height: 100px;
    }
}

/* ===== SMOOTH SCROLL OFFSET ===== */
[id] {
    scroll-margin-top: 80px;
}

/* ===== IMAGE LOADING ===== */
img {
    background-color: #F5E6D3;
}
