/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
header {
    background-color: #D8D6DC;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.navbar .logo {
    padding-left: 1rem;
}

.navbar .logo img {
    width: 240px; /* Default size of logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    padding-right: 1rem; /* Padding for categories */
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu .nav-item {
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-size: 0.8rem; /* Default font size for categories */
    position: relative;
}

.nav-menu .nav-item:hover {
    color: #FF3B00;
}

.nav-menu .nav-item::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #FF3B00, #D8D6DC);
    transition: width 0.3s;
}

.nav-menu .nav-item:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Styles for Tablets and iPads */
@media (max-width: 1024px) {

    /* Ensure the toggle is visible and positioned correctly */
    .menu-toggle {
        display: block;
        position: absolute; /* Keep the button in the original position */
        right: 1rem; /* Align it to the right */
        top: 1.8rem; /* Slight margin from the top */
        font-size: 1.5rem;
        cursor: pointer;
        color: black;
        background: none;
        border: none;
    }

    .menu-toggle:hover {
        color: #FF3B00; /* Add hover effect */
        transform: scale(1.1); /* Slight scaling effect */
        transition: all 0.3s ease; /* Smooth transition */
    }

    .navbar .container {
        flex-direction: column; /* Stack the logo and menu vertically */
        align-items: flex-start; /* Align everything to the left */
    }

    .navbar .logo {
        padding-left: 1rem;
        margin-bottom: 0.5rem; /* Add space between logo and menu */
        padding-top: 0.5rem;
    }

    .navbar .logo img {
        width: 160px; /* Adjusted logo size */
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start; /* Align items with logo */
        display: none;
        background: #D8D6DC;
        width: 100%;
        padding-left: 1rem; /* Add padding to align menu with logo */
        padding-right: 1rem; /* Balanced padding on the right */
    }

    .nav-menu.active {
        display: flex; /* Show menu when toggle is active */
    }

    .nav-menu li {
        margin: 0.5rem 0; /* Add vertical spacing between items */
    }

    .nav-menu .nav-item {
        font-size: 0.7rem; /* Font size for better touch area */
        padding: 0.3rem 0; /* Adjust padding for better touch area */
    }
}

.what-we-deliver {
    position: relative; /* Ensure the overlay and content stack correctly */
    background: url('../images/services/bim3-1.png') center center/cover no-repeat, #000; /* Add fallback color */
    padding: 3rem 1rem;
    font-family: 'Roboto', sans-serif;
    color: #fff; /* Ensure text is readable on dark background */
}

.what-we-deliver::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Black overlay with 50% opacity */
    z-index: 1; /* Place behind the content */
}

.what-we-deliver .container {
    position: relative; /* Position the content above the overlay */
    z-index: 2; /* Ensure content is above the overlay */
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.what-we-deliver .header-line {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the line */
    margin-top: 1rem; /* Ensure space between the title and line */
    width: 100%;
}

.what-we-deliver h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff; /* White text */
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    margin-left: 1rem;
    margin-right: 1rem;
    text-align: center; /* Center align the title */
    z-index: 2; /* Ensure h2 text stays above the overlay */
}

.what-we-deliver .line {
    flex-grow: 1;
    border-top: 3px solid #FF3B00; /* Line color */
    margin-left: 2rem;
    height: 3px;
    width: 50%; /* Default width of the line */
    margin-top: 10px;
}

.what-we-deliver .content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center; /* Center content */
}

.what-we-deliver .text {
    flex: 1;
    text-align: justify; /* Justify text */
}

.what-we-deliver .text p {
    font-size: 1.38rem;
    color: #fff; /* White text for readability */
    line-height: 1.8;
    margin: 0;
    text-align: justify;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
}

.what-we-deliver .text .highlight {
    color: #FF3B00;
    font-weight: bold;
}

