/* Existing Styles */
html, body {
    height: 100%; /* Ensure html and body take full height */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Hide horizontal overflow if needed */
}

body {
    font-family: Arial, sans-serif;
    color: #636e72;
    background-color: #dfe6e9;
    transition: opacity 0.5s ease-in-out;
}

.progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 0%;
    height: 6px;
    background: #21e41d;
    animation: grow-progress auto linear;
    animation-timeline: scroll(root);
}

@keyframes grow-progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

header {
    text-align: center;
    padding: 20px;
    background-color: #2d3436; /* Added background color for header */
    color: #ffffff; /* Text color for header */
}

header h1 {
    margin: 0;
    font-size: 2em;
}

.container {
    max-width: 1100px; /* Adjusted for full-width layout */
    margin: auto;
    padding: 2rem;
    position: relative;
}

nav {
    text-align: center;
    margin: 20px 0;
}

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

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff; /* Text color */
    background-color: #2d3436; /* Dark background color of the button box */
    border: 2px solid #636e72; /* Border color of the button box */
    border-radius: 8px; /* Rounded corners for the button box */
    padding: 10px 20px; /* Space inside the button box */
    display: inline-block; /* Display the button inline with other buttons */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

nav ul li a:hover {
    background-color: #636e72; /* Medium gray background color when hovered */
    color: #ffffff; /* White text color when hovered */
}

/* Active page button styling */
nav ul li a.active {
    background-color: #ffffff; /* White background color for the active button */
    color: #2d3436; /* Dark text color for contrast */
    border: 2px solid #636e72; /* Retain the border color */
}

main {
    padding: 20px;
}

section {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

a {
    color: #0077b6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* CSS for initial fade-in effect */
body {
    opacity: 0; /* Start with the body invisible */
}

body.page-exit {
    opacity: 0; /* Fade out when navigating away */
}

body.page-enter {
    opacity: 0; /* Still start invisible, but ready to fade in */
}

body.page-enter-active {
    opacity: 1; /* Fade in to fully visible */
}

/* Additional Styles for Projects Page */
.link-box {
    text-decoration: none;
    color: #ffffff; /* Text color */
    background-color: #2d3436; /* Dark background color of the button box */
    border: 2px solid #636e72; /* Border color of the button box */
    border-radius: 8px; /* Rounded corners for the button box */
    padding: 10px 20px; /* Space inside the button box */
    display: inline-block; /* Display the button inline with other buttons */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

.link-box:hover {
    background-color: #636e72; /* Medium gray background color when hovered */
    color: #ffffff; /* White text color when hovered */
}

/* Style for project containers */
.project {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px; /* Rounded corners for project boxes */
    background-color: #ffffff; /* Light background color for project boxes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-content {
    flex: 1 1 60%;
    padding-right: 20px;
}

.project-media {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project h2 {
    margin-top: 0;
}

.project-media img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

/* Styles for project images */
.project-image {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin: 0 auto; /* Center the container itself */
    text-align: center; /* Ensure text-align for other inline elements */
}

.project-image img {
    max-width: 100%; /* Make sure images scale within their container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.project-image img:hover {
    transform: scale(2);
    filter: blur(2px);
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

body:hover .project-image img:hover {
    filter: blur(0);
}

.project-image img:hover {
    filter: none;
}

@media (max-width: 768px) {
    /* Adjust padding for container */
    .container {
        padding: 1rem;
    }

    /* Make projects stack vertically */
    .project {
        flex-direction: column;
    }

    /* Ensure both project content and media take full width */
    .project-content,
    .project-media {
        flex: 1 1 100%;
        padding-right: 0;
    }

    /* Ensure images in project media are full width */
    .project-media img {
        width: 100%;
    }

    /* Style for navigation: center align and stack links vertically */
    nav ul {
        text-align: center;
        padding: 0;
    }

    nav ul li {
        display: block; /* Stack navigation buttons vertically */
        margin-bottom: 10px; /* Add spacing between buttons */
    }

    nav ul li a {
        display: block; /* Full-width clickable buttons */
        padding: 10px; /* Adjust padding for easier tapping */
    }

    /* Adjust section margins and padding for smaller screens */
    section {
        margin: 10px 0;
        padding: 15px;
    }

    /* Adjust the progress bar's height */
    .progress {
        height: 4px;
    }
}


/* footer code */
footer {
    background-color: rgba(45, 52, 54, 1);
    color:  #ffffff; /* Text Color */
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 3;
    clear: both;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.slide {
    display: none;
}

/* Fade effect for slideshow */
.fade {
    animation: fade 1.5s ease-in-out;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
