/* --- VARIABLES & RESET --- */
:root {
    --primary: #2d9435;
    --primary-dark: #1e6b26;
    --primary-light: #e8f5e9;
    --dark: #1a1f2e;
    --light: #fafbfc;
    --gray: #e8eaed;
    --gray-dark: #c1c7cd;
    --text: #2c3338;
    --text-light: #6b7280;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 40px rgba(45, 148, 53, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.975rem;
    letter-spacing: 0.3px;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 12px rgba(45, 148, 53, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(45, 148, 53, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.975rem;
    letter-spacing: 0.3px;
    display: inline-block;
    border: 1.5px solid var(--gray);
    margin-left: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 20px;
    border-radius: 4px;
}

.underline-left {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 0 20px;
    border-radius: 4px;
}

/* --- NAVBAR --- */
/* Logo Layer - Floats above navbar */
.logo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    padding: 10px 0;
    pointer-events: none;
    height: 0;
    overflow: visible;
}

.logo-layer .logo-container {
    pointer-events: all;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    text-decoration: none;
    border: none;
}

.logo-layer .container {
    pointer-events: none;
    height: 0;
    overflow: visible;
}

.logo-layer .logo {
    height: 147px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

/* Sticky Logo in Navbar */
.sticky-logo-link {
    display: none;
    margin-right: auto;
    align-items: center;
}

.logo-sticky {
    height: 50px;
    width: auto;
}

/* Sticky State */
body.is-sticky .sticky-logo-link {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

/* body.is-sticky .logo-main -> Removed to allow scroll-away */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-layer .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-spacer {
    display: none;
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--text);
    font-size: 1rem;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    font-weight: 500;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-trigger:hover {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 24px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    align-items: center;
}

.mobile-menu-btn:hover {
    background: rgba(45, 148, 53, 0.08);
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-btn:hover span {
    background: var(--primary);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray);
}

.mobile-menu-header .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--gray);
    transform: rotate(90deg);
}

.mobile-nav-links {
    padding: 20px 0;
}

.mobile-nav-links>a,
.mobile-nav-item>a {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.mobile-nav-links>a:hover,
.mobile-nav-item>a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 30px;
}

.mobile-submenu {
    background: var(--light);
}

.mobile-submenu a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.mobile-submenu a:hover {
    background: white;
    color: var(--primary);
    padding-left: 50px;
}

.mobile-cta {
    margin: 20px;
    padding: 15px !important;
    background: var(--primary);
    color: white !important;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    border: none !important;
}

.mobile-cta:hover {
    background: var(--primary-dark) !important;
    padding-left: 15px !important;
}

/* --- HERO --- */
.hero {
    padding-top: 140px;
    /* navbar height + padding */
    padding-bottom: 80px;
    background: url('../pic/hero_bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Solid white behind text (left), fading to show image (right) */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.85) 35%,
            rgba(255, 255, 255, 0.4) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 148, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-text .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 45px;
    max-width: 90%;
    font-weight: 400;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    overflow: visible;
    z-index: 1;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: auto;
    mix-blend-mode: multiply;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    z-index: 2;
}

.hero-image:hover {
    transform: scale(1.05) translateY(-10px);
}

.circle-bg {
    position: absolute;
    width: 100%;
    padding-bottom: 100%;
    background: radial-gradient(circle, #e8f5e9 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* --- SERVICES --- */
.services {
    padding: 100px 0;
    /* Soft gradient background to make glass visible */
    background: radial-gradient(circle at 10% 20%, rgba(45, 148, 53, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(26, 31, 46, 0.05) 0%, transparent 40%),
        #fafbfc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    padding: 48px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Glass Effect Baseline */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.85);
}

.service-card .icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(45, 148, 53, 0.1);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px rgba(45, 148, 53, 0.25);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- ABOUT --- */
.about {
    padding: 100px 0;
    /* Darker gradient for About section to iterate */
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--dark);
}

.check-list li svg {
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
}

.stat-card.full-width {
    grid-column: span 2;
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    font-weight: 600;
    color: var(--dark);
}

/* --- CONTACT --- */
.contact {
    padding: 100px 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: linear-gradient(135deg, #1a1f2e 0%, #242a38 100%);
    border-radius: var(--radius-lg);
    padding: 72px;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info>p {
    color: #a0aab5;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.ci-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-item h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0aab5;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 1.2rem;
    font-weight: 600;
}

.map-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.map-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(45, 148, 53, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(45, 148, 53, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* --- FOOTER --- */
footer {
    padding: 30px 0;
    background: #121820;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        margin-top: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Todo: Add JS Toggle for Mobile */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    border-top: 1px solid var(--gray);
}

.cookie-banner.show {
    transform: translateY(0);
    visibility: visible;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cookie-text h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 10px 25px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }

}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    /* Always on top */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    /* Safety Fallback: Force hide after 4 seconds if JS fails */
    animation: forceHide 0s 4s forwards;
    pointer-events: all;
}

@keyframes forceHide {
    to {
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
    }
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

/* Modern Logo Preloader */
.preloader-logo {
    margin-bottom: 25px;
    animation: logoFloat 1.5s ease-in-out infinite;
}

.preloader-logo img {
    filter: drop-shadow(0 10px 30px rgba(45, 148, 53, 0.3));
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(0.98);
    }
}

.loading-bar {
    width: 150px;
    height: 4px;
    background: rgba(45, 148, 53, 0.2);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar-progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4ade80);
    border-radius: 4px;
    animation: loadingProgress 1.2s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
        margin-left: 0%;
    }

    50% {
        width: 60%;
        margin-left: 20%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* --- ARROW ANIMATION --- */
.hero-scroll-arrow {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
}

.hero-scroll-arrow span {
    display: block;
    width: 24px;
    height: 24px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.5;
    }

    50% {
        transform: rotate(45deg) translate(8px, 8px);
        opacity: 1;
    }
}

/* --- MOBILE FLOATING CALL BUTTON --- */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #4ade80 100%);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(45, 148, 53, 0.4);
    z-index: 9980;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: callPulse 2s ease-in-out infinite;
}

.mobile-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(45, 148, 53, 0.5);
}

@keyframes callPulse {

    0%,
    100% {
        box-shadow: 0 6px 25px rgba(45, 148, 53, 0.4);
    }

    50% {
        box-shadow: 0 6px 35px rgba(45, 148, 53, 0.6), 0 0 0 10px rgba(45, 148, 53, 0.1);
    }
}

@media (max-width: 768px) {
    .mobile-call-btn {
        display: flex;
    }
}

/* --- TOUCH-FRIENDLY TAP TARGETS --- */
@media (max-width: 768px) {

    /* Larger navigation links */
    .mobile-nav-links a {
        padding: 16px 20px;
        font-size: 1.1rem;
        min-height: 52px;
        display: flex;
        align-items: center;
    }

    /* Larger buttons */
    .btn-primary,
    .btn-secondary,
    .btn-cta,
    .submit-btn {
        min-height: 52px;
        padding: 16px 32px;
        font-size: 1rem;
    }

    /* Larger form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        min-height: 52px;
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    /* Larger service cards tap area */
    .service-card {
        min-height: 280px;
    }

    /* Footer links spacing */
    footer a {
        padding: 8px 0;
        display: inline-block;
    }

    /* Scroll to top button - larger on mobile */
    .scroll-to-top {
        width: 50px;
        height: 50px;
    }
}

/* --- PAGE TRANSITIONS --- */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Initial page load state - only apply when transitions are enabled */
body.page-transitioning-enabled:not(.page-loaded) {
    opacity: 0;
}

body.page-loaded {
    opacity: 1;
    animation: pageIn 0.4s ease-out;
}

body.page-transitioning {
    pointer-events: none;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark theme support */
[data-theme="dark"] .page-transition-overlay {
    background: #0f172a;
}

/* --- MICRO-INTERACTIONS --- */

/* Button Shine Effect */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    left: 100%;
}

/* Nav Link Underline Animation */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    /* Start from center */
    background: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    /* Center alignment */
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Service Icon Animation on Card Hover */
.service-card .icon-box svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .icon-box svg {
    transform: scale(1.2) rotate(5deg);
}

/* Footer Link Hover (if any added later) */
footer a:hover {
    color: var(--primary);
    text-decoration: none;

}

/* --- SPECTACULAR DESIGN UPGRADES --- */

/* 1. Gradient Text for H1 */
.hero-text h1 {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, #1a5c20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 2. Glassmorphism Service Cards */
.services {
    background-color: #f8fcf9;
    /* Subtle tint behind glass cards */
    background-image:
        radial-gradient(at 10% 10%, rgba(45, 148, 53, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(45, 148, 53, 0.05) 0px, transparent 50%);
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(45, 148, 53, 0.15);
}

/* 3. Enhanced Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 4. Section Header Highlights */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -10px;
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: -1;
}

/* --- HERO FIXES --- */
.hero-text {
    position: relative;
    z-index: 10;
}

/* Fix Highlight Span: Solid Green for best visibility and contrast */
.hero-text h1 .highlight {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--primary);
    display: inline-block;
    text-shadow: none;
}

/* Fix Button Alignment */
.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-buttons .btn-secondary {
    margin-left: 0;
}

/* Ensure buttons don't shrink */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    white-space: nowrap;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #0d0f12;
    color: #a0a0a0;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-col {
    text-align: left;
}

.footer-col h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #81e68b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #ccc;
}

.contact-info .icon {
    font-size: 1.2rem;
    margin-top: 2px;
    min-width: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- VISUAL ENHANCEMENTS (Added by Assistant) --- */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid transparent;
    position: relative;
    top: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 148, 53, 0.15);
    border-color: rgba(45, 148, 53, 0.3);
    z-index: 10;
}

.service-card .icon-box {
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 148, 53, 0.4);
}