/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #1a3429;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2d6149;
    border-radius: 50%;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2d6149 0%, #3d7a5f 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 15px rgba(45, 97, 73, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 97, 73, 0.4);
    background: linear-gradient(135deg, #264e3c 0%, #2d6149 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #2d6149;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 2px solid #bbd5c6;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f2f7f4;
    border-color: #2d6149;
    transform: translateY(-2px);
}

/* ===== Expertise Cards ===== */
.expertise-card {
    background: #f9f8f5;
    border: 1px solid #e0dbd0;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise-card:hover {
    border-color: #90b9a3;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(45, 97, 73, 0.12);
    background: white;
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #dceae2, #f2f7f4);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #2d6149;
    margin-bottom: 1.25rem;
    transition: all 0.3s;
}

.expertise-card:hover .icon-box {
    background: linear-gradient(135deg, #2d6149, #3d7a5f);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

/* ===== Service Cards ===== */
.service-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #ede8dd;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: #bbd5c6;
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* ===== Contact Input ===== */
.contact-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-input:focus {
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* Fix: select dropdown options need dark text on native white dropdown */
.contact-input option {
    background: #1f3f31;
    color: #fff;
}

select.contact-input {
    appearance: auto;
    -webkit-appearance: auto;
}

/* Light contact input variant for contact page */
.contact-input-light {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #faf9f7;
    border: 1px solid #ddd7cb;
    border-radius: 0.75rem;
    color: #111827;
    font-size: 0.875rem;
    transition: all 0.3s;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.contact-input-light::placeholder {
    color: #6b7280;
}

.contact-input-light:focus {
    border-color: #1a3429;
    box-shadow: 0 0 0 3px rgba(45, 97, 73, 0.15);
    background: #fff;
}

select.contact-input-light {
    color: #374151;
}

.contact-input-light option {
    color: #111827;
    background: #fff;
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite 1s;
}

/* Scroll Reveal Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page header animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* ===== Three.js Canvas ===== */
#threejs-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
}

/* ===== Misc ===== */
.page-header {
    background: linear-gradient(135deg, #e8f0eb 0%, #f5f3ee 50%, #d0dfd6 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 97, 73, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* Team Card */
.team-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #ede8dd;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* Values Card */
.value-card {
    background: #faf9f7;
    border: 1px solid #e0dbd0;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s;
}

.value-card:hover {
    border-color: #90b9a3;
    box-shadow: 0 15px 35px rgba(45, 97, 73, 0.1);
    transform: translateY(-4px);
    background: #fff;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid #dceae2;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #2d6149;
    border-radius: 50%;
    border: 3px solid #dceae2;
}

/* Service Detail Card */
.service-detail-card {
    background: white;
    border: 1px solid #ede8dd;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-detail-card:hover {
    border-color: #bbd5c6;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(45, 97, 73, 0.08);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* Prevent contact form / iframe overflow */
    iframe {
        max-width: 100%;
    }

    section {
        overflow-x: hidden;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ede8dd;
}

::-webkit-scrollbar-thumb {
    background: #8b7f5e;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6e6447;
}