/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f3f3;
    color: #333;
    padding-top: 0px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 30px;
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    z-index: 100;
}

/* Logo Image */
.logo img {
    height: 40px;
}

/* Centering nav links */
.nav-center {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 20px;
    list-style-type: none;
}

/* Zoom effect on navigation images */
.nav-links img {
    transition: transform 0.3s ease;
}

.nav-links img:hover {
    transform: scale(1.1);
}

/* Specific Image Sizes for Navigation Links */
.about-img {
    width: 85px;
    height: auto;
}

.portfolio-img {
    width: 70px;
    height: auto;
}

.experience-img {
    width: 85px;
    height: auto;
}

/* Custom styles for Contact Me button */
.contact-button {
    background-color: #a29e9e;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-button img {
    width: 90px;
    height: auto;
}

.contact-button:hover {
    background-color: #1bbc2e;
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: black;
}

/* Main Header */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    margin-top: 80px;
    /* To avoid overlapping with the navbar */
    background-image: url('https://wallpaperaccess.com/full/1853567.jpg');
    /* Replace with your image path */
    background-size: cover;
    /* Ensures the image covers the entire background */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
}

/* Flexbox container to align text and image */
.intro-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    /* Limits the width of the content */
    margin: 0 auto;
    /* Centers the container */
    padding: 0 40px;
    /* Adds padding on left and right */
}

/* Stack images in the intro-text vertically */
.intro-text {
    display: flex;
    flex-direction: column;
    /* Stacks the images vertically */
    flex: 1;
    text-align: left;
    padding: 20px;
}

.intro-image {
    width: 100%;
    /* Ensure the image takes full width */
    max-width: 400px;
    /* Limit max width for larger screens */
    height: auto;
    /* Maintain aspect ratio */
    margin: 10px 0;
    /* Add some space between the images */
    margin-top: 20px;
}

/* Profile image remains on the right */
.profile-pic {
    flex: 0;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.profile-pic img {
    width: 400px;
    height: 400px;
    border-radius: 10px;
    border: 5px solid #333;
}

/* Adjust for responsive screens */
@media (max-width: 768px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-text,
    .profile-pic {
        padding: 10px;
    }
}
/* About Section */
.about-section {
    padding: 50px;
    background-color: #222;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items horizontally */
    justify-content: center;
    /* Center items vertically */
    height: auto;
    max-height: 50vh;
    /* Ensure it fills the specified height */
    font-family: 'Noto Serif', serif;
}

/* Aligning the image */
.about-section img {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
    padding-bottom: 20px;
    /* Add space below the image */
}

.about-section .content-wrapper {
    width: auto;
    /* Customize width */
    padding: 20px;
    text-align: center;
}

/* Portfolio Section */
.portfolio-section {
    padding: 50px;
    background-color: #ffffff;
    color: #333;
    /* Changed to dark color for better contrast */
    text-align: center;
    height: auto;
    min-height: 100vh;
    /* Full screen height */
}

/* Content Wrapper */
.portfolio-section .content-wrapper {
    width: auto;
    /* Adjust this width as needed */
    margin: 0 auto;
    /* Center the content */
    padding: 20px;
}

/* Portfolio Header */
.portfolio-header {
    justify-content: center;
    margin-bottom: 20px;
    /* Space below header */
}

/* Portfolio Content */
.portfolio-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    font-family: 'Noto Serif', serif;
    /* Space between items */
}

