/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Hero Geometric Shapes */
.shape-circle-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    position: absolute;
    bottom: 20%;
    left: 55%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-triangle {
    position: absolute;
    top: 25%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 255, 255, 0.06);
    animation: rotate-slow 12s linear infinite;
    transform-origin: center;
}

.shape-dots {
    position: absolute;
    bottom: 30%;
    right: 10%;
    display: grid;
    grid-template-columns: repeat(4, 12px);
    gap: 12px;
    opacity: 0.4;
}

.shape-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

/* Floating Cards */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

.card-stat-1 {
    animation-delay: 0s;
}

.card-stat-2 {
    animation-delay: 2s;
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

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

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Service Card Hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu transitions */
#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: 400px;
    opacity: 1;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(22, 101, 52, 0.98) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefdf8;
}

::-webkit-scrollbar-thumb {
    background: #8ec88e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5fa85f;
}
