:root {
    --bg: #060f22;
    --surface: rgba(4, 20, 44, 0.9);
    --surface-strong: rgba(4, 20, 44, 0.98);
    --text: #edf2ff;
    --muted: #b8c3d9;
    --accent: #c9a24a;
    --accent-soft: rgba(201, 162, 74, 0.14);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #03081b;
    color: var(--text);
    line-height: 1.75;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title span {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #03081b;
}

.division-hero {
    position: relative;
    min-height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.division-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
}

.division-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 11, 26, 0.25), rgba(1, 11, 26, 0.9));
    pointer-events: none;
}

.hero-text {
    position: absolute;
    z-index: 2;
    padding: 0 1.5rem;
    max-width: 780px;
}

.division-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.division-hero p {
    margin: 0;
    font-size: 1.1rem;
    color: #e6ecff;
    max-width: 780px;
}

.division-overview {
    padding: 4rem 0 2.5rem;
    background: #fff;
    position: relative;
    padding: 100px 0;
    height: auto;
    overflow: hidden;
}

.division-content {
    flex: 1 1 500px;
    position: relative;
    z-index: 2;
    height: auto;
}

.division-content span {
    display: inline-block;
    margin-bottom: 1rem;
    color: #c9a24a;
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.division-content h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.6rem, 2.4vw, 2.75rem);
    line-height: 1.12;
    color: #03081b;
}

.division-content p {
    margin: 0 0 1rem;
    color: #000;
    line-height: 1.8;
}

.division-stats {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    padding: 2rem;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.stat-box h2 {
    margin: 0;
    font-size: 3.5rem;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.stat-box p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.division-services {
    padding: 4rem 0;
}

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

.service-card {
    padding: 2rem 1.75rem;
    border-radius: 24px;
    background: rgba(4, 18, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    text-align: center;
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(201, 162, 74, 0.08);
    border-color: rgba(201, 162, 74, 0.2);
}

.service-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.service-card h3 {
    margin: 0;
    color: #f5f7ff;
    font-size: 1.05rem;
    line-height: 1.6;
}

.division-projects {
    padding: 4.5rem 0 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(4, 16, 36, 0.95);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 1.7rem 1.6rem 2rem;
}

.project-content h3 {
    margin: 0 0 0.9rem;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.45;
}

.project-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.projects-btn {
    margin-top: 2.5rem;
    text-align: center;
}

.projects-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    background: var(--accent);
    color: #07111d;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.projects-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(201, 162, 74, 0.25);
    background: #d0b558;
}

.division-cta {
    position: relative;
    padding: 5rem 0 5.5rem;
    overflow: hidden;
}

.division-cta .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(1, 11, 26, 0.92), rgba(1, 11, 26, 0.8));
}

.division-cta .cta-content {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    border-radius: 32px;
    background: rgba(3, 18, 44, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.division-cta h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    line-height: 1.05;
}

.division-cta p {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1rem;
}

.division-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    background: var(--accent);
    color: #07111d;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.division-cta a:hover {
    transform: translateY(-2px);
    background: #d0b558;
}

.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links{
        display: none;
    }
    .menu-toggle{
        display: flex;
    }
    .division-hero {
        min-height: 55vh;
    }

    .division-hero h1 {
        font-size: clamp(2.4rem, 6vw, 3.25rem);
    }

    .division-overview {
        padding: 4.5rem 0 2.5rem;
    }

    .division-content {
        padding: 2.2rem;
    }

    .division-stats,
    .division-services,
    .division-projects {
        padding: 3rem 0;
    }

    .stats-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 240px;
    }

    .division-cta {
        padding: 4rem 0 4.5rem;
    }

    .division-cta .cta-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100%, calc(100% - 30px));
    }

    .division-content,
    .service-card,
    .project-card,
    .division-cta .cta-content {
        border-radius: 20px;
    }

    .division-content {
        padding: 1.75rem;
    }

    .division-hero .hero-text {
        padding: 0 1rem;
    }

    .division-hero p,
    .project-content p,
    .division-cta p {
        font-size: 0.98rem;
    }
}