/* Ensure the html and body elements occupy full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll if any */
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #ffffff;
    padding: 10px 20px 40px 20px;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.why-choose-us ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
    display: inline-block;
}

.why-choose-us ul li {
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Center align the text and tick vertically */
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #555;
}

    .why-choose-us ul li i {
        color: #ff5733; /* Change the color of the tick */
        font-size: 20px; /* Adjust the size of the tick */
        margin-right: 10px; /* Space between tick and text */
        vertical-align: middle; /* Align the tick with text */
    }

    /* Clients and Market Segments Section */
    .clients-markets-section {
        display: flex;
        justify-content: center; /* Centers both columns */
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        padding: 10px 100px;
        background-color: #ffffff;
    }
    
    .clients-markets-section .clients,
    .clients-markets-section .market-segments {
        flex: 1 1 50%;
        text-align: center;
        padding: 0 100px;
    }
    
    .market-segments h2,
    .market-segments h3 {
        font-family: 'Philosopher', sans-serif;
    }
    
    .market-segments .segment {
        background-color: #f9f9f9;
        border-radius: 10px;
        padding: 20px;
        margin: 10px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .market-segments p {
        font-size: 16px;
        color: #555;
    }

    /* Responsive: stack vertically on small screens */
    .clients-markets-section .market-segments {
        min-width: 300px;
    }
    @media (max-width: 768px) {
        .clients-markets-section {
            flex-direction: column;
            align-items: center;
        }
    
        .clients-markets-section .clients,
        .clients-markets-section .market-segments {
            flex: 1 1 100%;
        }
    }

/* Toggle icon for mobile menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: white;
    position: absolute;
    right: 10px;
    visibility: hidden;
    top: -9999px;
    z-index: 1001;
}

/* Responsive menu for smaller screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        visibility: visible;
        position: absolute;
        top: 5px;
        right: 10px;
        font-size: 22px;
        color: white;
        z-index: 1001;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.4); /* Slightly lighter for better blur */
        backdrop-filter: blur(10px); /* Adds blur to the background behind the nav */
        -webkit-backdrop-filter: blur(10px); /* Safari support */
        position: absolute;
        top: 32px;
        left: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        z-index: 1000;
        align-items: center; /* centers nav items horizontally */
        padding-left: 0; /* Remove padding on small screens */    
    }

    nav ul.showing {
        display: flex;
    }

    nav ul li {
        display: block;
        padding: 10px 20px;
        margin: 0;
        text-align: center; /* center text within each list item */
    }
    
    nav ul li a:hover {
        text-decoration: none;       /* optional: remove underline */
        color: #ff5733;              /* changes text color on hover */
        background-color: rgba(255, 255, 255, 0.1); /* subtle bg effect */
        padding: 5px 10px;           /* padding for better hover area */
        border-radius: 5px;          /* smooth rounded edges */
        transition: all 0.3s ease;   /* smooth transition */
    }
}

/* General Styling (for HomePage)*/
body {
    font-family: 'Philosopher', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Wrapper for content to push footer to bottom */
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Background image styling */
body {
    background-image: url('Images/background.jpg');
    background-size: cover;;      /* Ensures the image covers the entire viewport */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Ensures the background image stays fixed during scrolling */
}

/* Navigation bar styling */
nav {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    padding: 1em;
    text-align: center;
    position: relative; /* Ensure the home icon is positioned relative to the nav */
}

/* Home icon styling */
.home-icon {
    position: absolute;
    top: 0px; /* Adjust as needed */
    left: 10px; /* Adjust as needed */
    z-index: 1000; /* Ensure it is above other elements */
    display: inline-block; /* Ensure the anchor wraps tightly around the image */
}

.home-icon img {
    width: 210px; /* Icon size */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove any inline spacing */
}

/* Adjust home icon size on smaller screens */
@media (max-width: 768px) {
    .home-icon img {
        width: 130px; /* Reduce the size of the icon on smaller screens */
        height: auto; /* Maintain aspect ratio */
    }
}

nav ul-bullet {
    padding-left: 20px; /* Padding to align with the paragraph */
}

nav ul li-bullet{
    margin-right: 10px;
}

nav ul {
    list-style: none; /* Remove default list styling */
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    nav ul {
        padding-left: 230px; /* Prevent overlap with the home icon only on larger screens */
    }
    
    nav ul li a:hover {
        text-decoration: underline; /* Underline links on hover */
    }    
}

nav ul li {
    display: inline; /* Display list items in a row */
    margin-right: 20px;
}

nav ul li a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline from links */
    font-family: "Baskervville SC", serif;
    font-size: 18px; /* Font size */
}

/* Hero Section */
.hero {
    background-image: url('Images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    color: black; /* Text color */
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    color: black; /* Text color */
    font-size: 20px;
    margin-bottom: 20px;
}

.hero button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #ff5733;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.hero button:hover {
    background-color: #ff2e00;
}

/* Content styling */
.content {
    color: black; /* Text color */
    text-align: left;; /* Center-align the text */
    padding: 2%; /* Add some padding for better readability */
    font-family: "Philosopher", sans-serif;
}

.content h1 {
    font-size: 48px; /* Font size */
    font-weight: bold; /* Font weight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for better visibility */
    letter-spacing: 2px; /* Spacing between letters */
}

.content h2 {
    font-size: 32px; /* Font size */
    font-weight: bold; /* Font weight */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better visibility */
    letter-spacing: 1px; /* Spacing between letters */
    margin-top: 20px; /* Space above the h2 */
}

