/* Navigation Styles */
.nav-div {
    background-color: black;
    width: auto;
    height: 100px;
    color: white;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.logo-div-main {
    padding-left: 100px;
    padding-top: 15px;
    font-size: 36px;
    font-weight: bold;
    font-family: 'Inter', 'sans-serif';
}

.logo-div-subtitle {
    padding-left: 50px;
    padding-top: 0px;
}

.nav-buttons {  
    display: flex;
    color: white;
}  

.nav-buttons-actual {
    margin-left: auto;
    margin-top: -50px;
    padding-right: 50px;
    display: flex;
    gap: 80px;
}

.nav-buttons-actual a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Helvetica', 'sans-serif';
    font-size: 18px;
    font-weight: lighter;
    will-change: filter;
    transition: filter 0.4s ease;
}

.nav-buttons-actual a:hover {
    filter: brightness(80%);
}

.resume {
    background: none;
    border: solid 1px white;
    border-radius: 10px;
    padding: 10px 40px 10px 40px;
    position: relative;
    left: 20px;
    bottom: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal !important;
    line-height: 1;
    height: fit-content;
    transition: filter 0.4s ease;
}

.resume:hover {
    background-color: white;
    color: black;
    filter: brightness(100%) !important;
}

/* Main Content */
.index_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 100px;
    margin-bottom: 350px;
    font-size: 40px;
    font-weight: bold;
}

.custom-carousel {
    width: 800px;       
    height: 375px;     
    margin: 0 auto;    
    overflow: hidden;  
    position: relative;
    top: 10px;
}

.custom-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer-div {
    background-color: black;
    width: auto;
    height: 100px;
    color: white;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.footer-div a {
    position: relative;
    left: 650px;
    top: 35px;
    display: inline-block;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    margin-right: 20px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.footer-div a:hover {
    transform: scale(1.2);
    filter: brightness(0.8);
}

.footer-div a:active {
    transform: scale(0.95);
}

/* Photo Section */
.photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-div {
    width: 200px;
    height: 150px;
    text-align: center;
    margin-top: 100px;
}

.photo-div img {
    width: 100%;
    height: 100%;
    border-radius: 60px;
    object-fit: cover;
    display: block;
}

.paragraph-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.para-div {
    max-width: 750px;
    font-size: 15.5px;
    font-weight: 600;
    font-family: 'Helvetica', 'sans-serif';
}

/* Project Page */
.proj-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px solid green;
    margin-bottom: 280px;
}

.proj-section {
    margin-top: 1.5%;
    max-width: 800px;
    width: 100%;
}

.proj-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
}

.project {
    font-size: 15px;
    font-weight: normal;
}

