/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== GEOMETRIC BACKGROUND SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.4) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.3) 0%, transparent 70%);
    bottom: 100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: rgba(52, 211, 153, 0.2);
    top: 200px;
    left: 100px;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(253, 224, 71, 0.15);
    top: 300px;
    right: 80px;
    transform: rotate(-15deg);
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(52, 211, 153, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 200px;
    right: 200px;
    opacity: 0.5;
}

.geo-circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    opacity: 0.5;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square-2 {
    width: 150px;
    height: 150px;
    background: rgba(253, 224, 71, 0.1);
    bottom: 50px;
    left: 50px;
    transform: rotate(30deg);
    opacity: 0.5;
    animation: spin-slow 25s linear infinite reverse;
}

.geo-circle-4 {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    opacity: 1;
    animation: float-slow 22s ease-in-out infinite;
}

.geo-square-3 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    top: 100px;
    right: 150px;
    transform: rotate(60deg);
    opacity: 1;
    animation: spin-slow 20s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

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

/* ===== FLOATING CARDS ===== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-top-right {
    animation-delay: 0s;
}

.card-bottom-left {
    animation-delay: 2s;
}

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

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

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

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

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(5, 150, 105, 0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    color: #064e3b;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #059669;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    cursor: default;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}
