/* Basic reset for styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    overflow: hidden; /* Prevents scrollbars from appearing */
}

/* --- Styles for the Enter Overlay --- */
#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Solid black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
    transition: opacity 0.8s ease-out; /* Smooth fade-out transition */
}

/* Style for the enter button, reusing option-button styles */
#enter-button {
    font-size: 24px;
    padding: 15px 50px;
}

/* --- End of Enter Overlay Styles --- */

.video-container {
    /* Position the container to fill the entire screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all other content */
}

#background-video {
    /* Make the video fill the container */
    width: 100%;
    height: 100%;
    /* 
      'object-fit: cover' scales the video to cover the screen while
      'object-fit: fill' will stretch the video to fill the entire
      container, which may distort the video's aspect ratio.
    */
    object-fit: fill; 
}

.content {
    /* Style for the content you want to display over the video */
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* This class will be added to the body when the video ends */
.video-ended {
    background-image: url('unnamed-3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hide the video container when the video has ended */
.video-ended .video-container {
    display: none;
}

/* This class will be added after the first speech ends */
.second-state {
    background-image: url('unnamed-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Styling for the bulletin bar */
.bulletin-bar {
    position: fixed;
    bottom: 20px; /* Moves the bar 20px up from the bottom */
    left: 0;
    width: 100%;
    /* 
      Use a semi-transparent background so the main background image is visible.
    */
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    box-sizing: border-box;
    font-size: 20px; /* Made text slightly larger for readability */
    transform: translateY(100%); /* Start hidden below the screen */
    transition: transform 0.5s ease-in-out; /* Smooth slide-in animation */
}

.bulletin-bar img {
    height: 50px; /* Adjust size as needed */
    margin-right: 20px;
}

/* When the video ends, slide the bulletin bar into view */
.video-ended .bulletin-bar {
    transform: translateY(0);
}

/* Container for the game-like options */
.options-group {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between buttons */
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Not clickable when hidden */
    transition: opacity 0.5s ease-in-out 0.5s; /* Fade in after a short delay */
    z-index: 100;
}

#options-left {
    left: 50px;
}

#options-right {
    right: 50px;
}

/* Class to make the container visible */
.options-group.visible {
    opacity: 1;
    pointer-events: auto;
}

.option-button {
    position: relative; /* Needed for positioning the pseudo-element triangle */
    background-color: #8B4513; /* A solid, wooden-like brown color */
    border: 2px solid #A0522D; /* A slightly lighter brown for the border */
    color: white;
    padding: 10px 30px;
    font-size: 18px;
    font-family: 'Courier New', Courier, monospace; /* A more "techy" font */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    overflow: hidden; /* Hide parts of the triangle that go outside */
}

/* Style for the corner triangles */
.option-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Triangles for buttons on the LEFT side (point to the right) */
#options-left .option-button::after {
    top: -1px; /* Align with border */
    right: -1px;
    border-width: 0 0 20px 20px; /* Creates a bottom-left triangle shape */
    border-color: transparent transparent #D2691E transparent; /* Chocolate color */
}

/* Triangles for buttons on the RIGHT side (point to the left) */
#options-right .option-button::after {
    top: -1px;
    left: -1px;
    border-width: 20px 20px 0 0; /* Creates a top-right triangle shape */
    border-color: #D2691E transparent transparent transparent;
}

.option-button:hover {
    border-color: #FFD700; /* Gold border on hover */
    /* This creates the "spark outline" effect */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.6);
}

/* --- Styles for the Personal Info Section --- */

/* This class is the main trigger for the personal info view */
.personal-info-active {
    /* Override the previous background and set the right side to black */
    background: #000;
}

/* Hide the option buttons and bulletin when personal info is active */
.personal-info-active .options-group,
.personal-info-active .bulletin-bar,
.achievements-active .options-group,
.achievements-active .bulletin-bar,
.tech-skills-active .options-group,
.tech-skills-active .bulletin-bar,
.non-tech-skills-active .options-group,
.non-tech-skills-active .bulletin-bar,
.projects-active .options-group,
.projects-active .bulletin-bar,
.review-active .options-group,
.review-active .bulletin-bar {
    opacity: 0;
    pointer-events: none;
}

/* Container for the photo on the right */
.info-photo-container {
    position: fixed;
    top: 0; /* Align to the very top of the page */
    left: 50%; /* Start from the middle of the screen */
    width: 50%; /* Occupy the entire right half */
    /* transform: translateX(-50%); No longer needed for centering */
    height: 100%; /* Make the container full height */
    background-color: #000; /* Solid dark black background */
    /* border: 2px solid #A0522D; Removed the boundary */
    padding: 30px; /* Increased padding for better spacing */
    box-sizing: border-box;
    overflow-y: auto; /* Add a scrollbar if content overflows vertically */
    opacity: 0; /* Hidden by default */
    pointer-events: none;
    transition: opacity 0.5s ease-in-out 0.5s; /* Fade in after a delay */
}

