/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Shape Animations */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(254, 224, 138, 0.4);
    border-radius: 50%;
    top: 60%;
    right: 5%;
    animation-delay: -5s;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    top: 25%;
    right: 15%;
    animation-delay: -3s;
    transform: rotate(45deg);
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(254, 224, 138, 0.3);
    bottom: 30%;
    right: 25%;
    animation-delay: -8s;
    transform: rotate(20deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.15);
    top: 40%;
    left: 8%;
    animation-delay: -7s;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(254, 224, 138, 0.2);
    bottom: 15%;
    left: 30%;
    animation-delay: -12s;
    transform: rotate(180deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(30px) rotate(-5deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Reveal Animations (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0);
    }
}

/* Mobile Menu */
#mobile-menu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-link {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .mobile-link {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    #mobile-menu.menu-open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    #mobile-menu.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
    #mobile-menu.menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
    #mobile-menu.menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
    #mobile-menu.menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
    #mobile-menu.menu-open .mobile-link:nth-child(5) { transition-delay: 0.5s; }
}

/* Navbar Scroll State */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Menu Lines Animation */
.menu-line {
    display: block;
}

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

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

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

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e84d22;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #e84d22;
    color: white;
}
