:root {
    --primary: #000069;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: var(--primary);
    color: #fff;
    padding: 5px 5px 0px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    border-radius: 50%;  /* Makes the logo round */
    width: 50px;  /* Adjust the width as needed */
    height: 50px;  /* Adjust the height as needed */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

.hero {
    text-align: center;
    margin: 20px 0;
}

.hero h1 {
    font-size: 2em; /* Smaller font size for the heading */
}

.hero p {
    font-size: 1em; /* Smaller font size for the paragraph */
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.link-button:hover {
    background-color: #0056b3;
}

#services {
    text-align: center;
    margin: 40px 0;
}

#services h2 {
    font-size: 1.5em; /* Smaller font size for the services heading */
}

.service {
    display: inline-block;
    width: 25%; /* Set width to 25% */
    height: 500px; /* Fixed height for all cards */
    margin: 1% 1%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    color: #000;
    transition: transform 0.3s ease;
    vertical-align: top; /* Aligns cards to the top */
    position: relative; /* Add this to position the button absolutely */
}

.service img {
    width: 100%;
    height: 50%; /* Fixed height for the image */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.service h3, .service p {
    padding: 0 10px;
    text-align: center;
}

.service p {
    padding: 0 10px 20px;
    font-size: 1em;
}


.floating-button {
    position: absolute; /* Make the button absolute to the service class */
    bottom: 20px; /* Adjust to position within the service card */
    right: 20px; /* Adjust as needed */
    padding: 7px 10px 10px 7px; /* Adjust padding */
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1em; /* Adjust font size */
}

.floating-button:hover {
    background-color: #0056b3;
}

.main-floating-button {
    position: fixed; /* Make the button fixed to the viewport */
    bottom: 80px; /* Adjust to position within the service card */
    right: 20px; /* Adjust as needed */
    padding: 5px 10px 10px 5px; /* Adjust padding */
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1em; /* Adjust font size */
}

.main-floating-button:hover {
    background-color: #0056b3;
}

#contact {
    text-align: center;
    margin: 40px 0;
}

#contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.2em;
}

/* Smaller footer styling */
footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 10px 0;  /* Reduced padding */
    position: relative;  /* Changed from fixed to relative */
    width: 100%;
    bottom: 0;
}

/* Footer content with flexbox for centering */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;  /* Remove default margin */
}

/* Certificate logo in the footer */
.certificate-logo {
    width: 40px;  /* Adjusted size to make it smaller */
    height: 40px;  /* Adjusted size to make it smaller */
    margin-left: 10px;
    margin-right: 10px;
}

/* Adjusted font size for footer text */
footer p {
    margin: 0;
    font-size: 0.8em;  /* Reduced font size */
}

/* Space between the copyright text and contact us */
footer .contact-us {
    margin-left: 10px;
}

/* Footer links styling */
footer a {
    color: #fff;
    text-decoration: underline;
}

#contact {
    margin: 20px 0; /* Margin to separate from the footer text */
}

#contact h2 {
    font-size: 1.2em; /* Adjusted font size */
    margin-bottom: 10px;
}

#contact p {
    font-size: 0.9em; /* Adjusted font size */
}

/* Chatbot styles */
.iframe-container {
    position: fixed;
    bottom: 1%;
    right: 1%;
    width: 33%;
    height: 85%;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    border: none;
}

.iframe-container.open {
    display: block;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .service {
        width: 100%;
        margin: 10px 0;
    }

    .iframe-container {
        width: 90%;
        height: 90%;
        bottom: 0;
        right: 1%;
        border-radius: 8;
    }
}

/* Media query for landscape mode */
@media (orientation: landscape) {
    footer p {
        font-size: 0.9em; /* Adjust font size for landscape */
    }
}

/* Media query for portrait mode */
@media (orientation: portrait) {
    footer p {
        font-size: 0.9em; /* Adjust font size for portrait */
    }
}
