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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: #166534;
    color: white;
}

/* ===== Geometric Shapes ===== */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    opacity: 0.6;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    opacity: 0.3;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    opacity: 0.08;
    animation: float-slow 10s ease-in-out infinite;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: #166534;
    opacity: 0.05;
    top: 30%;
    left: 3%;
    transform: rotate(45deg);
    animation: float-slow 7s ease-in-out infinite;
}

.shape-rect-2 {
    width: 80px;
    height: 80px;
    background: #22c55e;
    opacity: 0.08;
    bottom: 20%;
    right: 5%;
    transform: rotate(30deg);
    animation: float-slow 5s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #166534;
    opacity: 0.06;
    top: 20%;
    right: 10%;
    animation: float-slow 9s ease-in-out infinite;
}

.shape-diamond {
    width: 100px;
    height: 100px;
    background: #22c55e;
    opacity: 0.15;
    top: 15%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-dots {
    background-image: radial-gradient(circle, #166534 1px, transparent 1px);
    background-size: 20px 20px;
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 2%;
    opacity: 0.15;
    animation: float-slow 7s ease-in-out infinite;
}

/* ===== Floating Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.shape-circle-1 { animation: float-slow-rotate 8s ease-in-out infinite; }
.shape-circle-2 { animation: float-slow-rotate-reverse 6s ease-in-out infinite; }
.shape-rect-1 { --rotation: 45deg; animation: float-rotate 7s ease-in-out infinite; }
.shape-rect-2 { --rotation: 30deg; animation: float-rotate-reverse 5s ease-in-out infinite; }
.shape-diamond { --rotation: 45deg; animation: float-rotate 6s ease-in-out infinite reverse; }

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

@keyframes float-slow-rotate-reverse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

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

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

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

.card-stat-1 {
    animation-delay: 0s;
}

.card-stat-2 {
    animation-delay: 1s;
}

.card-stat-3 {
    animation-delay: 2s;
}

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

/* ===== Navbar ===== */
#navbar {
    background: rgba(254, 253, 248, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ===== 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, #166534, #22c55e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: #dcfce7;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

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

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Mobile Menu ===== */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-link {
    position: relative;
}

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

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

/* ===== Focus Styles ===== */
input:focus, select:focus, textarea:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* ===== Button Hover Effects ===== */
a:hover, button:hover {
    transition: all 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        display: none;
    }
    
    .shape-rect-1,
    .shape-rect-2,
    .shape-triangle-1,
    .shape-diamond,
    .shape-dots {
        display: none;
    }
    
    .testimonial-card::before {
        font-size: 5rem;
        top: -5px;
        left: 10px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
}
