:root {
    --blue-primary: #1e8a2b;
    --blue-accent: #53df5a;
    --blue-light: #dbeafe;
    --blue-hover: #25eb28;
    --blue-dark: #13a111;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9fafb;
    z-index: 0;
    overflow-x: hidden;
}

header {
    background: url('https://images.unsplash.com/photo-1628901551715-7234d14fb7a0?q=80&w=3540&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

header h1,
header p {
    color: var(--white);
}

.button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--blue-primary);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover {
    background-color: var(--blue-accent);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 50, 0.4);
    z-index: 1;
}

header>div {
    position: relative;
    z-index: 2;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    color: white;
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
    flex-wrap: wrap;
}

nav.scrolled {
    background-color: #cecece;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-weight: bold;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

#navbar.scrolled {
    transition: background-color 0.4s ease;
}

#navbar .logo img {
    transition: opacity 0.4s ease;
}

section {
    padding: 6rem 2rem;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.split-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 60vh;
    background: white;
    padding: 0rem 0rem;
    overflow-x: hidden;
}

.split-section .image-side {
    flex: 1 1 50%;
}

.split-section .text-side {
    flex: 1 1 50%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-section .text-side h2 {
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

.split-section .text-side p {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.7;
}

.white-bg {
    background-color: white;
}

.gray-bg {
    background-color: #f3f4f6;
  }

.icon {
    font-size: 2.5rem;
    color: var(--blue-primary);
    margin-bottom: 1rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
    overflow-x: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--blue-primary);
}

footer {
    background: var(--blue-dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--blue-primary);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
    background-color: var(--blue-accent);
}

footer {
    background-color: var(--blue-primary);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

.ph-bg {
    background-attachment: fixed;
    background-size: cover;
    background-blend-mode: lighten;
    background-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .section-content {
        flex-direction: column;
        text-align: center;
    }

    .service-card {
        overflow-x: hidden;
    }

    .aos-init {
        overflow-x: hidden;
    }

    .split-section {
        flex-direction: column;
        overflow-x: hidden;
    }

    .split-section .image-side,
    .split-section .text-side {
        flex: 1 1 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .split-section .image-side {
        min-height: 200px;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}