/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f9;
    color: #333;
    font-size: 1rem; /* Base font size */
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-left {
    font-size: 1.5rem;
    font-weight: bold;
}

.header-right .button {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #007BFF; /* Vibrant blue */
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.header-right .button:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Slight scale effect on hover */
}

h1 {
    text-align: center;
    margin-top: 20px;
    font-size: 2.5rem; /* Larger and more readable */
    color: #222;
}

#filter-container {
    text-align: center;
    margin-bottom: 20px;
}

#search-bar {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    max-width: 80%;
    margin-bottom: 10px;
}

.filter-btn {
    padding: 15px 25px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.filter-btn:hover {
    background-color: #555;
    transform: scale(1.05);
}

.filter-btn.active {
    background-color: #888;
}

#clear-btn {
    padding: 15px 25px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #888;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#clear-btn:hover {
    background-color: #999;
}

#carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    position: relative; /* Ensure relative positioning for nav buttons */
}



@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px; /* Adds space between thumbnails */
    animation: fadeIn 1s ease-in-out;
}

.nav-btn {
    background-color: #444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 36px; /* Increase font size for better visibility */
    padding: 20px; /* Increase padding */
    transition: background-color 0.3s;
    z-index: 1; /* Ensure buttons are above other elements */
}

.nav-btn:hover {
    background-color: #555;
}

#prev-btn {
    position: absolute;
    left: -60px; /* Move button outside the carousel */
    top: 50%;
    transform: translateY(-50%);
}

#next-btn {
    position: absolute;
    right: -60px; /* Move button outside the carousel */
    top: 50%;
    transform: translateY(-50%);
}

#page-indicator-container {
    margin-top: 10px;
    text-align: center;
}

#page-indicator {
    font-size: 1rem;
    color: #333;
}


.thumbnail {
    display: inline-block;
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.thumbnail span {
    display: block;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 5px 0;
}

.thumbnail-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

#project-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

#project-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}

#project-description {
    font-size: 1.25rem;
    margin: 20px 20px; /* Add left and right margins */
    text-align: center;
}

#project-content {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the start */
    margin-bottom: 20px;
    gap: 20px; /* Add space between video and info */
    width: 100%; /* Ensure it uses full width */
}

#video-container {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin-bottom: 20px;
}

#video-content {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

#video-content video {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure video uses available space */
    max-height: 450px; /* Limit height to keep aspect ratio */
}

#video-content iframe,
#video-content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#project-info {
    flex: 1;
    max-width: 800px;
}

#project-info div {
    margin-bottom: 10px;
}

#project-info div span.field-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#project-info div span.field-text {
    font-size: 14px;
    color: #555;
}

.half-width {
    width: 50%;
}

#main-image-container {
    width: 100%; /* Use full width */
    max-width: 1000px; /* Set a larger max width */
    max-height: 600px; /* Increase the max height */
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide any overflow */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#main-image-container img {
    max-width: 100%; /* Ensure the image uses full width */
    max-height: 100%; /* Ensure the image uses full height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
}

#main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
#project-image-carousel-container {
    margin-top: 20px;
}

#project-image-carousel {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
}
#project-image-carousel img {
    width: 100px; /* Set a consistent thumbnail width */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Add space between thumbnails */
    cursor: pointer;
}

.project-thumbnail {
    margin-right: 10px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

footer a.button {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    padding: 10px 15px;
    background-color: #444;
    border-radius: 5px;
    transition: background-color 0.3s;
}

footer a.button:hover {
    background-color: #555;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
}

.contact-image {
    flex: 1;
    text-align: center;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-info {
    flex: 2;
    padding: 0 20px;
}

.contact-info .bio {
    margin-bottom: 20px;
}

.contact-info .social-links {
    list-style: none;
    padding: 0;
}

.contact-info .social-links li {
    display: inline;
    margin-right: 10px;
}

.contact-info .social-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-info .social-links a:hover {
    color: #555;
}

.resume-page {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-right .button {
        padding: 8px 12px; /* Smaller padding for buttons */
        font-size: 0.875rem; /* Smaller font size for buttons */
    }

    #carousel-container {
        width: 95%; /* Make the carousel slightly narrower to fit better on smaller screens */
    }

    .thumbnail {
        width: 150px; /* Smaller thumbnails */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .header-right .button {
        padding: 6px 8px; /* Even smaller padding for buttons */
        font-size: 0.75rem; /* Even smaller font size for buttons */
    }

    .thumbnail {
        width: 100px; /* Even smaller thumbnails */
        height: 100px;
    }

    h1 {
        font-size: 1.5rem; /* Smaller font size for the main heading */
    }
}

#second-media-container {
    display: flex !important;
    justify-content: space-between; /* Ensure text and image are side by side */
    align-items: flex-start; /* Align them at the top */
    gap: 20px; /* Space between the text and the image */
    width: 100%;
}

#second-media-text {
    flex: 1; /* Allow the text to take up one part of the space */
    max-width: 45%; /* Limit the width of the text to 45% */
    text-align: left;
}

#second-media-content {
    flex: 1; /* Allow the image container to take up the remaining part */
    max-width: 45%; /* Limit the width of the image container */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
}


#second-media-content img {
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Ensure height scales with width */
    max-width: 100%; /* Prevent the image from exceeding the container width */
    max-height: 450px; /* Limit the height */
    object-fit: contain; /* Ensure the image fits within the container without stretching */
}


#second-media-content img, #second-media-content video {
    width: 100%; /* Ensure media uses full available width */
    height: auto; /* Maintain aspect ratio */
    max-height: 450px; /* Limit the height to 450px to keep aspect ratio */
}
