/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.main-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('418380802255be8a17e3d5d0d0f492f5.jpg') no-repeat center bottom/cover;
    color: white;
    text-align: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px 0;
    filter: brightness(1.2); /* Increase the brightness */
}

.header-content {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header-content h1 {
    font-size: 2.5rem; /* Adjusted font size */
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.header-content p {
    font-size: 1.2rem; /* Adjusted font size */
    margin-bottom: 15px;
    line-height: 1.8;
}


.cta-button {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1rem;
    color: white;
    background: #0071e3;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #005bb5;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
/* Navigation Bar Styles */
.navbar {
    background-color: #ffffff; /* White background */
    padding: 10px 0;
    border-bottom: 1px solid #ddd; /* Light border for separation */
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.navbar-logo {
    height: 30.5px; /* Adjust logo size */
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Space between links */
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-links li {
    display: inline-block;
}

.navbar-links a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    transition: color 0.3s, font-weight 0.3s;
}

.navbar-links a:hover {
    color: #0071e3; /* Blue hover effect */
    font-weight: 600;
}


/* Services Section */
.services-section {
    background: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.service {
    display: inline-block;
    width: 280px; /* Set a fixed width */
    height: 200px; /* Set a fixed height */
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    vertical-align: top; /* Align all boxes to the top */
    text-align: center; /* Keep text centered */
}

.service:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    border: 1px solid #0071e3;
}
.service i {
    font-size: 2rem;
    color: #0071e3;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}
.service:hover i {
    color: #005bb5;
}


.service h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    overflow: hidden; /* Prevent text overflow */
    text-overflow: ellipsis; /* Add ellipsis if content is too long */
    white-space: normal; /* Adjust wrapping */
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slide-in 0.5s ease-out;
}

.close-button {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #0071e3;
}

/* Slide-in animation */
@keyframes slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Match global font */
    background: #f9f9f9;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    background: #0071e3;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form button:hover {
    background: #005bb5;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.main-footer {
    background: #1d1d1f;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
}
/* Remove bullets */
.modal-content ul {
    list-style: none; /* Removes bullet points */
    padding: 0;       /* Removes extra padding */
}

/* Modal Container */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.5s; /* Add fade-in animation */
}

/* Modal Content */
.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #888;
    width: 50%;
    animation: slideUp 0.5s; /* Add slide-up animation */
    text-align: center;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide-up animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade-out animation for when modal is hidden */
.modal.fadeOut {
    animation: fadeOut 0.5s;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
/* Back-to-Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0071e3;
    color: white;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    background: #005bb5;
    cursor: pointer;
}

.back-to-top.show {
    display: block;
    opacity: 1;
    transform: scale(1.1);
}

/* Service Card Icon Styling */
.service i {
    font-size: 2rem;
    color: #0071e3;
    margin-bottom: 10px;
    display: block;
}

/* Service Card Hover Animation */
.service:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f0f8ff;
}

@media (max-width: 768px) {
    .navbar-links {
        flex-direction: column;
        gap: 10px;
    }
    .service {
        width: 90%;
        margin: 10px auto;
    }
    .modal-content {
        width: 90%;
    }
}

/* Mobile View Navigation (Max Width 768px) */
@media (max-width: 768px) {
    .navbar-container {
        display: flex; /* Flexbox for alignment */
        flex-direction: row; /* Align logo and links horizontally */
        justify-content: space-between; /* Space between logo and links */
        align-items: center; /* Center vertically */
        padding: 5px 10px; /* Adjust spacing */
    }

    .navbar-links {
        display: flex; /* Flexbox for horizontal menu */
        flex-direction: row; /* Align links in a row */
        gap: 10px; /* Space between menu items */
        margin: 0; /* Reset margin */
        padding: 0; /* Reset padding */
        list-style: none; /* Remove bullets */
    }

    .navbar-links li {
        display: inline; /* Keep items inline for horizontal alignment */
    }

    .navbar-links a {
        text-decoration: none; /* Remove underlines */
        font-size: 0.9rem; /* Slightly smaller font size for mobile */
        color: #333; /* Match desktop link color */
        transition: color 0.3s ease; /* Smooth hover effect */
    }

    .navbar-links a:hover {
        color: #0071e3; /* Blue on hover */
    }
}

