:root {
    --primary-blue: #0A2540;
    --accent-blue: #2A5D9E;
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --text-gray: #666666;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-icon img {
    width: 40px;
    height: 40px;
    display: flex;
}

.logo-text {
    display: flex;
    padding-top: 10px;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.nav-bar {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.hero {
    height: 80vh;
    position: relative;
    background-color: #000;
    color: var(--text-light);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg.active {
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: none;
    transition: opacity 1s ease-in-out;
}

.hero-content.active {
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.hero-controls .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

.slider-arrows {
    display: flex;
    gap: 20px;
}

.arrow {
    cursor: pointer;
    font-size: 1.5rem;
}

/* About Section */
.about-section {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-grid img {
    max-width: 100%;
    object-fit: cover;
}

/* Items 2, 3, 4 will flow into the next available slots (right column) */

/* .about-image img {
    display: flex;
    max-width: inherit;
    justify-content: center;
    align-items: center;
} */

.about-content h2 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.about-content p {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
}

.company-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.company-card {
    position: relative;
    min-width: 15em;
    aspect-ratio: 1.0;
    padding: 20px;
    background-color: #6b90a6;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-card h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.company-card p,
.company-card ul {
    color: white;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    list-style: none;
}

.company-card ul li {
    margin-bottom: 2px;
}

/* Logos Row */
.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.company-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
    /* filter: grayscale(100%); */
    /* Optional: to match potential mono style, remove if not needed */
    /* opacity: 0.8; */
    /* transition: all 0.3s; */
}

.company-logos img:hover {
    filter: none;
    opacity: 1;
}

/* Locations text */
.company-locations {
    text-align: center;
    color: var(--accent-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    width: 100%;
}

@media (max-width: 900px) {
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .company-grid {
        grid-template-columns: 1fr;
    }

    .company-logos {
        gap: 15px;
    }

    .company-logos img {
        height: 35px;
    }
}

.btn-link {
    display: inline-block;
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 600;
    margin-top: 10px;
}

/* Stats / Map Section */
.stats-section {
    background-color: var(--white);
    padding-top: 50px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-subheader img {
    display: flex;
    justify-content: center;
    width: 384px;
    padding-bottom: 20px;
}

.stats-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.stats-map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.stats-map-container img {
    width: 100%;
    height: auto;
}

/* Projects Section Styling */
.projects-section {
    background-color: var(--primary-blue);
    color: white;
}

.section-title-center {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.projects-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.projects-grid.active {
    display: grid;
}

.project-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-details-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(140, 150, 160, 0.75);
    padding: 15px;
    z-index: 2;
    min-height: 80px;
}

.project-code {
    font-weight: 800;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
    color: white;
}

.project-desc {
    font-size: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #F0F0F0;
    line-height: 1.4;
}

.view-all {
    text-align: right;
    margin-top: 20px;
}

.view-all a {
    color: white;
    text-decoration: underline;
}

/* Page Header Strip */
.page-header-strip {
    /* background-color: #153250; */
    background-color: var(--primary-blue);
    color: white;
    padding: 20px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    color: #8faec9;
    font-size: 0.9rem;
}

.pagination-numbers {
    display: flex;
    gap: 20px;
}

.page-number {
    cursor: pointer;
}

.page-number.active {
    color: white;
    font-weight: bold;
}

.pagination-prev,
.pagination-next {
    color: white;
    text-decoration: none;
    /* border-bottom: 1px solid white; */
    opacity: 0;
    cursor: default;
}

.pagination-prev.active,
.pagination-next.active {
    opacity: 1;
    cursor: pointer;
}

/* Footer Styling */
footer {
    background-color: #EFEFEF;
    color: var(--text-dark);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    display: flex;
    height: 40px;
}

.footer-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 40px;
    row-gap: 20px;
    margin-bottom: 20px;
}

.footer-info {
    color: var(--primary-blue);
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Contact Page Specific Layout */
.contact-main {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-images-stack {
    display: flex;
    flex-direction: column;
    /* gap: 30px; */
}

.contact-images-stack img {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.5;
}

.contact-info-side {
    padding-top: 40px;
}

.contact-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-title-group h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
}

.contact-title-group .logo-icon {
    width: 60px;
    height: 60px;
}

.stats-list {
    border-left: 4px solid var(--primary-blue);
    padding-left: 30px;
    margin-bottom: 60px;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    min-width: 40px;
}

.stat-line {
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
    margin: 0 15px;
}

.stat-label {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-details-block {
    margin-bottom: 30px;
}

.contact-details-block h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-details-block p,
.contact-details-block a {
    color: var(--text-dark);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.6;
}

/* Location Page Specifics */
.location-section {
    /* background-color: #123252; */
    background-color: var(--primary-blue);
    /* Dark blue background */
    padding: 60px 0 100px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

/* First card spans full width */
.location-card:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

.location-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #eee;
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    padding: 20px 25px 25px;
    /* pointer-events: none; */
}

/* Specifically for text block behavior similar to design */
.location-card .overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.location-card .overlay p,
.location-card .overlay ul {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    list-style: disc;
    list-style-position: inside;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.location-footer-strip {
    text-align: center;
    color: white;
    margin-top: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Generic Responsive adjustments */
@media (max-width: 768px) {

    .about-grid,
    .contact-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-card:first-child {
        grid-column: auto;
    }

    /* Mobile Header & Nav */
    .header-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        width: 100%;
    }

    .logo-container {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }

    .logo-text {
        padding-top: 0px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-bar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        /* Solid premium background */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        padding: 0;
        z-index: 999;
    }

    .nav-bar.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
        margin: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        color: white;
        font-size: 1.1rem;
        transition: background 0.2s;
        width: 100%;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}