/* Books CSS - keeping existing styles */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --primary: hsl(222.2, 47.4%, 11.2%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --book-dropdown-bg: hsl(0, 0%, 95%);
    --book-dropdown-border: hsl(0, 0%, 80%);
    --book-cover-bg: hsl(0, 0%, 98%);
    --book-cover-border: hsl(0, 0%, 85%);
    --hover-bg: hsl(210, 40%, 96.1%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.books-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Dropdown Styles */
.dropdown-container {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--book-dropdown-bg);
    border: 1px solid var(--book-dropdown-border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-button:hover {
    background-color: var(--hover-bg);
}

.dropdown-icon {
    transition: transform 0.2s ease;
}

.dropdown-button.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    background-color: white;
    border: 1px solid var(--book-dropdown-border);
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    min-width: 200px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.dropdown-menu.open {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    z-index: 9999 !important;
}

.dropdown-item {
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
}

.dropdown-item:first-child {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Books List Styles */
.books-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 30%;
}

.book-item {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-cover {
    flex-shrink: 0;
    width: 8rem;
    height: 10rem;
    background-color: var(--book-cover-bg);
    border: 1px solid var(--book-cover-border);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.4;
}

.book-details {
    flex: 1;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.book-authors {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.book-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.book-description .label {
    font-weight: 500;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: text-decoration 0.2s ease;
}

.read-more:hover {
    text-decoration: underline;
}

.no-books {
    text-align: center;
    color: var(--muted-foreground);
    padding: 2rem 0;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    /* Navigation */
    .nav-div {
        height: auto;
        padding: 15px 5px;
        margin: 5px;
    }
    
    .logo-div-main {
        padding-left: 20px;
        padding-top: 10px;
        font-size: 24px;
        text-align: center;
    }
    
    .logo-div-subtitle {
        padding-left: 20px;
        text-align: center;
        font-size: 14px;
    }
    
    .nav-buttons-actual {
        margin-left: 0;
        margin-top: 15px;
        padding-right: 20px;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        position: static;
    }
    
    .nav-buttons-actual a {
        font-size: 16px;
    }
    
    .resume {
        left: 0;
        bottom: 0;
        padding: 8px 20px;
        margin-top: 10px;
    }
    
    /* Main Content */
    .index_text {
        top: 50px;
        margin-bottom: 150px;
        font-size: 28px;
        padding: 0 20px;
    }
    
    .custom-carousel {
        width: calc(100vw - 40px);
        max-width: 400px;
        height: 200px;
        top: 0;
    }
    
    /* Footer */
    .footer-div {
        height: auto;
        padding: 20px;
        margin: 5px;
        text-align: center;
    }
    
    .footer-div a {
        position: static;
        display: inline-block;
        font-size: 1.5rem;
        margin: 10px;
    }
    
    /* Photo Section */
    .photo-div {
        width: 150px;
        height: 120px;
        margin-top: 50px;
    }
    
    .paragraph-wrapper {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .para-div {
        max-width: 100%;
        font-size: 14px;
    }
    
    /* Projects */
    .proj-wrapper {
        margin-bottom: 100px;
        padding: 0 20px;
    }
    
    .proj-section {
        margin-top: 20px;
        max-width: 100%;
    }
    
    .proj-content {
        max-width: 100%;
        gap: 15px;
    }
    
    .project {
        font-size: 14px;
    }
    
    /* Books */
    .books-container {
        padding: 1rem;
    }
    
    .book-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .book-cover {
        width: 6rem;
        height: 8rem;
        align-self: flex-start;
    }
    
    .book-title {
        font-size: 1.125rem;
    }

    .full-description {
    white-space: pre-line;
    }


    /* Blog page mobile styles */
    .blog-coming-soon {
        margin-top: 25%;
        margin-bottom: 50vh;
        padding: 0 20px;
    }

    .blog-title {
        font-size: 22px;
        text-align: center;
    }

    .blog-subtitle {
        font-size: 15px;
        text-align: center;
        margin-top: 10px;
    }
}

/* Blog Page Styles */
.blog-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 21%;
    margin-top: 15%;
}

.blog-title {
    font-size: 30px;
    font-weight: bold;
    font-family: 'Helvetica', sans-serif;
}

.blog-subtitle {
    font-family: 'Helvetica', sans-serif;
    font-size: 18px;
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav-div {
        margin: 2px;
    }
    
    .logo-div-main {
        padding-left: 10px;
        font-size: 20px;
    }
    
    .logo-div-subtitle {
        padding-left: 10px;
        font-size: 12px;
    }
    
    .nav-buttons-actual {
        padding-right: 10px;
        gap: 15px;
    }
    
    .index_text {
        font-size: 24px;
        padding: 0 15px;
    }
    
    .custom-carousel {
        width: calc(100vw - 20px);
        max-width: 300px;
        height: 160px;
    }
    
    .footer-div {
        margin: 2px;
        padding: 15px;
    }
    
    .footer-div a {
        font-size: 1.3rem;
        margin: 8px;
    }
    
    .para-div {
        font-size: 13px;
    }
    
    .proj-wrapper {
        padding: 0 15px;
    }

    /* Blog page mobile styles */
    .blog-coming-soon {
        margin-top: 45%;
        margin-bottom: 33vh;
        padding: 0 15px;
    }

    .blog-title {
        font-size: 20px;
        text-align: center;
    }

    .blog-subtitle {
        font-size: 14px;
        text-align: center;
        margin-top: 10px;
    }
}

.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination button {
    padding: 5px 12px;
    margin: 0 5px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 15%;
}
.pagination button:disabled {
    background: #eee;
    color: #999;
    cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
    color: white;
    background-color: black;
   
}
