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

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

body {
    overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #D4AB6E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0603C;
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C0603C;
    background: #FDF2EC;
    border: 1px solid #F7CBB3;
    padding: 6px 14px;
    border-radius: 100px;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.1;
    color: #1C1917;
    letter-spacing: -0.01em;
}

/* ===== NAV ===== */
#nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0603C;
    transition: width 0.25s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.menu-line {
    display: block;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== HERO SHAPES ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: rgba(253, 242, 236, 0.12);
    border-radius: 50%;
    top: -200px;
    left: -150px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(244, 233, 212, 0.15);
    border-radius: 50%;
    bottom: 10%;
    left: 30%;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(253, 251, 247, 0.1);
    border-radius: 50%;
    top: 30%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(253, 251, 247, 0.08);
    border-radius: 24px;
    top: 15%;
    right: 35%;
    transform: rotate(45deg);
    animation: spin 25s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(253, 251, 247, 0.07);
    top: 60%;
    left: 15%;
    animation: float 18s ease-in-out infinite;
}

.geo-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(253, 251, 247, 0.2) 2px, transparent 2px);
    background-size: 12px 12px;
    top: 45%;
    right: 25%;
    animation: float 14s ease-in-out infinite reverse;
}

/* ===== HERO ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* ===== SCROLL LINE ===== */
.scroll-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, white);
    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; }
}

/* ===== CARD HOVER ===== */
.card-hover {
    will-change: transform;
}

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

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-shape {
        animation: none;
    }
    .geo-rect-1 {
        animation: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .section-heading {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
