/* ---- Fonts ---- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/space-grotesk-latin-700.woff2') format('woff2');
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

:root {
    --skyColorLight: #7fcaed;
    --skyColorDark: #0079c9;
    --groundColor: #2b360d;
    --text-dark: #1a1a2e;
    --text-muted: #555;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --accent: #0079c9;
    --max-width: 1100px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-light);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Navigation ---- */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    background: rgba(10, 25, 50, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

#nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

#nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

#nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

#nav-links a:hover {
    color: white;
}

/* ---- Hero ---- */

#hero-section {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10vh;
    background: linear-gradient(
        #1e3a5f 0%,
        #3a7bd5 25%,
        #72b4e8 50%,
        #a8d8ea 75%,
        #5DBB63 82%,
        #2E7D32 100%);
    overflow: hidden;
}

#canvas_0 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    touch-action: pan-y;
}

#hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem 3.5rem;
    background: rgba(0, 30, 60, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

#hero.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#logo {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

#hero h1 {
    color: white;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.4rem;
}

#tagline {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

#cta {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

#cta:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--skyColorDark);
    border-color: white;
}

#anim-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    gap: 0.4rem;
}

#anim-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#anim-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ---- Sections (shared) ---- */

section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Services ---- */

#services {
    padding: 5rem 1.5rem;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Mid CTA ---- */

#mid-cta {
    padding: 4rem 1.5rem;
    background: var(--bg-dark);
    text-align: center;
}

#mid-cta h2 {
    color: white;
}

#mid-cta .section-sub {
    color: rgba(255, 255, 255, 0.65);
}

.btn-mid-cta {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--bg-dark);
    text-decoration: none;
    background: white;
    border-radius: 6px;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn-mid-cta:hover {
    background: #e8ecf0;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ---- Why Us ---- */

#why-us {
    padding: 5rem 1.5rem;
    background: var(--bg-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.why-us-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.why-us-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin: 0 auto 1rem;
}

.why-us-icon svg {
    width: 100%;
    height: 100%;
}

.why-us-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.why-us-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- About ---- */

#about {
    padding: 5rem 1.5rem;
    background: var(--bg-light);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-text strong {
    color: var(--text-dark);
}

.about-values {
    flex: 1;
}

.value {
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin-bottom: 1.75rem;
}

.value h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.value p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Contact ---- */

#contact {
    padding: 5rem 1.5rem;
    background: var(--bg-white);
}

.contact-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

#contact-form {
    flex: 1.3;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 121, 201, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.08em;
    color: white;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s;
}

.btn-submit:hover {
    background: #006ab5;
    box-shadow: 0 4px 12px rgba(0, 121, 201, 0.25);
}

.form-success {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    padding: 2rem 0;
}

.form-error {
    font-size: 0.9rem;
    color: #c0392b;
    margin-top: 0.75rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info {
    flex: 0.8;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.contact-info > p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-detail {
    margin-bottom: 1.1rem;
}

.contact-detail strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.contact-detail a,
.contact-detail span {
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--accent);
}

.contact-detail > p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
/* ---- Footer ---- */

#site-footer {
    background: var(--bg-dark);
    padding: 2rem 1.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-logo {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

#site-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

/* ---- Service cards as links ---- */

a.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.service-card .card-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    transition: gap 0.2s;
}

a.service-card:hover .card-link {
    text-decoration: underline;
}

/* ---- Service Detail Pages ---- */

.service-page #navbar {
    background: rgba(10, 25, 50, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.service-hero {
    padding: 8rem 1.5rem 4rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #0079c9 100%);
    color: white;
    text-align: center;
}

.service-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.service-hero-icon svg {
    width: 100%;
    height: 100%;
}

.service-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.service-hero p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-content {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.service-content h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-content > .container > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 1.5rem;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    background: var(--bg-light);
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.service-cta {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
    text-align: center;
}

.service-cta h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.service-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.service-cta .btn-cta {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: white;
    text-decoration: none;
    background: var(--accent);
    border-radius: 6px;
    transition: background 0.25s, box-shadow 0.25s;
}

.service-cta .btn-cta:hover {
    background: #006ab5;
    box-shadow: 0 4px 12px rgba(0, 121, 201, 0.25);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    #logo, #hero h1 {
        display: none;
    }

    #nav-toggle {
        display: block;
    }

    #nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 25, 50, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    #nav-links.open {
        max-height: 280px;
        padding: 0.5rem 0;
    }

    #nav-links li {
        padding: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    #nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }

    #nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
    #nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
    #nav-links.open li:nth-child(3) { transition-delay: 0.15s; }

    #nav-links a {
        display: block;
        padding: 0.85rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    #nav-links li:last-child a {
        border-bottom: none;
    }

    #hero {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .service-hero {
        padding: 6rem 1.5rem 3rem;
    }
}
