body {
    font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../img/bg-medium.jpg');
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    background-color: #022E4B;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

nav {
    padding-top: 16px;
    color: #bef1f8;
    font-size: 20px;
    font-weight: bold;
    background: rgba(2, 46, 75, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #0468A0;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    height: 40px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

nav ul li {
    display: inline;
    margin-right: 40px;
}

nav ul li a {
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    background: #0468A0;
    color: #fff;
}

section {
    display: none;
    padding-top: 40px;
    color: #bef1f8;
    width: 900px;
    max-width: 98%;
    line-height: 1.4;
    font-size: 18px;
    margin: 0 auto;
    padding-left: 0;
}

section.active {
    display: block;
}

a {
    color: #bef1f8;
    text-decoration: none;
}

/* Services Section Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background-color: #03406A;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #bef1f8;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.service-card:hover {
    background-color: #0468A0;
    cursor: pointer;
}

.company-card {
    background: rgba(3, 64, 106, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(2, 46, 75, 0.18);
    padding: 40px 32px 32px 32px;
    margin-top: 32px;
    max-width: 900px;
    width: 100%;
    color: #bef1f8;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #03406A;
    font-weight: bold;
    position: absolute;
    top: -40px;
    left: 32px;
    box-shadow: 0 2px 8px rgba(2, 46, 75, 0.12);
    overflow: hidden;
    background: transparent; /* Remove white background and padding for transparent logo */
    padding: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    background: transparent; /* Remove background for logo image */
}

.company-card h1 {
    margin-top: 56px;
    margin-bottom: 18px;
    font-size: 2.2rem;
    color: #fff;
}

.company-card p {
    font-size: 1.15rem;
    line-height: 1.7;
}

footer {
    margin-top: auto;
    background: rgba(2, 46, 75, 0.97);
    color: #bef1f8;
    text-align: center;
    padding: 18px 0 10px 0;
    font-size: 1rem;
    border-top: 1px solid #0468A0;
    width: 100%;
    box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 1000px) {
    section,
    .company-card {
        width: 95%;
        max-width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        background-image: url('../img/bg-xsmall.jpg');
        background-position: left 60px;
        width: 100%;
        overflow-x: hidden;
    }

    nav {
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        width: 100%;
        box-sizing: border-box;
    }

    nav,
    section {
        padding-top: 10px;
        font-size: 16px;
    }

    section {
        width: 92%;
        max-width: 92%;
        margin: 0 auto;
    }

    nav ul li {
        margin-right: 20px;
    }

    .company-card {
        padding: 24px 10px 18px 10px;
        margin-top: 24px;
        width: 92%;
    }

    .company-card h1 {
        font-size: 1.8rem;
        margin-top: 40px;
    }

    .company-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .company-logo {
        left: 10px;
        width: 60px;
        height: 60px;
        top: -30px;
    }

    nav ul li a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
