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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #E85D20;
    color: #FDFBF7;
}

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

.geo-1 {
    width: 600px;
    height: 600px;
    background: rgba(253, 251, 247, 0.06);
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-2 {
    width: 300px;
    height: 300px;
    background: rgba(253, 251, 247, 0.04);
    bottom: 10%;
    left: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-3 {
    width: 150px;
    height: 150px;
    background: rgba(253, 235, 210, 0.15);
    top: 40%;
    right: 15%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
    transform: rotate(45deg);
}

.geo-4 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(253, 251, 247, 0.12);
    top: 20%;
    left: 5%;
    animation: spin-slow 30s linear infinite;
}

.geo-5 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.02);
    bottom: -200px;
    right: -100px;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-6 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(253, 235, 210, 0.08);
    top: 15%;
    left: 10%;
    transform: rotate(30deg);
    animation: spin-slow 25s linear infinite reverse;
}

.geo-7 {
    width: 400px;
    height: 400px;
    background: rgba(253, 251, 247, 0.05);
    top: -100px;
    left: -100px;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 15%;
    right: 5%;
    background-image: radial-gradient(rgba(253, 251, 247, 0.2) 2px, transparent 2px);
    background-size: 16px 16px;
    pointer-events: none;
}

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

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

@keyframes scroll-indicator {
    0% { top: -16px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

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

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

/* ===== NAV ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E85D20;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    transform: translateX(0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    margin-right: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ===== NAV SCROLLED STATE ===== */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ===== HERO TEXT ANIMATION ===== */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    animation: hero-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hero-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-word:nth-child(1) { animation-delay: 0.1s; }
.hero-word:nth-child(2) { animation-delay: 0.2s; }
.hero-word:nth-child(3) { animation-delay: 0.3s; }
.hero-word:nth-child(4) { animation-delay: 0.4s; }
.hero-word:nth-child(5) { animation-delay: 0.5s; }

/* ===== IMAGE HOVER ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== 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; }
}

/* ===== FOCUS ===== */
:focus-visible {
    outline: 2px solid #E85D20;
    outline-offset: 2px;
}

/* ===== BUTTON RIPPLE ===== */
button, a {
    cursor: pointer;
}
