body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    /*min-height: 100vh; /* Ensure full viewport height */
    padding: 0; /* Remove default padding */
    margin: 0;
    line-height: 1.6;
}

h1 {
    color: #007acc;
}

main {
    /*min-height: 100vh; /* Makes sure the main content takes at least full viewport height */
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-grow: 1; /* Allow content to expand and push the footer down */
}

@media (max-width: 600px) {
    main {
        padding: 10px;
    }
    h1 {
        font-size: 1.5em;
    }
}

button {
    background-color: #007acc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #005f99;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #007acc;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

header h1 a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

header h1 a:hover {
    color: #007acc;
}

/* General navigation styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    position: relative; /* Needed for dropdown positioning */
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #007acc;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: block;
    visibility: hidden; /* Initially hidden */
    opacity: 0; /* Fully transparent */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333; /* Light mode background */
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Dropdown items */
.dropdown-menu li a {
    display: block;
    padding: 5px 15px;
    color: white;
    white-space: nowrap;
}

/* On hover, change the background color */
.dropdown-menu li a:hover {
    background-color: #444;
}

/* Show the dropdown when hovering */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
}

/* Dark Mode for the Body */
body.dark-mode {
    background-color: #333; /* Dark background for the whole page */
    color: white; /* Light text color */
}

/* Dark Mode for Header */
body.dark-mode header {
    background-color: #222; /* Dark background for the header */
}

/* Dark Mode for Footer */
body.dark-mode footer {
    background-color: #222; /* Dark background for the footer */
}

/* Dark Mode for Main Content */
body.dark-mode main {
    background-color: #444; /* Slightly lighter background for main content */
    color: white; /* Ensure text is visible */
}

/* Dark Mode for Dropdown Menu */
body.dark-mode .dropdown-menu {
    background-color: #444; /* Dark background for dropdown in dark mode */
}


/* Dark Mode for Buttons */
body.dark-mode button {
    background-color: #005f99; /* Darker button color */
}

/* Dark Mode for Dropdown items */
body.dark-mode .dropdown-menu li a {
    color: white; /* Ensure dropdown items have white text */
}

/* Dark Mode for About Me Section */
body.dark-mode .about-me {
    background-color: #555; /* Slightly darker background */
    color: white; /* Light text */
}

/* Dark Mode Profile Picture */
body.dark-mode .profile-picture {
    border: 4px solid #555; /* Darker border for the profile picture */
}

/* About Me Section */
.about-me {
    text-align: center;
    margin: 2rem auto;
    padding: 1rem;
    max-width: 800px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Profile Picture */
.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* About List */
.about-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    display: inline-block; /* Centers the list */
}

.about-list li {
    margin-bottom: 0.5rem;
}

.slideshow {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* Adjust height based on image proportions */
}

.slides {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    width: 60%; /* Adjust width for central slide */
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform-origin: center center;
    opacity: 0; /* Default hidden */
    z-index: 0;
    cursor: pointer;
    pointer-events: none; /* disable clicks by default */
}

.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
    pointer-events: none; /* center slide shouldn't block others */
}

.slide.next,
.slide.prev {
    opacity: 0.6;
    z-index: 1;
    pointer-events: auto; /* only clickable when "next" or "prev" */
}

.slide.next {
    transform: translateX(150px) scale(0.8);
}

.slide.prev {
    transform: translateX(-150px) scale(0.8);
}

/* Center images within their sections */
.achievement-photo {
    display: block;
    margin: 0 auto; /* Centers the image horizontally */
    max-width: 80%; /* Optional: Adjust max width to make images responsive */
    height: auto; /* Ensures images maintain their aspect ratio */
}

/* Resume Page Styles */

/* Center and style the header */
#resume h1 {
    text-align: center;
    margin-top: 1em;
    font-size: 2.5em;
    color: #333;
}

/* Center and style the embedded PDF */
.resume-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em auto;
}

.resume-pdf {
    width: 80%;
    height: 600px; /* Adjust height as needed */
    border: 1px solid #ccc; /* Optional: Add a border */
}

.resume-image {
    width: 80%; /* Adjust the width as needed */
    max-width: 1200px; /* Ensures the image doesn't grow too large */
    height: auto; /* Maintain the aspect ratio */
    border: 2px solid #ccc; /* Optional: Add a border around the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow effect */
}

/* Style the resume note */
.resume-note {
    text-align: center;
    margin: 1em auto;
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    max-width: 80%; /* Limits the note width for better readability */
}

@media (max-width: 600px) {
    .slide.next {
        transform: translateX(80px) scale(0.8);
    }

    .slide.prev {
        transform: translateX(-80px) scale(0.8);
    }
}
