@import url('https://fonts.googleapis.com/css2?family=Graduate&family=Great+Vibes&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    color: white;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: white;
}

/* fonts */
.great-vibes {
    font-family: "Great Vibes", serif;
    font-weight: 400;
}

.graduate {
    font-family: "Graduate", serif;
    font-weight: 400;
}

.roboto {
    font-family: "Roboto", serif;
    font-weight: 400;
}

.raleway {
    font-family: "Raleway", serif;
    font-weight: 400;
}

.larger-font {
    font-size: 4rem;
}

.bold {
    font-weight: bold;
}

/* Hero Section */
#hero {
    background-image: url('/static/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    /* Ensure at least viewport height */
    display: flex;
    /* Use flexbox for easier vertical alignment */
    flex-direction: column;
    /* Stack children vertically */
    justify-content: flex-start;
    /* Align items to the top */
    padding: 20px 0;
    /* Add padding for breathing room */
    overflow: hidden;
}

/* Logo */
.logo img {
    position: absolute;
    top: 15px;
    /* Reduced space from the top */
    left: 20px;
    width: 150px;
    border-radius: 5px;
}

/* Navbar */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    position: absolute;
    top: 30px;
    /* Same as logo */
    right: 50px;
    margin: 0;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    background-color: black;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar ul li a:hover {
    background-color: #444;
}

.seo-title {
    display: none;
}

.tagline {
    text-align: left;
    margin-left: 10%;
    /* Reduced top margin */
    margin-bottom: 0;
    /* No extra space below */
    margin-top: 50px;
}

.tagline h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    line-height: 1.2;
}

.tagline p {
    font-size: clamp(1rem, 3vw, 2rem);
    margin-top: 10px;
    text-align: right;
    margin-bottom: 10px;
    margin-right: 5%;
}

.bottom-tag {
    font-size: clamp(1.2rem, 2vw, 2rem);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: white;
    font-weight: bold;
}

/* Services Monitor Section */
.services-monitor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-left: max(5%, 10px);
    padding-right: max(5%, 10px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Monitor Container */
.monitor-container {
    flex: 2.5;
    /* Adjusted to take slightly less space */
    position: relative;
    max-width: 800px;
    width: 100%;
}

.monitor-image {
    width: 100%;
    height: auto;
    display: block;
}

.services-overlay {
    position: absolute;
    top: 5%;
    left: 10%;
    /* Moved slightly to the left */
    width: 75%;
    /* Adjusts to maintain inner dimensions */
    color: black;
    background: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 2;
    overflow: hidden;
}

.services-overlay h3 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    margin-bottom: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Maintain 4 columns by default */
    gap: 15px;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
}

.service-item img {
    width: 50px;
    height: 50px;
}

.service-item p {
    margin-top: 50px;
    font-size: 1.5rem;
}

/* CTA Box */
.cta-box {
    flex: 1.2;
    /* Slightly increased space allocation */
    background: white;
    color: black;
    padding: 30px;
    /* Increased padding for larger size */
    text-align: center;
    border-radius: 10px;
    border: 5px solid #0487D9;
    width: 100%;
    max-width: 650px;
    /* Increased maximum width */
    margin-left: 5%;
    /* Keeps the same position to the right */
    margin-top: 5%;
    /* Reduced top margin to align better */
}

.cta-box:hover {
    border-color: white;
    /* Slightly darker shade for interaction feedback */
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    margin-top: 10px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 10px;
}

.cta-box button {
    background-color: black;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-box button:hover {
    background-color: #444;
}

/* modals */
/* Modal Container */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with transparency */
}

/* Modal Content */
.modal-content {
    position: relative;
    margin: 10% auto;
    /* Centered vertically */
    padding: 20px;
    width: 80%;
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: black;
}

.modal-content * {
    color: inherit;
    /* Inherit text color */
    margin: 0;
    padding: 0;
    line-height: 1.5;
    /* Add spacing for better readability */
}

/* Close Button */
.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: black;
    cursor: pointer;
}

.modal .close:hover {
    color: red;
}

/* Make links inside modals stand out */
.modal-content a {
    color: #007bff;
    /* Bootstrap default blue */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.modal-content a:hover {
    color: #0056b3;
    /* Darker blue on hover */
}


/* Footer Links */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #f8f9fa;
    color: #333;
}

footer a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}


/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    /* Distance from the bottom of the viewport */
    right: 20px;
    /* Distance from the right of the viewport */
    z-index: 1000;
    /* Ensure it's above other elements */
    background-color: #0487D9;
    /* Your preferred color */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: none;
    /* Hidden by default */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: #005fa3;
    /* Darker shade on hover */
    transform: scale(1.1);
    /* Slight zoom effect */
}


/* Media Queries */
@media (min-width: 1450px) {
    .services-grid {
        gap: 10px;
    }

    .service-item p {
        font-size: 1rem;
    }

    .services-overlay h3 {
        margin-bottom: 50px;
    }

    #hero {
        grid-template-rows: auto auto auto;
        /* Explicitly define row sizes */
        row-gap: 0;
        /* Remove any additional gap between rows */
    }

    .tagline {
        padding-top: 0;
        /* Ensure no extra padding */
    }

    .navbar ul {
        top: 20px;
        /* Bring navbar closer to the top */
    }

    .logo img {
        top: 10px;
        /* Reduce space above the logo */
    }

}

