/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Navbar Styling */
.custom-navbar {
    background: white; /* Seablue */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    font-family: 'TW Cen MT', sans-serif;
}

.navbar-logo {
    background: white; /* White background for visibility */
    padding: 5px 10px;
    border-radius: 5px;
}

.navbar-logo img {
    height: 45px;
}

.navbar-links {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.navbar-links a {
    text-decoration: none;
    color: #777777;
    font-weight: 500;
    font-size: 18px;
    transition: 0.3s ease-in-out;
    padding: 10px 15px;
}

.dropdown-toggle {
    text-decoration: none;
    color: #004080;
    font-weight: 500;
    font-size: 21px;
    transition: 0.3s ease-in-out;
    padding: 10px 15px;

}

.navbar-links a:hover, 
.dropdown-toggle:hover, 
.navbar-links a.active {
    color: #c7a008; /* Gold */
}

/* Fix White Space on Right */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    position: absolute;
}

.dropdown:hover .dropdown-menu {
    display: block; /* Enable hover effect */
}

.dropdown-menu a {
    color: #004080;
    padding: 10px;
    display: block;
    white-space: nowrap;
    background: #f5f5f5; /* Ensure background is visible */
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #006994;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95); /* Transparent White */
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1100; /* Ensures navbar is above hero section */
    font-family: 'TW Cen MT', sans-serif;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu .close-btn {
    align-self: flex-end;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu a {
    text-decoration: none;
    color: #004080;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    transition: 0.3s ease-in-out;
    background: #f5f5f5; /* Ensure background is visible */
}

.mobile-menu a:hover {
    color: #006994;
}

/* Mobile Dropdowns */
.mobile-dropdown {
    display: none;
    padding-left: 15px;
}

.mobile-dropdown a {
    font-size: 16px;
    padding: 8px 0;
    display: flex;
    background: #eaeaea; /* Background for better visibility */
    
}

.mobile-menu .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    transition: 0.3s;
}

.rotate {
    transform: rotate(180deg);
}

/* Mobile Icon */
/* Mobile Menu Icon */
.mobile-menu-icon {
    font-size: 30px;
    cursor: pointer;
    display: none;
    color: black !important; /* Force black color */
    z-index: 1101; /* Make sure it's above other elements */
    position: relative; /* Ensure it is positioned correctly */
}



@media (max-width: 991px) {
    .navbar-links {
        display: none;
    }
.mobile-menu-icon {
        display: block;
    }
    .custom-navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-menu-icon {
        order: 2; /* Ensures hamburger menu is on the right */
    }

    .navbar-logo {
        order: 1; /* Ensures logo is on the left */
    }
}




/* Header Section */
.header-section {
    background-color: #003366;
    color: white;
    padding: 80px 0;
    text-align: center;
    background-image: url('CIL_TANKS_STRUCTURES/CIL-1.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.header-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.244); /* Dark overlay */
}

.header-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    z-index: 1;
    position: relative;
}

.header-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}


/* Project Count Section */
.project-count-section {
    background-color: #f8f9fa; /* Light grey background */
    padding: 50px 0;
}

.project-count-section h3 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.project-count-section h3.count {
    font-size: 2.5rem;
    color: #017B92;
}

.project-count-section p {
    font-size: 1rem;
    color: #666;
}

/* Ongoing and Completed Projects */
/* Ongoing Projects Section */
.ongoing-projects-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.ongoing-projects-section h2 {
   margin-bottom: 30px;
}


.project-image {
    width: 100%;
    height: 80vh;
    transition: transform 0.3s ease;
}

.project-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-description h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-description p {
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: justify;
}

.view-more {
    align-self: flex-start;
}

.project-image:hover {
    transform: scale(1.05);
}

/* Modal Styles */
/* Modal Styles */
.modal-content {
    background-color: white; /* Set background to white */
    color: black; /* Set text color to black */
    border-radius: 10px;
    overflow: hidden;
}

.modal-text-section h6 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: black; /* Ensure text color is black */
}

.modal-text-section p {
    color: black; /* Ensure paragraph text color is black */
    text-align: justify;
}