.what-we-deliver .image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.what-we-deliver .image img {
    max-width: 65%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-we-deliver .image img:hover {
    transform: scale(1.4); /* Hover effect */
}

/* Responsive Adjustments for Mobile and Tablets */
@media (max-width: 1024px) {
    .what-we-deliver .content {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center; /* Center content horizontally */
        gap: 30px; /* Adjust the gap between elements */
    }

    .what-we-deliver h2 {
        font-size: 2rem; /* Adjust title font size for tablets */
        text-align: center; /* Center the title */
        margin-bottom: 0.5rem; /* Space between title and line */
        padding-top: 10px; /* Ensure space from the top */
    }

    .what-we-deliver .line {
        display: none; /* Hide the line in tablet view and below */
    }

    .what-we-deliver p {
        font-size: 1.2rem; /* Slightly bigger text for better readability */
        text-align: center; /* Center align the paragraph */
        margin: 0 auto;
    }

    .what-we-deliver .image {
        width: 80%; /* Adjust image width for tablets */
        margin-top: 20px;
    }
}

/* For Mobile Devices */
@media (max-width: 768px) {
    .what-we-deliver .content {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center; /* Center content horizontally */
        gap: 30px; /* Adjust the gap between elements */
    }

    .what-we-deliver h2 {
        font-size: 1.8rem;
        text-align: center; /* Center align the heading */
        margin-bottom: 0.5rem; /* Space between title and line */
    }

    .what-we-deliver .line {
        display: none; /* Hide the line in mobile view */
    }

    .what-we-deliver p {
        font-size: 1rem;
        text-align: center; /* Center align the paragraph */
        margin: 0 auto; /* Ensure it is centered within its container */
        max-width: 90%; /* Limit width to avoid too wide text */
    }

    .what-we-deliver .image {
        width: 100%; /* Image should take full width on mobile */
        margin-top: 20px;
    }

    .what-we-deliver h3 {
        font-size: 1.2rem; /* Adjust the font size of h3 */
        text-align: center; /* Center align h3 */
        margin-bottom: 1rem;
    }
}

/* Services List Section */
.services-list {
    background-color: #333333; /* Dark gray background */
    padding: 3rem 1rem;
    color: #ffffff; /* White text */
    font-family: 'Roboto', sans-serif; /* Font family */
}

.services-list .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Space between service items */
}

/* Service Item Styles */
.service-item {
    display: flex;
    gap: 2rem; /* Space between image and text */
    align-items: flex-start;
    background-color: #444444; /* Slightly lighter gray for the service item */
    border-radius: 8px; /* Rounded corners */
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0 6px 14px rgba(255, 59, 0, 0.7); /* Enhanced shadow with orange hue */
}

/* Image Styles */
.service-item img {
    width: 400px; /* Fixed width */
    height: 242.39px; /* Fixed height */
    object-fit: cover; /* Ensure the image maintains its aspect ratio and fills the area */
    border: 3px solid #FF3B00; /* Orange border */
    border-radius: 8px; /* Match container's rounded corners */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* Shadow effect on images */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

/* Service Content Styles */
.service-content h3 {
    font-size: 2rem; /* Adjust heading size */
    font-weight: 600; /* Bold font weight */
    color: #FF3B00; /* Orange color for the heading */
    text-align: left; /* Align heading to the left */
    margin-bottom: 0.8rem; /* Add spacing below heading */
}

.service-content p {
    font-size: 1.3rem; /* Adjust paragraph text size */
    color: #ddd; /* Lighter gray for paragraph text */
    text-align: justify; /* Justify all paragraph text */
    line-height: 1.6; /* Improved readability with line height */
    margin-bottom: 1.3rem; /* Space below the paragraph */
}

/* 'Find Out More' Button Styles */
.find-out-more {
    background-color: #FF3B00; /* Button background color */
    color: #ffffff; /* Text color */
    border: none; /* Remove borders */
    padding: 12px 20px; /* Button padding */
    border-radius: 20px; /* Rounded corners */
    font-size: 14px; /* Button font size */
    font-weight: 600; /* Bold font weight */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.3s ease; /* Smooth hover effects */
    align-self: flex-start; /* Align button to the left in larger screens */
    text-transform: uppercase; /* Uppercase text for emphasis */
}

.find-out-more:hover {
    background-color: #000; /* Darker background on hover */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .service-item {
        flex-direction: column; /* Stack items vertically for tablets */
        align-items: center; /* Center align items */
        text-align: center; /* Center-align all text */
    }

    .service-item img {
        width: 350px; /* Maintain fixed width */
        height: 242.39px; /* Maintain fixed height */
        margin-bottom: 1rem; /* Add spacing between image and text */
    }

    .service-content h3 {
        text-align: center; /* Center-align heading and text */
        margin-left: 0; /* Remove left margin */
        margin-right: 0; /* Remove right margin */
        font-size: 2rem; /* Adjust heading size */
    }

    .service-content p {
        margin-left: 0; /* Remove left margin */
        margin-right: 0; /* Remove right margin */
        text-align: justify; /* Justify paragraph text for tablet view */
        font-size: 1.3rem; /* Adjust heading size */
    }

    .find-out-more {
        align-self: center; /* Center the button */
        margin-top: 1rem; /* Add top margin for spacing */
    }
}

