/* General Reset and Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #c3bdbd;
    text-align: center;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    text-align: left;
    padding: 28px;
    background: rgb(0, 0, 0);
    color: #fff;
}


nav ul {
    display: flex;
    justify-content: right;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

/* Hamburger Menu Styling */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 50px;
        background: #fff;
        padding: 10px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        color: #333;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }

    nav.open ul {
        display: flex;
    }
}

/* Grid for Posters */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.grid-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.info-box {
    text-align: center;
    padding: 10px;
    background: #f4f4f4;
}

/* Modal for Image Viewer */
.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.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Flexible grid */
    gap: 16px;
    /* Spacing between items */
    padding: 20px;
}

.gallery-item img {
    width: 100%;
    /* Ensures images take full width of their container */
    height: auto;
    /* Maintains aspect ratio */
    border-radius: 8px;
    /* Optional for rounded corners */
    transition: transform 0.3s ease;
    /* Smooth zoom effect on hover */
}

.gallery-item img:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
        /* Single column layout for very small screens */
    }
}

#image-gallery h2 {
    font-size: 20px;
}

.modal-content {
    max-width: 90%;
    /* Constrain width */
    max-height: 90%;
    /* Constrain height */
    object-fit: contain;
    /* Fit image without cropping */
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Logo styling */
.logo img {
    width: 120px;
    /* Adjust size as needed */
    height: auto;

}

/* Navigation styling */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-menu ul {
        display: none;
        /* Hide menu (optional, can replace with hamburger menu) */
    }
}

/* Social buttons container */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

/* Styling for social media buttons */
.social-btn {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

/* Instagram button style */
.instagram {
    background-color: #444444;
    /* Instagram color */
}

.instagram:hover {
    background-color: #8f8d8d;
    /* Instagram hover color */
}

/* Behance button style */
.behance {
    background-color: #444444;
    /* Behance color */
}

.behance:hover {
    background-color: #8f8d8d;
    /* Behance hover color */
}

/* LinkedIn button style */
.linkedin {
    background-color: #444444;
    /* LinkedIn color */
}

.linkedin:hover {
    background-color: #8f8d8d;
    /* LinkedIn hover color */
}

@media (max-width: 768px) {

    /* Stack the buttons vertically on smaller screens */
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 80%;
        /* Makes buttons wider on small screens */
        margin-bottom: 10px;
        /* Adds spacing between buttons */
    }
}

h2,
p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;

}

/* Basic styling for the text box */
.text-box {
    border: 2px solid #636161;
    /* Border for the box */
    padding: 20px;
    /* Padding inside the box */
    background-color: #dbd6d6;
    /* Light background color */
    width: 90%;
    /* Box width will be 80% of the container */
    margin: 20px auto;
    /* Center the box horizontally with automatic margins */
    box-sizing: border-box;
    /* Ensure padding doesn't affect the width */
    font-size: 18px;
    /* Set text size */
}

/* Responsive design for smaller screens (mobile) */
@media screen and (max-width: 600px) {
    .text-box {
        width: 95%;
        /* On small screens, make the box 95% of the screen width */
        font-size: 14px;
        /* Slightly reduce the font size on mobile */
    }
}

.footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    /* Pushes the footer to the bottom */
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 20px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

h4,
p1 {
    color: #f4f4f4;
}

/* Bio Section Styling */
.bio-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #f8f8f8;
    gap: 20px;
    flex-wrap: wrap;
}

.bio-description {
    flex: 1 1 300px;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
}

.bio-description h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.bio-description p {
    font-size: 16px;
    color: #555;
}

.bio-picture {
    flex: 1 1 300px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.bio-picture img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .bio-picture img {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .bio-picture img {
        max-width: 95%;
    }
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .bio-container {
        flex-direction: column;
        text-align: center;
    }

    .bio-description {
        text-align: center;
    }
}

/* Background image for the top of the page */
.top-header {
    background-image: url('/web5/portfolio_website/img/itadori.JPG');
    background-size: cover;
    background-position: center;
    height: 400px;
    /* Adjust the height to suit your design */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* Heading and paragraph styling within the top header */
.top-header h1 {
    font-size: 36px;
    margin: 0;
}

.top-header p {
    font-size: 18px;
    margin: 10px 0 0;
}

/* Ensure the header content stays below the top image */
header.start {
    position: relative;
    z-index: 10;
    background-color: #000;
    /* or your desired background color */
    padding: 20px;
}

/* Style for the navigation and other sections */
header {
    text-align: left;
    padding: 28px;
    background: rgb(0, 0, 0);
    color: #fff;
}

/* Rest of your CSS */


/* Styling the project section */
.projects-container {
    text-align: center;
    padding: 40px 20px;
}

.projects-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.project-item {
    display: inline-block;
    margin: 10px;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-img:hover {
    transform: scale(1.05);
    /* Slight zoom effect on hover */
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
}

.modal-description {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 18px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .project-item {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Case Study Section */
.case-study {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f8f8f8;
}

/* Container for project image and description */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

/* Project Image */
.project-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Project Description */
.project-description {
    flex: 1;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
}

.project-description h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.project-description p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.see-more-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    background-color: #444;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.see-more-btn:hover {
    background-color: #8f8d8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .project-description {
        max-width: 100%;
    }

    .project-image img {
        max-width: 100%;
    }
}

/* Container for Projects */
.projects-container {
    padding: 20px;
    text-align: center;
}

.projects-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Grid Layout for Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding: 0 10px;
}

/* Project Item Styles */
.project-item {
    max-width: 200px;
    /* Set a max width to control image size */
    text-align: center;
    margin: 0 auto;
}

.project-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Keep the aspect ratio intact */
    margin-bottom: 10px;
    /* Space between image and description */
}

.project-description {
    font-size: 1rem;
    color: #333;
    padding: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(1, 1fr);
        /* Stack items on mobile */
    }

    .project-item {
        max-width: 80%;
        /* Limit width on mobile to keep images smaller */
    }
}

@media (max-width: 480px) {
    .project-item {
        max-width: 90%;
        /* Further limit width for very small screens */
    }
}

#projects {
    padding: 40px 20px;
    background-color: #f8f8f8;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    width: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-description {
    flex: 1;
    text-align: left;
}

.project-description h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-description p {
    font-size: 1rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .project-image img {
        width: 100%;
    }

    .project-description {
        text-align: center;
    }
}

/* General Gallery Styling */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.project-description {
    text-align: center;
    margin-top: 10px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

/* Grid Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px;
}

/* Gallery Item */
.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.project-description {
    text-align: left;
    padding: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Ensure projects are aligned in a uniform grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* Adjust spacing for better alignment */
    padding: 40px;
    justify-content: center;
    align-items: start;
}

/* Ensure each project is properly structured */
.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    /* Prevents overly wide items */
    margin: auto;
}

/* Ensure images are properly sized */
.gallery-item img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
        /* Single column layout */
    }
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Black w/ opacity */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 20px;
}

/* The Close Button */
#modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}