/* current palet: https://coolors.co/e9d758-297373-ff8552-e6e6e6-39393a */

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

body {
    background-color: #FF8552;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-feature-settings: "liga" 1, "kern" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(41, 115, 115, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600; /* SF font weight */
    color: #E9D758;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-weight: 500;
}

.nav-link {
    color: #E6E6E6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav-link:hover {
    color: rgba(230, 230, 230, 0.9);
}

.nav-button-container {
    display: flex;
}

.nav-button {
    background-color: #E9D758;
    color: #39393A;
    border: none;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.nav-button:hover {
    background-color: #d4bc4a;
}

.mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-button-container {
        display: none;
    }
    
    .mobile-menu-button {
        display: flex;
    }
}

/* Main Content Styles - Updated to account for fixed navbar */
.main-content {
    margin-top: 80px; /* Space for fixed navbar */
}

.container {
    display: flex;
    height: 100vh;
    margin-top: 0; /* Remove margin since main-content handles it */
}

img {
    display: block;
}

.left-half, .right-half {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.right-half {
    background-color: #FF8552;
}

.left-3, .experience {
    width: 90%;
    height: 50%;
    padding: 10px;
    border: 5px solid gray;
    margin: 0;
}

/* Apple SF Font for all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    font-feature-settings: "liga" 1, "kern" 1;
    -webkit-font-smoothing: antialiased;
}

h1 {
    color: #39393A;
    font-size: 0.875rem; /* 14px equivalent */
    font-weight: 400;
}

h2 {
    color: #E9D758;
    font-size: 1.25rem; /* 20px equivalent */
    font-weight: 600;
}

h3 {
    color: #297373;
    font-size: 1rem; /* 16px equivalent */
    font-weight: 500;
}

h4 {
    color: #297373;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Apple SF Font for all text */
p, li {
    color: #39393A;
    font-size: 0.875rem; /* 14px equivalent */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.5; /* Apple's preferred line height */
    font-weight: 400;
}

/* Apple SF Font for buttons */
button {
    background-color: #E9D758;
    border: none;
    color: #39393A;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-weight: 500;
    transition: all 0.2s ease; /* Apple-style quick transitions */
}

button:hover {
    background-color: #d4bc4a;
    transform: translateY(-1px); /* Subtle lift effect */
}

/* Apple SF Font for lists */
ul, ol {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

ul li {
    margin-bottom: 0.25rem;
}

/* Add smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Adjust scroll target to account for fixed navbar */
#aboutme,
#experience {
    scroll-margin-top: 100px; /* Adds space above the target when scrolling */
}

/* Update scroll margin for projects section */
#projects,
#book-club {
    scroll-margin-top: 100px;
}

/* Photo slideshow styles - Updated to align shorter photos to top */
.photo-slideshow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Changed from 'center' to 'flex-start' for top alignment */
    justify-content: center;
}

.photo-slideshow img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.5s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Optional: Add hover effect */
.photo-slideshow:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease, opacity 0.5s ease-in-out;
}

/* Photo counter (optional) */
.photo-slideshow::after {
    content: attr(data-photo-count);
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.photo-slideshow {
    position: relative;
}

/* Apple-style content sections */
.aboutme, .experience {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

/* About Me section - larger font size */
.aboutme p {
    font-size: 1.125rem; /* Increased from 0.875rem (14px) to 1.125rem (18px) - about 30% larger */
    line-height: 1.6; /* Slightly increased line height for better readability */
    margin-bottom: 1rem; /* Add some space between paragraphs */
}

.aboutme h3 {
    font-size: 1.3rem; /* Also increase the heading size slightly */
    margin-bottom: 1rem;
}

/* Experience content styling */
#experience-content {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    margin-top: 1rem;
}

#experience-content h4 {
    color: #297373;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#experience-content ul {
    padding-left: 1.25rem;
}

#experience-content li {
    color: #39393A;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Full-width Projects section */
.projects-section {
    width: 100%;
    background-color: #E6E6E6; /* Light background to differentiate */
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.projects-container {
    max-width: 1200px; /* Limit content width for readability */
    margin: 0 auto; /* Center the content */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.projects-section h2 {
    color: #297373;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.projects-section p {
    color: #39393A;
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Projects grid layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-card h4 {
    color: #297373;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card p {
    color: #39393A;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
}

/* Full-width Book Club section */
.book-club-section {
    width: 100%;
    background-color: #297373; /* Using your teal color for variation */
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.book-club-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.book-club-section h2 {
    color: #E9D758; /* Yellow for contrast against teal background */
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.book-club-section > .book-club-container > p {
    color: #E6E6E6; /* Light text for readability */
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
}

.book-club-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Current Book Section */
.current-book h3,
.recent-books h3 {
    color: #E9D758;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.book-display {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.book-info h4 {
    color: #E6E6E6;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-author {
    color: #E9D758;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1rem !important;
}

.book-description {
    color: #E6E6E6;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Reading Progress Bar */
.reading-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #E9D758;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #E6E6E6;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Recent Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.book-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.book-card:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.15);
}

.book-card h4 {
    color: #E6E6E6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-card .book-author {
    color: #E9D758;
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
}

.book-card p:not(.book-author) {
    color: #E6E6E6;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsive design for projects */
@media (max-width: 768px) {
    .projects-section {
        padding: 2rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-section h2 {
        font-size: 1.75rem;
    }
}

/* Responsive design for book club */
@media (max-width: 768px) {
    .book-club-section {
        padding: 2rem 1rem;
    }
    
    .book-club-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-club-section h2 {
        font-size: 1.75rem;
    }
    
    .current-book h3,
    .recent-books h3 {
        font-size: 1.25rem;
    }
}