@media (max-width: 768px) {
    .service-item img {
        width: 100%; /* Allow image to take full width of the container */
        height: auto; /* Maintain aspect ratio */
        max-width: 350px; /* Add a maximum width for better display */
        margin: 0 auto; /* Center align the image */
    }

    .service-item {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center; /* Center align the items */
        text-align: center; /* Center-align text for mobile view */
    }

    .service-content h3 {
        text-align: center; /* Center align heading in mobile */
        font-size: 2rem; /* Adjust heading size */
    }

    .service-content p {
        text-align: justify; /* Justify paragraph text on mobile */
        font-size: 1.3rem; /* Adjust heading size */
    }

    .find-out-more {
        align-self: center; /* Center align the button */
        margin-top: 1rem; /* Add top margin for spacing */
    }
}

/* Fix image size */
.service-image {
    width: 331.734px; /* Fixed width */
    height: 236.375px; /* Fixed height */
    object-fit: cover; /* Maintain aspect ratio while filling dimensions */
    border-radius: 8px; /* Rounded corners for consistency */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

.carousel-inner {
    display: flex;
    overflow: hidden; /* Hide overflow to keep only one image visible */
    position: relative;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%; /* Each image takes up 100% of the carousel width */
    display: none; /* Hide all items by default */
    justify-content: center; /* Center the content */
    align-items: center; /* Vertically center the content */
}

.carousel-item.active {
    display: flex; /* Show only the active item */
}

/* Adjust Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    gap: 20px; /* Space between buttons */
    margin-top: 15px; /* Space above the controls */
}

.carousel-controls button {
    background-color: #FF3B00; /* Button background color */
    color: #ffffff; /* Text color */
    border: none; /* Remove borders */
    padding: 10px 15px; /* Padding for the buttons */
    border-radius: 20px; /* Rounded button corners */
    font-size: 14px; /* Font size for button text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: all 0.3s ease; /* Smooth hover effects */
}

.carousel-controls button:hover {
    background-color: #000; /* Darker background on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .carousel-controls {
        justify-content: center; /* Center buttons horizontally */
    }
}

.btn-custom {
    background-color: #FF3B00; /* Button background */
    color: white; /* Text color */
    border: none; /* Remove default border */
    padding: 10px 20px; /* Button padding */
    border-radius: 20px; /* Rounded button */
    font-size: 14px; /* Adjust font size */
    text-transform: uppercase; /* Uppercase text */
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition for hover effects */
}

/* Hover effect for buttons */
.btn-custom:hover {
    background-color: #000; /* Darker orange on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999; /* Ensure it's above all other content */
}

.fullscreen-modal img {
    width: 40rem; /* Set the desired width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 3px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); /* Enhanced shadow for better visibility */
    transition: transform 0.3s ease; /* Smooth transition for effects */
}

@media (max-width: 768px) {
    .fullscreen-modal img {
        width: 90%; /* Adjust width for mobile view */
        margin: 0 1rem; /* Add margin to both left and right */
        height: auto; /* Maintain aspect ratio */
        border-radius: 3px; /* Optional: rounded corners */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7); /* Slightly reduced shadow for mobile */
        transition: transform 0.3s ease; /* Smooth hover effect */
    }
}

.fullscreen-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}


/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with transparency */
    z-index: 1000;
    overflow: auto;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    background-color: #444444;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    position: relative;
    text-align: left; /* Align text to the left */
}

/* Modal Body: Flex for Image and Text */
.modal-body {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

/* Modal Image with Hover Effect */
.modal-image {
    width: 250px;
    height: auto;
    border: 3px solid #FF3B00; /* Add stroke to image */
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

/* Hover Effect on Modal Image */
.modal-image:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 8px 14px rgba(255, 59, 0, 0.7); /* Enhanced shadow with orange hue */
}

/* Modal Text */
.modal-text {
    flex: 1; /* Take remaining space */
    font-size: 0.95rem; /* Slightly larger for readability */
    line-height: 1.6; /* Improve readability */
    margin-right: 2rem;
}

/* Modal Heading */
.modal-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #FF3B00; /* Highlighted heading */
    margin-left: 1rem;
    font-weight: bold;
}

