/* General Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(to bottom, #eda847, #e499cd);
    color: #333;
    line-height: 1.6;
}

.header-content {
    flex: 1; /* take up all available space */
    text-align: center;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: radial-gradient(to bottom, #eda847, #e499cd);
    padding: 20px;
    margin-left: 2.9rem;
}

.site-title {
    display: inline-block; /* Ensure it behaves like a block element if needed */
    text-decoration: none; /* Remove underline from the link */
    color: #333; /* Match your existing site color */
    font-size: 0.5rem; /* Adjust the font size */
    font-weight: bold; /* Keep it bold for visibility */
}

.site-title:hover {
    text-decoration: underline; /* Add hover effect for visual feedback */
    color: #555; /* Optional: Adjust hover color */
}

.site-logo {
    width: 200px;
    height: auto;
    display: inline-block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    color: #fff;
}

.follow-me {
    writing-mode: vertical-rl;
    transform: rotate(0deg);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.icons a {
    margin-bottom: 15px;
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.icons img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

.icons img:hover {
    transform: scale(1.2);
}

/* Main Content */
.container {
    margin-left: 80px;
    padding: 20px;
    max-width: 3000px;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-photo {
    width: 400px;
    height: 400px;
    border-radius: 5%;
    object-fit: cover;
}

.text-section {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.text-section p {
    font-size: 1.2rem;
    color: #555;
}

/* Video Section */
.video-wrapper {
    margin-bottom: 20px;
    text-align: center;
}

.video-wrapper iframe {
    max-width: 100%;
    border-radius: 8px;
    border: none;
}

.video-description {
    margin-top: 5px;
    font-size: 1rem;
    color: #444;
}

/* Programming Projects */
.project-works {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Ensure spacing between items */
    gap: 20px;
    margin-top: 20px;
}

/* Adjust the image size */
.project-image-1,
.project-image-2 {
    width: 50px; /* Adjust width for the smaller images */
    height: 50px; /* Adjust height */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}

.project-image-1 {
    width: 50px; /* Adjust width for the smaller images */
    height: auto; /* Adjust height */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
    align-self: flex-start; /* Move this image down */
    margin-top: 70px; /* Adjust margin to fine-tune positioning */
}

.project-image-2 {
    width: 50px; /* Adjust width for the smaller images */
    height: 50px; /* Adjust height */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
    align-self: flex-start; /* Move this image down */
    margin-top: 70px; /* Adjust margin to fine-tune positioning */
}

.image-description2 {
    margin-top: 3px; /* Adjust margin for description */
    font-size: 0.9rem;
    color: #666;
}

/* Flex container for image wrapper */
.image-wrapper {
    text-align: center;
    flex: 1;
    margin: 5px; /* Reduce margin to move images closer */
    display: flex;
    flex-direction: column; /* Stack image and description vertically */
    align-items: center; /* Center the content */
}

/* Image size adjustment */
.image-wrapper img {
    width: 100%; /* Make sure the image fills the wrapper */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.image-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Adjust image description margin to reduce space */
.image-description {
    margin-top: 5px; /* Reduce the gap between the image and the description */
    font-size: 0.9rem;
    color: #666;
}

/* Adjust for Smaller Screens */
@media (max-width: 768px) {
    .project-works {
        flex-direction: column; /* Stack projects in a column */
        align-items: center;
    }

    .project-image-1,
    .project-image-2 {
        width: 80%; /* Smaller images take up more space */
    }

    .project-image-3 {
        width: 30%; /* Make the larger image adjust as well */
    }

    .image-wrapper {
        max-width: 100%;
    }

    .project-works {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .project-image-1,
    .project-image-2,
    .project-image-3 {
        width: 100%; /* Make all images take up full width */
    }

    .image-wrapper {
        max-width: 100%;
    }

    .project-works {
        gap: 10px;
    }
}

/* Navigation Menu */
.nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed; /* Keeps the menu fixed while scrolling */
    top: 0; /* Aligns the menu to the top of the viewport */
    right: 0; /* Aligns the menu to the right side of the viewport */
    padding: 20px;
    border-radius: 8px;
    z-index: 1000; /* Ensures it appears above other elements */
}

.nav-menu.visible {
    display: flex; /* Shows the menu when toggled */
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 0px;
}

.nav-menu a {
    text-decoration: underline;
    color: #333;
    font-weight: 400;
}

@media (min-width: 768px) {
    .nav-menu {
        display: block;
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        background-color: transparent;
        color: #333;
        padding: 2;
    }

    .nav-menu ul {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .nav-menu a {
        color: #333;
        font-size: 1rem;
    }

    .nav-menu a:hover {
        border: 1px solid #333; /* Add a border to create the box effect */
        border-radius: 5px; /* Optional: round the corners */
        background-color: rgba(0, 0, 0, 0.1); /* Optional: add background for a hover effect */
    }

    .menu-toggle {
        display: none; /* Hide menu toggle on desktop */
    }
}



/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: auto;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        width: 50px;
    }

    .container {
        margin-left: 60px;
        padding: 10px;
    }

    .project-image-3 {
        display: block;
        width: 80%; /* Adjust width for smaller screens */
        margin-left: 0;
    }

    /* Footer */
    footer {
        text-align: center;
        padding: 25px;
        background: #333;
        color: #fff;
        margin-top: auto;
        font-size: 0.8rem;
        margin-left: -1rem;
        width: auto;
    }

    footer a {
        color: #ffd700;
        text-decoration: none;
    }

    footer a:hover {
        text-decoration: underline;
    }
}