@media (max-width: 1200px) {
    .services-overlay h3 {
        margin-bottom: 50px;
    }

    .tagline {
        margin-bottom: 10%;
    }
}

@media (max-width: 1100px) {
    .services-overlay p {
        font-size: 1rem;
    }

}

@media (min-width: 768px) and (max-width: 1200px) {
    #hero {
        grid-template-rows: auto auto auto;
        /* Use explicit rows to avoid stretching */
    }

    .navbar ul {
        top: 30px !important;
    }

    .tagline {
        margin-top: 10%;
        margin-bottom: 10%;
    }

    .tagline p {
        text-align: right;
        margin: 0;
        margin-right: 5%;
    }

    .navbar ul {
        top: 20px;
        /* Bring navbar closer to the top */
    }

    .services-overlay {
        width: 80%;
    }
}


@media (min-width: 768px) and (max-width: 915px) {


    .services-overlay h3 {
        margin-bottom: 25px;
    }

    .services-overlay p {
        margin-top: 10px;
    }

    .cta-box {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .navbar ul {
        gap: 10px;
        right: 30px;
        margin: 0;
    }

    #hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 0;
    }

    .tagline {
        margin-top: 15%;
        padding: 5px 5%;
        text-align: left;
        margin-left: 2%;
    }

    .tagline h1 {
        padding: 0;
    }

    .tagline p {
        text-align: right;
    }

    .services-monitor {
        display: flex;
        /* Ensure they stay in a row */
        flex-direction: row;
        /* Side-by-side layout */
        justify-content: space-between;
        /* Spread them out */
        align-items: flex-start;
        /* Align items at the top */
        gap: 20px;
        /* Maintain gap between the elements */
        padding: 0 max(5%, 10px);
        /* Add horizontal padding */
        width: 100%;
        /* Keep full width */
        max-width: 1200px;
        /* Limit the overall width */
        margin: 0 auto;
        /* Center the content */
    }

    .monitor-container {
        flex: 2.5;
        /* Give the monitor more space */
        max-width: 800px;
        /* Keep its width manageable */
        width: 100%;
    }

    .services-overlay {
        padding: 0;
        top: 4%;
        left: 7.5%;
        width: 85%;
        /* Keep overlay responsive */
    }


    .services-overlay h3 {

        margin-bottom: 5%;
        font-size: 1.5rem;
    }

    .service-item p {
        font-size: 1.0rem;
        margin-top: 10%;
    }

    .service-item img {
        margin-bottom: 0;
    }

    /* CTA Box */
    .cta-box {
        flex: 1.2;
        /* Smaller width than monitor */
        max-width: 650px;
        /* Restrict max width */
        margin-left: 5%;
        /* Add spacing to the left */
        margin-top: 0;
        /* Reset vertical margin */
    }

    #backToTop {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 721px) {
    .services-monitor {
        display: flex;
        flex-direction: column;
        /* Stack monitor and CTA vertically */
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        /* Increase gap for better spacing */
        padding: 0 5%;
        width: 70%;
        margin: 0 auto;
    }

    .monitor-container {
        flex: none;
        width: 90%;
        /* Full width for better fit */
        max-width: 600px;
        /* Reduce max-width to make the monitor smaller */
    }

    .cta-box {
        flex: none;
        width: 100%;
        max-width: 550px;
        /* Slightly reduce width for balance */
        margin-top: 20px;
        /* Increase gap below monitor */
        margin-left: 0;
        margin-bottom: 10px;
    }

    .services-overlay {
        top: 5%;
        left: 9%;
        width: 80%;
        /* Slightly narrower overlay */
    }

    .navbar ul {
        gap: 10px;
        top: 30px;
        right: 30px;
        margin: 0;
    }

    .navbar ul li a {
        padding: 5px 10px;
        border-radius: 5px;
        font-weight: bold;
    }

    .tagline {
        margin-top: 80px;
        /* Add more space between the nav and the tagline */
        padding: 0 5%;
        /* Ensure consistent padding */
    }

    .tagline h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        /* Slightly reduce font size for smaller screens */
        margin-bottom: 10px;
        /* Add a small gap below the tagline */
    }

    .tagline p {
        font-size: 1.0rem;
        margin-top: 0;
        /* Adjust spacing for compact layout */
    }
}


