body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #dce4ef;
}

.top-header {
    background: #14406f;
    color: #fff;
    padding: 8px 30px;
    text-align: right;
    font-size: 0.9em;
}

.top-header a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

header {
    background: #225294;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img {
    height: 40px;
}

nav {
    display: flex;
}

nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
}

.hero {
    position: relative;
    background: url('logo.png') center/contain no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #dce4ef;
    margin: 3vh;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2em;
    margin-top: 10px;
}

section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.services,
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    background: #225294;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9em;
}

.carousel img {
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* smooth fade */
    position: absolute;
    top: 0;
    left: 0;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    /* adjust depending on your image height */
}

.carousel img.active {
    opacity: 1;
    position: relative;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

.about-panel {
    background: #f4f4f4;
    padding: 50px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-panel-header {
    margin-top: 0;
}

.about-panel p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.about-panel a.button {
    background: #225294;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
}

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-links a {
    text-decoration: none;
    color: #225294;
    font-weight: 500;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-links a i {
    font-size: 1.3em;
}

.contact-logo img {
    height: 80px;
}

.image-dialog {
    border: none;
    padding: 0;
    border-radius: 0;
    max-width: 100%;
    max-height: 100%;
    background: transparent;
    /* remove default white bg */
}

.image-dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.image-dialog img {
    height: 90vh;
    /* full viewport height */
    width: auto;
    /* adjust width automatically */
    display: block;
    margin: auto;
    /* center horizontally */
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2100;
}



@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: #225294;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 15px;
        border-bottom: 1px solid #14406f;
    }

    .menu-toggle {
        display: flex;
    }

    .contact-box {
        flex-direction: column;
        text-align: center;
    }

    .contact-logo {
        margin-top: 20px;
    }

    .top-header {
        text-align: center;
        font-size: 0.85em;
        display: flex;
        flex-direction: column;
    }

    .top-header a {
        margin-left: 10px;
        margin-right: 10px;
    }


}