/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FF3B00;
}

/* 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 */
    }
}

/* General Container Layout */
.project-container {
    display: flex;
    padding: 1rem;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Left Container */
.left-container {
    flex: 2;
    background-color: #333333;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    transition: box-shadow 0.3s;
    overflow: hidden; /* Ensure content stays within the container */
}

.left-container:hover {
    box-shadow: 0 4px 8px #FF3B00;
    transform: scale(1.02);
}

/* Right Container */
.right-container {
    flex: 2;
    background-color: #333333;
    padding: 1rem;
    height: auto;
    border-radius: 10px;
    overflow-y: auto;
    transition: box-shadow 0.3s;
}

.right-container:hover {
    box-shadow: 0 4px 8px #FF3B00;
    transform: scale(1.02);
}

/* Main Image Slider */
.main-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 596px;
    height: 357px;
    text-align: center;
    margin-bottom: 1rem;
    overflow: hidden; /* Ensures zoom doesn't overflow container */
}

.main-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.main-img:hover {
    transform: scale(1.1); /* Zoom in effect */
    box-shadow: 0 4px 8px #FF3B00;
}

/* Slider Buttons */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    z-index: 10;
}

.prev-btn:hover,
.next-btn:hover {
    background: #FF3B00;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Image Number Indicator */
.image-indicator {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
}

/* Mini Image List Wrapper */
.mini-image-list-wrapper {
    width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Hide vertical scrolling */
    white-space: nowrap; /* Prevent images from wrapping */
    margin-top: 1rem;
    padding: 0.5rem 0;
    display: flex; /* Flexbox for better control */
    justify-content: center; /* Center the images horizontally */
    align-items: center; /* Vertically align the images */
    gap: 0.5rem; /* Space between images */
    scrollbar-width: thin; /* Customize scrollbar width for Firefox */
}

/* Scrollbar Styling */
.mini-image-list-wrapper::-webkit-scrollbar {
    height: 8px; /* Adjust scrollbar height */
}

.mini-image-list-wrapper::-webkit-scrollbar-thumb {
    background: #FF3B00; /* Scrollbar color */
    border-radius: 4px; /* Rounded edges */
}

.mini-image-list-wrapper::-webkit-scrollbar-track {
    background: #333333; /* Scrollbar track background */
}

/* Mini Images */
.mini-img {
    width: 67px; /* Image width */
    height: 67px; /* Image height */
    object-fit: cover; /* Ensure images fit properly */
    border: 2px solid transparent;
    border-radius: 5px; /* Rounded corners */
    transition: transform 0.3s ease-in-out, border-color 0.3s ease; /* Smooth hover effect */
    cursor: pointer;
    padding: 3px;
}

.mini-img:hover {
    transform: scale(1.1); /* Zoom effect on hover */
    border-color: #FF3B00; /* Highlight border on hover */
}

.mini-img.selected {
    border-color: #FF3B00; /* Highlight selected image */
    box-shadow: 0 0 10px #FF3B00;
}


/* Right Container Content */
#project-details {
    text-align: left;
    color: lightgray;
    font-family: 'Roboto', sans-serif;
    padding: 1rem;
}

#project-details h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
}

#project-details h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

#project-details ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.8; /* Add line spacing */
}

#project-details p {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-container {
        flex-direction: column;
    }

    .left-container,
    .right-container {
        width: 100%; /* Make containers fit mobile screen */
    }

    .mini-img {
        width: 46px; /* Reduced size for mobile */
        height: 46px;
    }

    #project-details h1 {
        font-size: 1.2rem;
    }

    #project-details h2 {
        font-size: 1rem;
    }

    #project-details ul {
        padding-left: 1rem;
        line-height: 1.6; /* Adjust spacing for mobile */
    }

    #project-details p {
        font-size: 0.9rem;
    }
}

/* Footer Section */
.footer {
    background-color: #D8D6DC; /* Background color */
    border-top: 2px solid #000; /* 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;
    }
}


