/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    line-height: 1.6;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid #4ade80;
    top: 10%;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #22c55e;
    border-radius: 50%;
    top: 30%;
    right: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #4ade80;
    top: 60%;
    right: 15%;
    animation: rotate-slow 25s linear infinite;
    opacity: 0.1;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #86efac;
    border-radius: 16px;
    bottom: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
    background-image: radial-gradient(circle, #4ade80 1px, transparent 1px);
    background-size: 24px 24px;
    width: 200px;
    height: 200px;
    top: 20%;
    right: 20%;
    opacity: 0.2;
}

.geo-circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.2);
    top: -200px;
    right: -150px;
}

.geo-diamond-1 {
    width: 120px;
    height: 120px;
    background: rgba(34, 197, 94, 0.1);
    transform: rotate(45deg);
    bottom: 10%;
    left: 5%;
    border-radius: 12px;
}

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

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Service Cards */
.service-card {
    perspective: 1000px;
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #16a34a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Mobile Menu */
.mobile-link {
    display: block;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #bbf7d0;
    color: #052e16;
}

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

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

::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Responsive */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }

    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }

    .geo-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }

    .geo-square-1 {
        width: 50px;
        height: 50px;
    }
}
