/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px;
    font-family: sans-serif; /* Update to use custom font */
}

body {
    line-height: 1.6;
    font-size: 18px;
    background: white;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: black; /* Adjusting the text color for better readability */
}

/* Books Section Styles */
.books-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.book-container {
    padding-top: 20px;
}

.book-container h2 {
    margin-bottom: 30px;
}

.category {
    margin-bottom: 40px;
}

.book-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.book-item {
    flex: 0 0 200px;
    display: block;
}

/* Book item hover effects */
.book-item {
    flex: 0 0 150px;
    display: block;
    height: 225px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.book-item img {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}

.book-item:hover img {
    transform: scale(1.02); /* Subtle zoom effect on hover */
}

/* Ensure section pages have proper spacing */
.section-page {
    padding-top: 20px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    color: black;
    text-decoration: none;
    border-radius: 25px;
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
}

header {
    background: white;
    color: black;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 25px;
    transition: background-color 0.1s;
}

nav ul li a:hover {
    background-color: whitesmoke;
    color: black;
}

h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: black;
}

h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: black;
}

h3 {
    color: black;
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    color: black;
}


header h1 {
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0px;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

section {
    padding: 20px;
    max-width: 1100px;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency for a modern look */
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.1);
    border-radius: 25px; /* Softer border radius */
}


section h2 {
    margin-bottom: 0px;
    font-size: 1.5rem;
    border-bottom: 0.1px solid #ccc;
    display: inline-block;
    font-weight: 600;
    text-align: center;
}

/* Center the About Section */
.about-section {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center;    /* Horizontally center content */
    margin: 0 auto;
    padding: 0px;          /* Add some padding for spacing */
    margin-bottom: 0px;
    background-color: #f9f9f9;
}

.about-section p {
    margin: 0;
    color: #333; /* Dates and locations text color */
}

.about-section img {
    margin-bottom: 10px; /* Add some space below the image */
}

/* Projects Section */
.project {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.project:hover {
    transform: translateY(-3px);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
}

.project a {
    background-color: grey;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.1s ease;
}

.project a:hover {
    background-color: black;
}

.project img {
    max-width: 100px;  /* Set maximum width */
    max-height: 100px; /* Set maximum height */
    width: auto;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Experience section */
.experience-item {
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 5px;
    background-color: white;
}

.experience-item p {
    margin: 0;
    color: black; /* Dates and locations text color */
}

.experience-item ul {
    list-style-type: disc;
    padding-left: 20px; /* Set proper padding for the bullet points */
    margin-left: 0;  /* Ensure no additional left margin */
}

.experience-item ul li {
    margin-bottom: 0px;
    line-height: 1.5; /* Improve readability with line-height */
    padding-left: 0; /* Keep bullet aligned with text */
    text-indent: 0;  /* Ensure bullets and text are aligned properly */
}

/* Links within the experience section */
.experience-item a {
    color: black; /* Match link color to paragraph text */
    transition: color 0.1s;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
}

.experience-item a:hover {
    color: grey; /* Darker color on hover for emphasis */
}

.experience-item a:active {
    color: black; /* Ensure active links retain the same color */
}

/* Adjust font size of h3 in experience-item */
.experience-item h3 {
    font-size: 1em; /* Reduced font size for h3 */
    margin-bottom: 0px;
    color: black;
}


footer {
    background: white;
    color: black;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    section {
        padding: 20px;
        margin: 10px auto;
    }
}

/* Contact Form Styles */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 600;
}

form input, form textarea {
    padding: 10px;
    border-radius: 4px;
    border: 0.5px solid #ccc;
    margin-bottom: 15px;
}

.contact a {
    color: black;
    transition: color 0.1s;
}

.contact a:hover {
    color: grey; /* Darker color on hover for emphasis */
}

.contact a:active {
    color: black; /* Ensure active links retain the same color */
}

form button {
    background-color: grey;
    color: white;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

form button:hover {
    background-color: black; /* Darker blue for hover */
}

#main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white; /* Or your preferred color */
    color: black;
    transition: top 0.1s ease-in-out; /* Smooth hide/show effect */
    z-index: 1000; /* Ensure the header is on top */
}

#main-header h1 {
    margin: 0;
    padding: 0;
    display: block;
}

.toggle-btn {
    background-color: grey;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
}

.toggle-btn:hover {
    background-color: black;
}

.projects-list {
    list-style-type: none;
    padding-left: 0;
}

.projects-list li {
    margin-bottom: 8px;
}

.image-container {
    display: flex;
    justify-content: space-between; /* Spacing between images */
    align-items: center;
    max-width: 1300px; /* You can adjust this width */
    margin: 0 auto; /* Center the image container */
}

.about-image {
    max-width: 320px; /* Adjust the size for each image */
    border-radius: 5px; /* Optional: Change the border radius for styling */
}

@media (max-width: 768px) {
    .image-container {
        flex-direction: column;
    }
    .about-image {
        max-width: 100%;
        margin-bottom: 15px; /* Spacing between images when stacked */
    }
}

.message-box {
    padding: 10px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 500px;
}

.message-box p {
    margin: 0;
    font-size: 16px;
}

/* Ensure the menu toggle button only shows on smaller screens */
.menu-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    background: white;
    color: black;
    padding: 10px;
    text-align: center;
    border: none;
    width: 100%;
}

@media (max-width: 768px) {
    /* Show the menu toggle button on smaller screens */
    .menu-toggle {
        display: block; /* Now visible */
    }

    /* Initially hide the navigation on small screens */
    nav ul {
        display: none;
    }

    /* Show the navigation when the 'active' class is added */
    nav ul.active {
        display: block;
    }
}



