/* 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: center;
    align-items: center;
    padding: 1.5rem 2rem; /* Increased from 1rem to 1.5rem */
    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;
    height: 80px; /* Add explicit height */
}

/* Position logo and contact button absolutely to keep them on the sides */
.logo-section {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-button-container {
    position: absolute;
    right: 2rem;
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem; /* Increased from 2rem to 3rem for more spacing */
    font-weight: 500;
    /* Remove the justify-content: center line as it's no longer needed */
}

.nav-link {
    color: #E6E6E6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500; /* Increased from 400 to 500 for bolder text */
    font-size: 1.1rem; /* Increased from default to make text larger */
    padding: 0.75rem 1rem; /* Add padding around links for more clickable area */
    border-radius: 8px; /* Add subtle border radius */
}

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

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

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

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: #FFFFFF;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    z-index: 1001;
    border: 1px solid rgba(41, 115, 115, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-content.show {
    display: block;
}

/* Dropdown items */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #39393A;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: #F5F5F5;
    color: #297373;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* Navigation icons */
.nav-icon {
    margin-right: 0.75rem;
    color: #297373;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.dropdown-item:hover .nav-icon {
    color: #39393A;
}

/* LinkedIn icon */
.linkedin-icon {
    margin-right: 0.75rem;
    color: #0077B5; /* LinkedIn brand color */
    flex-shrink: 0;
}

.dropdown-item:hover .linkedin-icon {
    color: #005582; /* Darker LinkedIn color on hover */
}

/* Logo and flags section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    text-decoration: none;
}

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

/* Language flags styling - Updated for emoji flags */
.language-flags {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.flag-button {
    background: none;
    border: 2px solid transparent;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; /* Make emojis slightly larger */
    line-height: 1;
}

.flag-button:hover {
    border-color: rgba(233, 215, 88, 0.5);
    background-color: rgba(233, 215, 88, 0.1);
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.flag-button.active {
    border-color: #E9D758;
    background-color: rgba(233, 215, 88, 0.2);
    transform: scale(1.05);
}

/* Remove old flag SVG styles */
.flag {
    /* No longer needed */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide the main navigation on mobile */
    }
    
    .contact-dropdown {
        display: flex; /* Show the dropdown on mobile */
    }
    
    .dropdown-content {
        right: -1rem;
        min-width: 200px;
    }
    
    .nav-button {
        padding: 0.875rem 1.5rem; /* Slightly smaller on mobile */
    }
    
    .logo-section {
        gap: 0.75rem;
    }
    
    .language-flags {
        gap: 0.5rem;
    }
    
    .flag-button {
        padding: 4px 6px;
        font-size: 1.1rem; /* Slightly smaller on mobile */
    }
}

/* Main Content Styles - Updated to remove excessive spacing */
.main-content {
    margin-top: 100px; /* Increased from 80px to account for larger navbar */
}

.container {
    display: flex;
    min-height: 60vh; /* Changed from 100vh to min-height: 60vh */
    padding-bottom: 2rem; /* Add some padding at the bottom */
}

img {
    display: block;
}

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

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

/* Remove old experience styles and add new full-width experience section */
.left-3, .experience {
    /* Remove or comment out old styles */
}

/* Full-width Experience section */
.experience-section {
    width: 100%;
    background-color: #39393A; /* Dark background for variation */
    padding: 4rem 2rem;
    box-sizing: border-box;
}

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

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

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

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

.experience-card {
    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);
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

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

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

.experience-card > p {
    color: #E6E6E6;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Experience details (initially hidden) */
.experience-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(233, 215, 88, 0.3);
}

.experience-details.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.experience-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.experience-details li {
    color: #E6E6E6;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 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 display styles - Static image only */
.photo-slideshow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Top alignment */
    justify-content: center;
}

.photo-slideshow img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    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;
    }
}

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