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

html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f5f2;
}
::-webkit-scrollbar-thumb {
    background: #52B788;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1B4332;
}

/* Geometric shapes - fixed background decorations */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #52B788;
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #1B4332;
    bottom: 20%;
    left: -60px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #52B788;
    top: 50%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.rect-1 {
    width: 150px;
    height: 150px;
    background: #1B4332;
    border-radius: 24px;
    top: 70%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

/* Hero geometric decorations */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.06);
    top: -100px;
    left: -150px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(82, 183, 136, 0.1);
    bottom: 10%;
    right: -50px;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: 30%;
    right: 15%;
}

.geo-diamond {
    width: 80px;
    height: 80px;
    background: rgba(82, 183, 136, 0.15);
    transform: rotate(45deg);
    border-radius: 8px;
    top: 20%;
    left: 10%;
}

.geo-stripe {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    bottom: 25%;
    left: 5%;
    border-radius: 2px;
}

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

/* Reveal animations - 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);
    }
    
    /* Staggered delays */
    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar styles */
.nav-logo-text {
    color: #1B4332;
    transition: color 0.3s ease;
}

.nav-link {
    color: #1B4332;
}

/* Navbar scrolled state handled by JS */
#navbar.scrolled {
    background: rgba(254, 254, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #1B4332;
}

#navbar.scrolled .nav-link {
    color: #1B4332;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: #52B788;
    color: #1B4332;
}