.info-photo-container img {
    /* Set a fixed width for the image and center it */
    width: 320px; 
    display: block;
    margin: 0 auto;
    height: 300px; /* Give the image a fixed height */
    object-fit: cover; /* Ensures the image fills the container */
}

/* Make the photo container visible when its state is active */
.personal-info-active #personal-info-photo-container {
    opacity: 1;
    pointer-events: auto;
}

/* Style for the 'Details' buttons */
#btn-details,
#btn-achievements-details,
#btn-tech-skills-details,
#btn-non-tech-skills-details,
#btn-projects-details {
    display: block;
    margin: 30px auto 10px; /* Add space above and center it */
}

/* New container for the background image on the LEFT */
.info-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%; /* Takes up the left half of the screen */
    height: 100%;
    background-image: url('unnamed-4.png');
    background-size: cover;
    background-position: center;
    z-index: -1; /* Place it behind other content but in front of the main background */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out;
}

/* Make the left-side background visible when its state is active */
.personal-info-active #personal-info-background-container {
    opacity: 1;
}

/* --- Styles for the Achievements Section --- */

/* Main trigger for the achievements view */
.achievements-active {
    background: #000;
}

/* Container for the text on the LEFT */
.info-text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #000;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out 0.5s;
}

/* Make the left-side text panel visible when its state is active */
.achievements-active #achievements-text-container {
    opacity: 1;
    pointer-events: auto;
}

/* --- Styles for Achievements Content --- */
.achievements-content {
    color: white;
    font-family: 'Courier New', Courier, monospace;
}

.achievements-content h2 {
    text-align: center;
    text-transform: uppercase;
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 30px;
}

.achievements-content h3 {
    color: #A0522D;
    border-bottom: 1px solid #A0522D;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.achievements-content p {
    line-height: 1.7;
    margin-bottom: 10px;
}

.achievements-content a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.achievements-content a:hover {
    color: #fff;
}

.achievements-content .certificate-link {
    color: #FFD700;
    cursor: pointer;
    text-decoration: underline;
}

.achievements-content .conclusion {
    margin-top: 40px;
    font-style: italic;
    text-align: center;
    color: #ccc;
}

/* --- Styles for Certificate Modal --- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-container img {
    max-width: 85%;
    max-height: 85%;
    border: 2px solid #A0522D;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Position the achievements background on the RIGHT */
#achievements-background-container {
    left: 50%;
    background-image: url('unnamed-5.png');
}

/* Make the right-side background visible when its state is active */
.achievements-active #achievements-background-container {
    opacity: 1;
}

/* Styling for the text content below the photo */
.info-text-content {
    margin-top: 20px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
}

.info-text-content h3 {
    text-align: center;
    text-transform: uppercase;
    color: #FFD700; /* Gold color to match hover effect */
    margin-bottom: 15px;
}

.info-text-content p a {
    display: block; /* Make each link take a full line */
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

/* Style for paragraphs that don't contain links (like Hobbies) */
.info-text-content p {
    line-height: 1.6;
    text-align: center;
}

.info-text-content p a:hover {
    color: #fff;
}

/* Container for the back button */
.back-button-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200; /* Ensure it's on top of everything */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

/* Make the back button visible when personal info is active */
.personal-info-active .back-button-container,
.achievements-active .back-button-container,
.tech-skills-active .back-button-container,
.non-tech-skills-active .back-button-container,
.projects-active .back-button-container,
.review-active .back-button-container {
    opacity: 1;
    pointer-events: auto;
}

/* --- Styles for Tech Skills Section --- */

/* Main trigger for the tech skills view */
.tech-skills-active {
    background: #000;
}

/* Position the tech skills content container on the RIGHT */
#tech-skills-content-container {
    left: 50%;
}

/* Make the right-side text panel visible */
.tech-skills-active #tech-skills-content-container {
    opacity: 1;
    pointer-events: auto;
}

/* Position the tech skills background on the LEFT */
#tech-skills-background-container {
    /* left: 50%; This is no longer needed, defaults to left: 0 */
    background-image: url('unnamed-4.png');
}

/* Make the left-side background visible */
.tech-skills-active #tech-skills-background-container {
    opacity: 1;
}

/* Use the same content styling as the achievements section */
.skills-content {
    color: white;
    font-family: 'Courier New', Courier, monospace;
}

.skills-content h2 {
    text-align: center;
    text-transform: uppercase;
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 30px;
}