.modal-image-section img {
    width: 100%;
    height: 55vh;
    border-radius: 5px;
    margin-bottom: 15px; /* Add some space between images */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-image-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-section {
    margin-bottom: 20px;
}

/* Media Queries for Responsiveness */
@media (max-width: 767px) {
    .modal-text-section, .modal-image-section {
        text-align: center;
    }

    .modal-image-section {
        margin-top: 20px;
    }
}




/* General Styles for Projects Section */
.recent-completed-projects .main-project-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.recent-completed-projects .main-project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.recent-completed-projects .project-gallery {
    margin-top: 20px;
}

.gallery-slider {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.gallery-item {
    flex: 0 0 33.33%; /* Adjust this to control how many images show at once */
    padding: 0 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}





/* Media Queries */
@media (max-width: 767px) {
    .project-count-section h3 {
        font-size: 2rem; /* Smaller font size for smaller screens */
    }

    .project-count-section p {
        font-size: 0.8rem; /* Smaller font size for smaller screens */
    }

    .completed-projects-section .row {
        flex-direction: column; /* Stack the image and text on smaller screens */
    }

    .gallery-item {
        flex: 0 0 100%; /* Show one image at a time on mobile */
    }

    .gallery-prev,
    .gallery-next {
        font-size: 16px; /* Smaller buttons for smaller screens */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .project-count-section h3 {
        font-size: 2.5rem; /* Adjusted font size for tablets */
    }

    .completed-projects-section .row {
        margin-bottom: 30px; /* Reduce spacing on tablets */
    }

    .gallery-item {
        flex: 0 0 50%; /* Show two images at a time on tablets */
    }

    .gallery-prev,
    .gallery-next {
        font-size: 18px; /* Adjust button size for tablets */
    }
}



.project-history-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.project-history-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.card-header {
    background-color: #007bff;
    color: #fff;
}

.card-header .btn-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    width: 100%;
    text-align: left;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    background-color: #007bff;
    color: #fff;
}

/* General Styles for Accordion */
.accordion-button {
    background-color: #007bff;
    color: white;
    text-align: left;
    padding: 10px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 0;
    width: 100%;
  }
  
  .accordion-button:focus {
    box-shadow: none;
  }
  
  .accordion-button.collapsed {
    background-color: #007bff;
    color: white;
  }
  
  .accordion-button:not(.collapsed) {
    color: white;
    background-color: #0056b3;
  }
  
  .accordion-body {
    padding: 0;
  }
  
  .table {
    margin-bottom: 0;
  }
  
  .table th, .table td {
    font-size: 0.9rem;
    padding: 8px;
  }
  
  /* Media Queries for Smaller Screens */
  @media (max-width: 767px) {
    .accordion-button {
      font-size: 1rem;
      padding: 8px 15px;
    }
  
    .accordion-body {
      padding: 0;
    }
  
    .table th, .table td {
      font-size: 0.8rem;
      padding: 6px;
    }
  
    /* Make accordion headers fit better on smaller screens */
    .accordion-button {
      text-align: center;
    }
  
    .table-responsive {
      overflow-x: auto;
    }
  }
  
  /* Media Queries for Tablet Devices */
  @media (min-width: 768px) and (max-width: 991px) {
    .accordion-button {
      font-size: 1.05rem;
      padding: 9px 18px;
    }
  
    .accordion-body {
      padding: 0;
    }
  
    .table th, .table td {
      font-size: 0.85rem;
      padding: 7px;
    }
  
    .table-responsive {
      overflow-x: auto;
    }
  }
  
  /* Media Queries for Desktop Devices */
  @media (min-width: 992px) {
    .accordion-button {
      font-size: 1.1rem;
      padding: 10px 20px;
    }
  
    .accordion-body {
      padding: 0;
    }
  
    .table th, .table td {
      font-size: 0.9rem;
      padding: 8px;
    }
  
    .table-responsive {
      overflow-x: visible;
    }
  }
  



/* Footer Section */
.footer-section {
    background-color: #003366;
    color: white;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-section h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
/* Footer Links and Hover Effects */
.footer-section a:hover {
    color: #cccccc; /* Light gray color on hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #666;
    color: #cccccc;
}

/* Responsive Design */

/* Small Devices (Tablets and below) */
@media (max-width: 767px) {
    .header-title {
        font-size: 2rem; /* Adjust font size for mobile screens */
    }

    .header-subtitle {
        font-size: 1.2rem; /* Adjust subtitle size */
    }

    .projects-section {
        padding: 30px 0; /* Reduce padding for smaller screens */
    }

    .project-card {
        margin-bottom: 20px; /* Space between project cards */
    }

    .project-overlay {
        padding: 20px; /* Add padding inside overlay for mobile */
        text-align: center; /* Center text on mobile */
    }

    .footer-section {
        padding: 20px 0; /* Reduce padding for mobile screens */
        font-size: 0.8rem; /* Adjust footer font size */
    }
}

/* Medium Devices (Desktops and above) */
@media (min-width: 768px) and (max-width: 991px) {
    .header-title {
        font-size: 2.5rem; /* Adjust font size for tablets */
    }

    .header-subtitle {
        font-size: 1.4rem; /* Adjust subtitle size */
    }

    .project-card {
        margin-bottom: 30px; /* Space between project cards */
    }

    .footer-section {
        padding: 30px 0; /* Adjust padding for tablets */
    }
}

/* Large Devices (Larger Desktops) */
@media (min-width: 992px) {
    .header-title {
        font-size: 3rem; /* Larger font for desktops */
    }

    .header-subtitle {
        font-size: 1.5rem; /* Larger subtitle for desktops */
    }

    .project-card {
        margin-bottom: 40px; /* Space between project cards */
    }

    .footer-section {
        padding: 40px 0; /* Padding for larger screens */
    }
}

