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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #fde68a, #f59e0b);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #6ee7b7, #10b981);
    bottom: 10%;
    left: -60px;
    animation-delay: 2s;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #fde68a, #f59e0b);
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.1));
    bottom: -200px;
    right: -150px;
    animation-delay: 1s;
}

.geo-circle-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.3), rgba(4, 120, 87, 0.1));
    top: -100px;
    left: -80px;
    animation-delay: 3s;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.geo-triangle-1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #fde68a;
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.geo-square {
    position: absolute;
    opacity: 0.1;
    animation: rotate 15s linear infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #6ee7b7;
    border-radius: 16px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.geo-square-2 {
    width: 120px;
    height: 120px;
    background: #fde68a;
    border-radius: 20px;
    top: 10%;
    left: 8%;
    animation-delay: 5s;
}

.geo-square-3 {
    width: 80px;
    height: 80px;
    background: #6ee7b7;
    border-radius: 14px;
    bottom: 15%;
    right: 5%;
    animation-delay: 1s;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(253, 230, 138, 0.4) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 15%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

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

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    gap: 16px;
    animation: scroll 30s linear infinite;
}

.animate-scroll img {
    flex-shrink: 0;
}

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

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

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

/* ===== MOBILE MENU ===== */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* ===== NAVBAR SCROLL ===== */
#navbar.scrolled {
    background: rgba(6, 78, 59, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== UTILITIES ===== */
@media (max-width: 640px) {
    .geo-circle-1 { width: 200px; height: 200px; }
    .geo-circle-2 { width: 120px; height: 120px; }
    .geo-circle-3 { display: none; }
    .geo-triangle-1 { display: none; }
    .geo-square-1, .geo-square-2, .geo-square-3 { display: none; }
    .geo-dots { display: none; }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: #10b981;
    color: #fff;
}
</style>
