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

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

/* Floating Card Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.floating-card {
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.card-stat-1 { animation-name: float-slow; }
.card-stat-2 { animation-name: float-medium; }
.card-stat-3 { animation-name: float-fast; }

/* Hero Background Shapes */
@keyframes drift-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 15px) rotate(-3deg); }
}

@keyframes drift-medium {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-25px, 20px) rotate(-8deg); }
}

@keyframes drift-fast {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -25px) scale(1.05); }
}

@keyframes drift-triangle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 15px) rotate(15deg); }
}

.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: drift-slow 12s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: drift-medium 9s ease-in-out infinite;
}

.shape-rect-1 {
    top: 25%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(5, 150, 105, 0.06);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: drift-fast 7s ease-in-out infinite;
}

.shape-rect-2 {
    bottom: 25%;
    left: 45%;
    width: 80px;
    height: 80px;
    background: rgba(110, 231, 183, 0.1);
    border-radius: 16px;
    transform: rotate(20deg);
    animation: drift-medium 10s ease-in-out infinite;
}

.shape-triangle {
    top: 60%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(16, 185, 129, 0.07);
    animation: drift-triangle 8s ease-in-out infinite;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Approach Cards */
.approach-card {
    position: relative;
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.approach-card:hover::after {
    width: 60%;
}

/* FAQ Accordion */
.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
}

.faq-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background-color: #059669;
}

.faq-btn[aria-expanded="true"] .faq-icon svg {
    stroke: white;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-content.open {
    max-height: 200px;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 140px;
        height: 140px;
    }
    
    .shape-rect-1 {
        width: 80px;
        height: 80px;
    }
    
    .floating-card {
        display: none;
    }
}