@media (max-width: 672px) {

    /* Center the logo at the top */
    .logo img {
        position: static;
        display: block;
        margin: 0 auto;
        margin-top: 10px;
        width: 170px;
        margin-bottom: 10px;
    }

    /* Position the navbar horizontally below the logo */
    .navbar ul {
        position: static;
        /* Remove absolute positioning */
        display: flex;
        /* Keep links horizontal */
        justify-content: center;
        /* Center the links */
        align-items: center;
        gap: 15px;
        /* Add space between links */
        margin-top: 10px;
        /* Add space between the logo and navbar */
        padding: 0;
    }

    .navbar ul li a {
        padding: 8px 15px;
        /* Adjust padding for smaller screens */
        font-size: 0.9rem;
        /* Reduce font size slightly */
    }

    .tagline {
        margin-top: 30px;
    }

    .tagline h1 {
        justify-self: center;
    }

    .tagline h1 span.larger-font {
        font-size: 2.5rem;
        /* Reset to default font size */
    }

    .services-monitor {
        width: 80%;
        margin-bottom: 20px;
    }

    .cta-box {
        margin-top: 0;
        margin-bottom: 10px;
    }

}

@media (max-width: 577px) {
    .services-monitor {
        margin-top: 10px;
        width: 90%;
    }

    .tagline p {
        margin-bottom: 0;
    }
}

@media (max-width: 500px) {
    .services-monitor {
        width: 95%;
    }

    .tagline h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 474px) {

    /* Stack the nav links vertically */
    .navbar ul {
        align-items: center;
        /* Center the links */
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        gap: 5px;
    }

    .navbar ul li {
        margin: 3px;
    }

    .navbar ul li a {
        padding: 5px 10px;
        font-size: 0.7rem;
        /* Make font size smaller */
    }

    /* Adjust spacing for the logo and tagline */
    .logo img {
        margin-bottom: 10px;
        /* Less space below the logo */
    }

    .tagline {
        margin-top: 20px;
        /* Space below the navbar */
        text-align: center;
        /* Center-align tagline text */
        margin-bottom: 5px;
    }

    .tagline h1 {
        margin-bottom: 0;
    }

    .tagline p {
        margin-top: 0;
    }

    .services-monitor {
        width: 100%;
    }

    .services-overlay h3 {
        font-size: 1.2rem;
    }

    .cta-box {
        padding-top: 0;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1.0rem;
        margin-top: 0;
    }

    .cta-box button {
        padding: 6px 12px;
        font-size: 1.0rem;
    }

}

@media (max-width: 450px) {
    .services-overlay {
        margin: 0;
    }

    .services-overlay h3 {
        margin-top: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 450px) {
    .tagline h1 {
        font-size: 1.0rem;
    }

    .services-monitor {
        width: 110%;
        margin-left: -20px !important;
    }

    .cta-box {
        width: 80%;
        align-self: center;
    }
}

@media (max-width: 405px) {
    .services-overlay {
        width: 80%;
        /* Reduce width for smaller screens */
        padding: 5px;
        /* Reduce padding */
        left: 10%;
        /* Center it more effectively */
        top: 5%;
        /* Adjust positioning */

    }

    .services-overlay h3 {
        font-size: 1rem;
        /* Smaller heading font */
        margin-bottom: 15px;
        /* Reduce space below the heading */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Show 2 columns instead of 4 */
        gap: 5px;
        /* Reduce gap between items */
    }

    .service-item img {
        width: 30px;
        /* Make service icons smaller */
        height: 30px;
        margin-bottom: 5px;
        /* Reduce space below the icon */
    }

    .service-item p {
        font-size: 0.8rem;
        /* Smaller text */
        margin-top: 10px;
        /* Reduce space above the text */
    }
}

@media (max-width: 382px) {
    .services-overlay {
        width: 85%;
        /* Maximize available space */
        padding: 5px;
        /* Minimal padding */
        left: 8%;
        /* Center the overlay */
        top: 5%;
        /* Adjust positioning */
    }

    .services-overlay h3 {
        font-size: 0.9rem;
        /* Reduce heading font size further */
        margin-bottom: 10px;
        /* Reduce space below heading */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Show 2 columns instead of 4 */
        gap: 15px;
        /* Reduce gap between items */
    }

    .service-item img {
        width: 25px;
        /* Smaller service icons */
        height: 25px;
        margin-bottom: 3px;
        /* Reduce space below the icon */
    }

    .service-item p {
        font-size: 0.7rem;
        /* Smaller text */
        margin-top: 5px;
        /* Reduce space above the text */
    }

    .cta-box {
        margin-top: 3px;
    }

}

@media (max-width: 330px) {

    /* Navbar adjustments */
    .navbar ul {
        flex-wrap: wrap;
        /* Allow links to wrap into rows */
        justify-content: center;
        /* Center the wrapped rows */
        gap: 10px;
        /* Add some spacing between rows */
    }

    .navbar ul li {
        width: 45%;
        /* Ensure each link takes up 45% of the row width */
        text-align: center;
        /* Center the text in each link */
    }

    .navbar ul li a {
        padding: 8px 10px;
        /* Adjust padding for smaller links */
        font-size: 0.7rem;
        /* Reduce font size further */
    }

    /* Reduce margin below the logo */
    .logo img {
        margin-bottom: 5px;
        /* Less space below the logo */
    }

    /* Maintain proper spacing for tagline */
    .tagline {
        margin-top: 10px;
    }

    .tagline h1 {
        margin-top: 10px;
    }

    .monitor-container {
        width: 100%;
        /* Full width for better fit */

        /* Reduce max-width to make the monitor smaller */
    }
}