/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 90px 20px 20px;
}

/* Dark mode */
body.dark {
    color: #e5e5e5;
    background-color: #0f0f0f;
}

body.dark .nav {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 16, 0.5);
}

body.dark .nav-link { color: #e5e5e5; }
body.dark .nav-link:hover { color: inherit; }
body.dark .internal-link, body.dark .external-link { color: #e5e5e5; }
body.dark .internal-link:hover, body.dark .external-link:hover { color: inherit; background-color: rgba(255,255,255,0.08); }

body.dark .placeholder { background-color: #1a1a1a; border-color: #333; }
body.dark .section-title, body.dark .greeting, body.dark .content { color: #e5e5e5; }
body.dark .movie-item { border-bottom-color: #1f1f1f; }
body.dark .movie-rating { color: #bbb; }
body.dark .movie-date { color: #888; }
body.dark .note { border-bottom-color: #1f1f1f; }
body.dark .project-item { border-bottom-color: #1f1f1f; }
body.dark .photo-item { background: #111; border-color: #1f1f1f; }
body.dark .lightbox { background: rgba(0,0,0,0.9); }

/*  PROJECT TEXT ELEMENTS */
body.dark .project-item h3 { color: #e5e5e5; }
body.dark .project-tech { color: #bbb; }
body.dark .project-link { color: #e5e5e5; }
body.dark .project-link:hover { background-color: rgba(255,255,255,0.08); }

body.dark .notes-content h3 { color: #e5e5e5; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link.active {
    font-weight: 600;
    text-decoration: underline;
}

.theme-toggle {
    appearance: none;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #000;
}

.theme-toggle:hover { border-color: #d00; color: #d00; }

body.dark .theme-toggle { color: #e5e5e5; border-color: #444; }
body.dark .theme-toggle:hover { border-color: #ff3b3b; color: #ff3b3b; }

/* Main Content */
.main {
    max-width: 600px;
}

.greeting {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

/* Profile Section */
.header-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 20px;
}

.header-content {
    flex: 1;
}

.profile-pic {
    flex-shrink: 0;
    margin-top: 10px;
    order: 2; /* This moves the image to the right */
}

.profile-image {
    width: 160px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%; /* Adjust this value */
    border: 2px solid #efefef;
}

/* Dark mode for profile image */
body.dark .profile-image {
    border-color: #444;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .profile-pic {
        order: 1; /* Image on top on mobile */
    }
    
    .header-content {
        order: 2; /* Text below on mobile */
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin-top: 0;
    }
}

.content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

.content u {
    text-decoration: underline;
    cursor: pointer;
}

.content u:hover {
    background-color: #f0f0f0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #000;
}

/* Project Placeholders */
.project-placeholders {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.placeholder {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.placeholder-link {
    flex: 1;
    display: block;
    text-decoration: none;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.placeholder-image:hover {
    transform: scale(1.03);
   
}

/* Dark mode styles */
body.dark .placeholder-image {
    border-color: #444;
}


/* AI Input */
.ai-input-container {
    margin: 30px 0;
}

.ai-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    font-family: inherit;
}

.ai-input:focus {
    outline: none;
    border-color: #999;
    background-color: #fff;
}

.ai-input::placeholder {
    color: #666;
}

/* Links */
.internal-link, .external-link {
    text-decoration: underline;
    cursor: pointer;
    color: #000;
    position: relative;
}

.internal-link:hover, .external-link:hover {
    background-color: #f0f0f0;
}

/* External link hover tooltip */
.external-link[data-logo="outlier"]:hover::after {
    content: "Outlier AI - AI-powered learning platform";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.external-link[data-logo="outlier"]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
    margin-bottom: -5px;
}

/* Social Links */
.social-links {
    margin: 20px 0;
    font-size: 16px;
}

.social-links .external-link {
    margin-right: 5px;
}

/* Last Updated */
.last-updated {
    font-size: 14px;
    color: #666;
    margin-top: 30px;
}

/* Notes Page Styles */
.notes-content {
    margin-top: 20px;
}

.note {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.note:last-child {
    border-bottom: none;
}

.note h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

.note p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.note-date {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Projects Page Styles */
.projects-grid {
    margin-top: 20px;
}

.project-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

.project-item p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.project-tech {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: #000;
    text-decoration: underline;
    font-size: 14px;
}

.project-link:hover {
    background-color: #f0f0f0;
}

/* Movie Page Styles */
.movie-content {
    margin-top: 20px;
}

.movie-section {
    margin-bottom: 30px;
}

.movie-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.movie-list {
    margin-bottom: 20px;
}

.month-subtitle {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    text-transform: lowercase;
}

.movie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.movie-item:last-child {
    border-bottom: none;
}

.movie-title {
    font-weight: 500;
}

.movie-rating {
    color: #666;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.movie-date {
    color: #888;
    font-size: 12px;
}

/* Photo Page Styles */
.photo-content {
    margin-top: 20px;
}

.photo-section {
    margin-bottom: 30px;
}

.photo-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.photo-list {
    list-style: none;
    padding: 0;
}

.photo-list li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.photo-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
}

/* Photo Gallery */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
  }
  
  .back-link:hover {
    text-decoration: underline;
  }
  
  .project-gallery {
    max-width: 600px;
    margin: 2rem auto;
  }

.project-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  @media (max-width: 768px) {
    .project-gallery img {
      height: 250px;
    }
  }

.gallery-controls {
    margin: 10px 0 20px 0;
}

.btn-min {
    appearance: none;
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-min:hover {
    opacity: 0.85;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo-item {
    width: 100%;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    aspect-ratio: 1 / 1;
    position: relative;
}

.photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.photo-caption.show { 
    opacity: 1; 
}


.lightbox {
    padding: 0;
    border: none;
    background: rgba(0,0,0,0.8);
    /* Add these centering properties */
    margin: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    align-items: center;
    justify-content: center;
}



.lightbox::backdrop {
    background: rgba(0,0,0,0.6);
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .project-placeholders {
        flex-direction: column;
        gap: 10px;
    }
    
    .placeholder {
        width: 100%;
        height: 60px;
    }
    
    .greeting {
        font-size: 20px;
    }
    
    .content {
        font-size: 15px;
    }
    
    .movie-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
}