.portfolio-item {
    display: flex;
    /* Use flexbox to position items */
    justify-content: space-between;
    /* Space between text and image */
    align-items: flex-start;
    /* Align items to the top */
    width: auto;
    max-width: 1200px;
    height: auto;
    padding: 20px;
    background-color: #444;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

/* New div for project info */
.project-info {
    flex: 1;
    margin-right: 20px;
    display: flex;
    /* Add flexbox */
    flex-direction: column;
    /* Stack items vertically */
    justify-content: flex-start;
    /* Space between elements */
    height: 100%;
    /* Ensure it takes full height */
}

/* Project Image */
.project-image {
    
    max-width: 100%;
    /* Adjust width as needed */
    height: auto;
    /* Maintain aspect ratio */
}
/* Tool Icon */
.tool-icon {
    width: 30px;
    /* Adjust size as needed */
    height: auto;
    /* Maintain aspect ratio */
    margin-left: 5px;
    /* Space between tool icons */
}

/* Tools Used */
.tools-used {
    font-size: 14px;
    /* Size for tools */
    margin-bottom: 10px;
    /* Space below tools */
}

/* Description */
.project-description {
    font-size: 14px;
    /* Size for description */
    margin-bottom: 15px;
    /* Space below description */
}

/* Button Wrapper */
.button-wrapper {
    display: flex;
    justify-content: space-between;
    /* Space buttons evenly */
}

/* Buttons */
.button {
    padding: 10px 15px;
    /* Padding for buttons */
    background-color: #666;
    /* Button background */
    color: white;
    /* Button text color */
    border-radius: 5px;
    /* Button corners */
    text-decoration: none;
    /* Remove underline */
    transition: background-color 0.3s;
    /* Smooth transition */
}

.button:hover {
    background-color: #888;
    /* Change color on hover */
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity */
}

.modal-content {
    background-color: #1d1d1d;
    /* Dark background */
    margin: 15% auto;
    /* Centered */
    padding: 20px;
    /* Padding */
    border: 1px solid #000000;
    /* Border */
    width: 400px;
    /* Set width */
    height: 200px;
    /* Set height to match width for square shape */
    max-width: 80%;
    /* Maximum width */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    /* Shadow for depth */
    color: #ffffff;
    /* Text color */
}

.close-button {
    color: #aaa;
    /* Gray */
    float: right;
    /* Align to the right */
    font-size: 28px;
    /* Larger size */
    font-weight: bold;
    /* Bold */
}

.close-button:hover,
.close-button:focus {
    color: rgb(255, 255, 255);
    /* White on hover */
    text-decoration: none;
    /* No underline */
    cursor: pointer;
    /* Pointer cursor */
}

/* Optional: Add a heading style for modal */
.modal-content h2 {
    margin-top: 0;
    /* Remove margin on top */
}

/* Optional: Style for modal text */
.modal-content p {
    font-size: 1em;
    /* Font size */
    line-height: 1.5;
    /* Line height */
    margin: 10px 0;
    /* Margin for spacing */
}

/* Button Grid Styles */
.button-grid {
    display: flex;
    /* Use flexbox for layout */
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 10px;
    /* Space between buttons */
    justify-content: center;
    /* Center the buttons */
    margin-top: 20px;
    /* Space from the heading */
}
/*Size and style for button 1*/
.button-grid .modal-button:nth-child(1) img {
    width: 75%;
    /* Custom width for the first button */
    height: auto;
    /* Maintain aspect ratio */
}
/*Size and style for button 2*/
.button-grid .modal-button:nth-child(2) img {
    width: 100%;
    /* Custom width for the second button */
    height: auto;
    /* Maintain aspect ratio */
}

.modal-button {
    display: flex;
    /* Ensure it behaves like a button */
    justify-content: center;
    /* Center content horizontally */
    align-items: center;
    /* Center content vertically */
    width: 80px;
    /* Set a fixed width */
    height: 80px;
    /* Set a fixed height for square shape */
    text-decoration: none;
    /* Remove underline from links */
    border-radius: 8px;
    /* Rounded corners */
    transition: background-color 0.3s;
    /* Smooth transition */
}

.modal-button img {
    width: 100%;
    /* Make the image fill the button */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 8px;
    /* Match button border radius */
    transition: transform 0.3s;
    /* Smooth zoom effect */
}

.modal-button:hover img {
    transform: scale(1.1);
    /* Zoom in effect on hover */
}

/*Media query for responsive design*/
@media (max-width: 768px) {

    /*Padding modification for navbar*/
    .body {
        padding: 100px 0 0 0;
        /* Mobile navbar height */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        /* Stack items vertically */
        background-color: #fff;
        padding: 20px 0;
        text-align: center;
        /* Center text in the dropdown */
    }

    /* Show the hamburger icon */
    .hamburger {
        display: flex;
    }

    .nav-links li {
        margin-bottom: 10px;
        display: flex;
        /* Use flex to help with centering */
        justify-content: center;
        /* Center items horizontally */
    }

    /* Center images inside the links */
    .nav-links li img {
        display: block;
        margin: 0 auto;
        /* Center the images */
    }

    /* Specific styling for the contact button to maintain its appearance */
    .contact-button {
        display: inline-flex;
        /* Maintain the inline-flex layout */
        justify-content: center;
        /* Center content */
        align-items: center;
        /* Center vertically */
        margin: 0 auto;
        /* Center the button itself */
    }

    /* Show menu when open */
    .nav-links.show {
        display: flex;
    }

    .main-header {
        height: 120vh;
        /* Full height */
    }

    /*Specifc styling for portfolio section */
    .portfolio-item {
        flex-direction: column;
        /* Stack items vertically */
        align-items: center;
        /* Center items horizontally */
        max-width: fit-content;
    }
    .button {
        margin-bottom: 20px;
    }


}

@media (min-width: 768px) {

    .main-header {
        height: 100vh;
    }

}

@media (min-width: 2080px) {

    .main-header {
        height: 76vh;
    }

}