/* General body and layout styles */
@font-face {
    font-family: 'JetBrainsMono';
    src: url('fonts/JetBrainsMono-Light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NotoSansKR';
    src: url('fonts/NotoSansKR-VariableFont_wght.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3{
    font-family: 'JetBrainsMono', monospace; /* Set custom font for headers */
}

.center-aligned {
    font-family: JetBrainsMono;
    text-align: center;
}

.center-aligned-italic {
    font-family: JetBrainsMono;
    font-style: italic;
    text-align: center;
}

body {
    font-family: 'JetBrainsMono';
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.JBMono-body {
    font-family: 'JetBrainsMono', monospace;
}

header {
    position: relative;
    text-align: center;
    height: 450px; /* Set the height of the banner */
    overflow: hidden; /* Prevents content overflow */
}

.banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('banner.png'); /* Your banner image */
    background-attachment: fixed; /* Enables parallax effect */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat;
    background-size: cover; /* Ensures the image covers the container */
}

.bio {
    font-family: 'JetBrainsMono', monospace;
    background-color: hwb(0 100% 0% / 0.75);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-bio {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 100px; /* Adjust to position the profile and bio properly */
    z-index: 2;
    padding: 10px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    margin-right: 20px;
}

.github-img {
    width: 25px;
    height: 25px;
    display: inline-block;
}

.mini-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 20px;
    image-rendering: auto; /* Default rendering with browser-specific optimizations */
    image-rendering: smooth; /* Applies antialiasing and smooth scaling (similar to 'auto') */

}

.header-img {
    width: 40px; /* Control the width */
    height: auto; /* Ensure the aspect ratio is maintained */
    margin-left: 20px; /* Add space between text and image */
    vertical-align: middle; /* Align the image with the middle of the text */
}

.project-img {
    width: 150px; /* Adjust the size */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 10px auto; /* Center the image with auto margin */
}


#project-highlights {
    display: flex; /* Flexbox to align text and video side by side */
    justify-content: space-between; /* Space between text and video */
    align-items: flex-start; /* Align text and video to the top */
    margin: 20px auto; /* Center the section */
    width: 80%; /* Set a width for the section */
    max-width: 1200px; /* Optional: Set a max width to prevent it from being too wide */
    background-color: rgb(101, 101, 101);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project {
    display: flex;
    justify-content: space-between; /* Space between the text and image */
    align-items: center; /* Vertically center the text and image */
    margin: 0px auto;
}

.project-text {
    font-family: "JetBrainsMono", monospace;
    flex: 1; /* The text takes up one part of the available space */
    margin-right: 20px; /* Adds some space between the text and the image */
    color: #fff;
}

.project-text h2 {
    font-size: 1.6em; /* Larger font for the project name */
    margin: 0 0 10px;
}

.project-text p {
    font-size: 1em;
    margin: 0;
}

.project-text a {
    color: skyblue;
    text-decoration: underline;
}

.project-text li {
    color: rgb(255, 235, 104);
    font-size: 0.8em;
}

/* Image section */
.project-image img {
    width: 480px; /* Adjust the image size */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

.project-video video {
    width: 480px; /* Adjust the video size */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure the video is displayed as a block element */
}

#research {
    display: flex; /* Flexbox to align text and image side by side */
    justify-content: space-between;
    align-items: flex-start; /* Align text and image at the top */
    margin: 20px auto;
    width: 80%;
    max-width: 1200px;
    background-color: rgb(40, 43, 44);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.research {
    display: flex;
    justify-content: space-between; /* Space between the text and image */
    align-items: center; /* Vertically center the text and image */
    margin: 0px auto;
}

.research-text {
    font-family: "JetBrainsMono", monospace;
    flex: 1;
    margin-right: 20px;
    color: rgb(255, 255, 255);
}

.research-image {
    max-width: 400px; /* Limit the maximum width */
    width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

.research-text li{
    color: rgb(151, 197, 243);
    font-size: 0.9em;
}

.research-text a{
    color: rgb(111, 170, 207);
    text-decoration: underline;
}

section {
    padding: 20px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 10px;
    width: 80%;
    max-width: 1200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section2 {
    text-align: center;
}

section-transparent {
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    width: 50%;
    max-width: 1200px;
    align-self: center;
}

section h2 {
    margin-top: 0;
}

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

ul li {
    margin-bottom: 10px;
}

a {
    color: #004b6b;
    text-decoration: none;
}

hint {
    color: rgb(174, 184, 188);
}

/* Styling the photo gallery container */
.photo-gallery {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    height: 300px; /* Adjust the height to your preference */
    scroll-behavior: smooth;
}

/* Minimal scrollbar styling */
.photo-gallery::-webkit-scrollbar {
    height: 8px; /* Adjust height for horizontal scroll */
}

.photo-gallery::-webkit-scrollbar-track {
    background: #f1f1f100; /* Light background for scrollbar track */
}

.photo-gallery::-webkit-scrollbar-thumb {
    background-color: #888; /* Scrollbar color */
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Darker color on hover */
}

/* For Firefox */
.photo-gallery {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Scrollbar thumb and track colors */
}

/* Adjust the images inside the gallery */
.photo-gallery img {
    height: 100%; /* Ensure the images fill the height of the gallery */
    width: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* Side Navigation Bar */
.side-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.side-nav a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* Adjust the width to fit the index labels */
    height: 40px; /* Adjust the height to make it square */
    background-color: #3333330f;
    border-radius: 10px; /* Rounded square effect */
    margin: 15px 0;
    font-family: 'JetBrainsMono', monospace; /* Set the font for the index */
    color: #ffffff8a; /* Index label text color */
    font-size: 1em; /* Adjust the size of the index label */
    transition: all 0.3s ease;
    text-align: center;
    overflow: visible; /* Allows hover effects without shifting other elements */
}

.side-nav a:hover {
    background-color: #525252;
    color: #ffffff; /* Index label text color */
    transform: scale(1.1); /* Slightly enlarge the square on hover */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Optional: Add shadow to the label */
}

.side-nav a::after {
    content: attr(data-label); /* Display the section title from the data-label */
    position: absolute;
    top: 50%;
    left: 45px; /* Position it next to the square */
    transform: translateY(-50%);
    background-color: #484c56;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Ensure the label doesn't block hover effects */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Optional: Add shadow to the label */
}

.side-nav a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(10px); /* Slight shift when hovering */
}

/* Adjust scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Updated toggle-list for smooth expansion */
.toggle-list {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    background-color: #212121;
    padding: 0 20px;
    border-radius: 5px;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.2);
    width: 100%; /* Ensure it takes up the full width of the parent */
    box-sizing: border-box; /* Include padding and border in the width */
}

.toggle-btn {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background-color: #10101086; /* Default background color */
    color: #fff; /* Default text color */
    border-radius: 5px;
    margin: 10px 0;
    cursor: pointer;
    font-family: "JetBrainsMono", monospace;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth color transition */
}

.toggle-btn:hover {
    background-color: #c2d0d4; /* Change background color on hover */
    color: #000000; /* Change text color on hover */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Optional: Add shadow on hover */
}

.toggle-list.open {
    max-height: 1500px; /* Large enough to handle the gallery */
    opacity: 1;
    padding: 10px 20px;
}

/* Optional: Smooth transition for padding */
.toggle-list {
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

#transparent-section {
    display: flex; /* Flexbox to align text and video side by side */
    justify-content: space-between; /* Space between text and video */
    align-items: flex-start; /* Align text and video to the top */
    margin: 20px auto; /* Center the section */
    width: 80%; /* Set a width for the section */
    max-width: 1200px; /* Optional: Set a max width to prevent it from being too wide */
    background-color: rgba(101, 101, 101, 0);
    box-shadow: none;
}