/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Floating decorative shapes */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.shape-circle-1 {
    top: 20%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: #059669;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-triangle {
    top: 60%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #064E3B;
    animation: float 10s ease-in-out infinite reverse;
    opacity: 0.06;
}

.shape-square {
    top: 40%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: #F59E0B;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
    opacity: 0.05;
}

.shape-circle-2 {
    bottom: 15%;
    left: 10%;
    width: 160px;
    height: 160px;
    background: #059669;
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
    opacity: 0.07;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Hero floating cards */
.floating-card-1 {
    animation: cardFloat1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: cardFloat2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: cardFloat3 6s ease-in-out infinite;
}

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

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

@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #064E3B 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1.5rem;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 251, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.1);
}

/* Mobile menu */
.mobile-nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
    color: #059669;
    transform: scale(1.05);
}

/* 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 preference */
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #064E3B;
    border-radius: 5px;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}