.content p {
    font-size: 18px; /* Font size */
    font-family: "Philosopher", sans-serif;
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 20px; /* Space between paragraphs */
}

/* Sector styling */
.sector {
    background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent background for sectors */
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px; /* Rounded corners */
}

.sector h3 {
    font-size: 30px; /* Font size for sector headings */
    font-weight: bold; /* Font weight */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better visibility */
    letter-spacing: 1px; /* Spacing between letters */
    margin-bottom: 10px; /* Space below the h3 */
}

.sector p {
    font-size: 16px; /* Font size for sector paragraphs */
    line-height: 1.6; /* Line height for better readability */
    margin: 0; /* Remove default margin */
}

/* Contact form styling */
.contact-form {
    background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent background for form */
    padding: 25px;
    border-radius: 10px; /* Rounded corners */
    max-width: 600px; /* Max width for the form */
    margin-left: 0; /* puts the form on the left side */
}

.contact-form .form-group {
    margin-bottom: 15px; /* Space between form groups */
}

.contact-form label {
    display: block; /* Make labels block elements */
    font-weight: bold; /* Bold labels */
    margin-bottom: 5px; /* Space below labels */
}

.contact-form input,
.contact-form textarea {
    width: 100%; /* Full width for inputs and textarea */
    padding: 5px; /* Padding for inputs and textarea */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
}

.contact-form button {
    background-color: #007BFF; /* Button background color */
    color: white; /* Button text color */
    border: none; /* Remove default border */
    padding: 10px 20px; /* Padding for button */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
}

.contact-form button:hover {
    background-color: #0056b3; /* Darker background on hover */
}

/* Footer styling */
footer {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: white; /* Text color */
    text-align: center; /* Center-align the text */
    padding: 20px 0; /* Padding for footer */
    width: 100%;
    font-family: "Baskervville SC", serif;
}

.footer-content {
    max-width: 1200px; /* Max width for the footer content */
    margin: 0 auto; /* Center the footer content */
    padding: 0 20px;
}

.footer-links {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 20px 0; /* Space above the list */
    display: flex;
    justify-content: center; /* Center the list items */
    flex-wrap: wrap; /* Wrap list items to the next line if needed */
}

.footer-links li {
    margin: 0 15px; /* Space between list items */
}

.footer-links a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline from links */
}

.footer-links a:hover {
    text-decoration: underline; /* Underline links on hover */
}

footer p {
    margin-top: 10px; /* Space above the paragraph */
    font-size: 14px; /* Font size for the paragraph */
}

/* Services Section (HomePage) */
.services {
    padding: 0px 20px 15px 20px;
    text-align: center;
    background-color: #fff;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card i {
    font-size: 50px;
    color: #ff5733;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Style for the service-link-card */
.service-link-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-link-card:hover {
    transform: translateY(-10px);
}

.service-link-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    font-family: 'Philosopher', sans-serif;
}

.services-link h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services-link p {
    font-size: 16px;
    color: #ff5733;
}

.services-link:hover p {
    text-decoration: underline;
    color: #ff2e00;
}

/* Services page Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 40px; /* Spacing between items */
    padding: 20px;
}

.service-item {
    text-align: center;
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.service-item h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* One column on smaller screens */
    }
}

/* Projects Section(HomePage) */
.projects {
    padding: 10px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.projects h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.projects-container img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.projects-container img:hover {
    transform: scale(1.05);
}

.project-section-item {
    text-align: center;
    max-width: 300px;
}

.project-section-title {
    margin-top: 10px;
    font-size: 1.1em;
    color: #555;
    font-weight: 500;
}

.view-more-projects{
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #ff5733;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.view-more-projects:hover {
    background-color: #e04e2e;
    transform: translateY(-2px);
}

/* Call-To-Action Section */
.cta {
    background-color: #ffffff;
    text-align: center;
    padding: 5px 20px;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Philosopher', sans-serif;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
    font-family: 'Philosopher', sans-serif;
}

.cta button {
    background-color: #ff5733;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Philosopher', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta button:hover {
    background-color: #e04e2e;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat( 1fr); /* Two columns */
    gap: 40px; /* Spacing between items */
    padding: 20px;
}

.project-item {
    text-align: left;
}

.project-item img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.image-gallery {
    display: flex;
    gap: 10px; /* space between images */
    margin-bottom: 15px;
    align-items: flex-start;
  }
  
  .image-gallery img {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

.project-item h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 16px;
    line-height: 1.6;
}

    /* Responsive Design for Smaller Screens */
    @media (max-width: 768px) {
    .projects-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  
    .project-item {
      width: 100%;
    }
  
    .image-gallery {
      flex-direction: row;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 10px;
    }
  
    .image-gallery img {
      flex: 0 0 auto;
      width: 80%;
      height: auto
      scroll-snap-align: start;
      border-radius: 8px;
    }
  }
  
  
  /* WhatsApp contact link styling */
.whatsapp-link {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Philosopher', sans-serif;
}

.whatsapp-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.whatsapp-link i {
    margin-right: 8px;
}

.whatsapp-link:hover {
    background-color: #1ebe5d;
}

.whatsapp-contact span {
    font-size: 18px;
}

@media (max-width: 480px) {
    .whatsapp-contact {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .whatsapp-link {
        padding: 12px 15px;
        font-size: 16px;
    }
}

/* Loading overlay and spinner styles */
 .loading-overlay {
    position: fixed;
    inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@media (max-width: 480px) {
    .loading-overlay {
        padding: 0; /* remove padding so centering stays intact */
        background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for better visibility */
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 6px solid #f3f3f3;
        border-top: 6px solid #3498db;
    }
}