/* Modal List */
.modal-text ul {
    list-style-type: disc;
    padding-left: 40px; /* Indent list items */
    margin-bottom: 20px;
    text-align: justify;
}

.modal-text ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-align: justify;
    text-align: justify;
}

/* Modal Paragraph */
.modal-text p {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #dddddd; /* Slightly lighter for contrast */
    margin-left: 1rem;
    margin-bottom: 1rem;
}


/* Close Button */
.close-btn {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover {
    color: #ff3b00;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column; /* Stack image and text vertically */
    }

    .modal-image {
        margin-bottom: 20px; /* Add spacing below the image */
        width: 100%; /* Full width for smaller devices */
    }

    .modal-content {
        padding: 15px;
    }

    .close-btn {
        top: 5px;
        right: 10px;
    }
}

/* Design Solutions Section */
.design-solutions {
    background-color: #ffffff; /* White background */
    padding: 40px; /* Increase padding for spacing */
    border: 1px solid #000000; /* Black border */
    margin: 0; /* Remove margin to extend full width */
    width: 100%; /* Full width for the section */
    font-family: 'Roboto', sans-serif;
    text-align: center; /* Center align content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for separation */
}

/* Container Styling */
.design-solutions .container {
    padding: 10px;
}

/* Heading Styling */
.design-solutions h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

/* Paragraph Styling */
.design-solutions p {
    font-size: 1.35rem;
    color: #333333; /* Slightly dark text */
    line-height: 1.6;
    font-style: italic; /* Italicize text */
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .design-solutions h3, .design-solutions p {
        text-align: center; /* Center align for smaller screens */
    }
}

/* Footer Section */
.footer {
    background-color: #D8D6DC; /* Background color */
    border-top: 2px solid #FF3B00; /* Orange stroke effect */
    color: #fff;
    padding: 2rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-variant: small-caps; /* Apply small caps globally to footer */
}

/* Footer Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Add padding for all device sizes */
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Footer Logo Section */
.footer-logo {
    flex: 1 1 30%;
    text-align: left;
}

.footer-logo img {
    max-width: 240px;
    margin-bottom: 2rem;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #000;
    text-align: left; /* Keep text left-aligned */
    font-variant: small-caps; /* Small caps for logo caption */
}

/* Footer Links Section */
.footer-links {
    flex: 1 1 30%;
}

.footer-links h3 {
    margin-bottom: 1rem;
    margin-left: 5rem;
    font-size: 1.2rem;
    color: #FF3B00; /* Orange color for headings */
    font-variant: small-caps; /* Small caps for headings */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
    margin-left: 5rem;
}

.footer-links ul li a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-variant: small-caps; /* Small caps for links */
}

.footer-links ul li a:hover {
    color: #FF3B00; /* Hover effect for links */
}

/* Footer Contact Section */
.footer-contact {
    flex: 1 1 30%;
}

.footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #FF3B00;
    font-variant: small-caps; /* Small caps for contact headings */
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #000;
    font-variant: small-caps; /* Small caps for contact text */
}

/* Footer Social Icons */
.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    margin-right: 1rem;
    display: inline-block;
}

.footer-social img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1); /* Hover effect to enlarge icons */
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #000;
    font-variant: small-caps; /* Small caps for bottom text */
}

/* iPad View: Consistent Scaling */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-container {
        padding: 0 2rem; /* Add consistent padding for iPad view */
    }

    .footer-content {
        justify-content: space-between; /* Keep alignment same as larger devices */
    }

    .footer-logo {
        text-align: left; /* Maintain left alignment */
        padding-left: 1rem; /* Add padding to avoid sticking to the edge */
    }

    .footer-logo p {
        text-align: left; /* Ensure text remains left-aligned */
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center; /* Center-align all content */
        text-align: center; /* Center-align text */
    }

    .footer-logo, .footer-logo p {
        text-align: center; /* Center-align text */
    }

    .footer-logo, .footer-links, .footer-contact {
        flex: 1 1 100%; /* Ensure each section takes full width */
    }

    .footer-links h3, .footer-links ul li {
        margin-left: 0; /* Remove left margin for mobile view */
    }

    .footer-social {
        margin-top: 1rem;
    }
}