.skills-content h3 {
    color: #A0522D;
    border-bottom: 1px solid #A0522D;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.skills-content p {
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.skills-content a {
    color: #ccc;
    text-decoration: none;
}

/* --- Styles for Non-Tech Skills Section --- */

/* Main trigger for the non-tech skills view */
.non-tech-skills-active {
    background: #000;
}

/* Position the non-tech skills content container on the RIGHT */
#non-tech-skills-content-container {
    /* This now defaults to the left side */
}

/* Make the right-side text panel visible */
.non-tech-skills-active #non-tech-skills-content-container {
    opacity: 1;
    pointer-events: auto;
}

/* Position the non-tech skills background on the RIGHT */
#non-tech-skills-background-container {
    left: 50%;
    background-image: url('unnamed-5.png');
}

/* Make the left-side background visible */
.non-tech-skills-active #non-tech-skills-background-container {
    opacity: 1;
}

/* --- Styles for Projects Section --- */

/* Main trigger for the projects view */
.projects-active {
    background: #000;
}

/* Position the projects content container on the RIGHT */
#projects-content-container {
    left: 50%;
}

/* Make the right-side text panel visible */
.projects-active #projects-content-container {
    opacity: 1;
    pointer-events: auto;
}

/* Position the projects background on the LEFT */
#projects-background-container {
    background-image: url('unnamed-4.png');
}

/* Make the left-side background visible */
.projects-active #projects-background-container {
    opacity: 1;
}

/* --- Styles for Project Sliders --- */
.project-slider {
    margin-bottom: 15px;
}

.project-slider summary {
    background-color: #8B4513; /* Wooden-like brown color */
    border: 2px solid #A0522D;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    outline: none; /* Remove focus outline */
    list-style: none; /* Hide default marker */
}

.project-slider summary:hover {
    background-color: #A0522D; /* Lighter brown on hover */
}

.project-slider summary::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.project-details {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #A0522D;
    border-top: none;
    padding: 20px;
}

.project-details p {
    margin: 0;
}

.project-details h4 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.project-details p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.project-details ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.project-details li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-details .code-notice {
    margin-top: 20px;
    font-style: italic;
    color: #ccc;
    font-size: 0.9em;
}

.project-separator {
    border: none;
    border-top: 1px solid #A0522D;
    margin: 25px 0;
}

.project-links {
    margin-top: 20px;
    text-align: center;
}

.project-links a {
    color: #FFD700;
    margin: 0 15px;
    text-decoration: underline;
}

/* --- Styles for Review Section --- */

/* Main trigger for the review view */
.review-active {
    background: #000;
}

/* Position the review content container on the RIGHT */
#review-content-container {
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make the right-side text panel visible */
.review-active #review-content-container {
    opacity: 1;
    pointer-events: auto;
}

/* Position the review background on the LEFT */
#review-background-container {
    /* Remove the background image and set a solid color */
    background-image: none;
    background-color: #000;

    /* Use flexbox to center the new text content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
    color: #ddd;
    font-family: 'Georgia', serif;
    font-size: 1.8em;
    line-height: 1.6;
}

/* Make the left-side background visible */
.review-active #review-background-container {
    opacity: 1;
}

.review-content h2 {
    text-align: center;
    text-transform: uppercase;
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 30px;
}

.review-content .review-message {
    font-family: 'Georgia', serif;
    font-size: 1.3em;
    line-height: 1.8;
    font-style: italic;
    text-align: center;
    color: #ddd;
}

.review-content .signature {
    text-align: right;
    margin-top: 20px;
    font-size: 1.2em;
    color: #FFD700;
}

/* --- Styles for Review Form & Feed --- */
#review-form {
    margin-top: 30px;
    text-align: center;
    color: white;
    font-family: 'Courier New', Courier, monospace;
}

#review-form h3 {
    color: #FFD700;
    text-transform: uppercase;
}

.star-rating {
    display: inline-block;
    direction: rtl; /* Right to left to make star selection intuitive */
    font-size: 2.5em;
    margin: 10px 0;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #FFD700;
}

#review-comment {
    width: 100%;
    max-width: 500px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #A0522D;
    color: white;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.review-optional-input {
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #A0522D;
    color: white;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    box-sizing: border-box;
}

#review-form .option-button {
    margin: 0;
}

#comment-feed-container {
    margin-top: 40px;
    text-align: left;
}

.comment-card {
    background-color: rgba(0, 0, 0, 0.4);
    border-left: 3px solid #FFD700;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-card .comment-rating {
    color: #FFD700;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.comment-card .comment-text {
    color: #ddd;
    line-height: 1.6;
}

.comment-card .comment-author {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.9em;
    color: #aaa;
}
