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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== GEOMETRIC BACKGROUND SHAPES ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(192, 96, 58, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(224, 163, 80, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: -60px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 86px 50px;
    border-color: transparent transparent rgba(192, 96, 58, 0.07) transparent;
    top: 20%;
    right: 5%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 30%;
    right: 15%;
    background-image: radial-gradient(circle, rgba(192, 96, 58, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-stripe {
    position: absolute;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(192, 96, 58, 0.12), transparent);
    bottom: 25%;
    left: -30px;
    transform: rotate(-15deg);
    animation: float-slow 16s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(224, 163, 80, 0.15);
    border-radius: 12px;
    top: 40%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-slow 14s ease-in-out infinite reverse;
}

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

.geo-triangle-1 { --rotation: 15deg; }
.geo-square-1 { --rotation: 45deg; }

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 31, 26, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 4px 30px rgba(42, 31, 26, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobileMenu {
    padding: 2rem;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

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

/* Hamburger */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#menuToggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 5rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    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; }

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C0603A, #E0A350);
    border-radius: 2px;
}

/* ===== CARD HOVER EFFECTS ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(192, 96, 58, 0.2);
    color: #2A1F1A;
}

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

    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
}
