/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Geometric Background Animations */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: #1a5c2a;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #358339;
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square {
    position: absolute;
    background: #1a5c2a;
    opacity: 0.06;
    border-radius: 24px;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.06;
}

.geo-triangle-1 {
    top: 30%;
    right: 5%;
    border-width: 0 50px 80px 50px;
    border-color: transparent transparent #1a5c2a transparent;
    transform: rotate(-15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    bottom: 15%;
    right: 10%;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 12px;
    opacity: 0.15;
}

.geo-dots::before {
    content: '';
    grid-column: 1/5;
    grid-row: 1/5;
    background-image: radial-gradient(circle, #1a5c2a 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    mask-image: radial-gradient(ellipse, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse, black, transparent);
}

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

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
.mobile-link {
    transition: all 0.2s ease;
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 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 styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #1a5c2a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #add0b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #358339;
}

/* Image placeholder fallback */
img {
    max-width: 100%;
    height: auto;
}
