/* Base Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #555555;
    --dark-color: #000000;
    --light-color: #fffff2;
    --transition: all 0.3s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --bg-color: #ffffff;
    --text-color: #000000;
    --secondary-text: #555555;
    --link-color: #000000;
    --border-color: #e0e0e0;
    --outer-bg: #000000;
    --light-gray: #ccccc3;
    --flame-red: #ff4500;
    --flame-orange: #ff8c00;
    --flame-yellow: #ffcc00;
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #ffffff;
    --secondary-text: #aaaaaa;
    --link-color: #ffffff;
    --border-color: #333333;
    --light-gray: #444444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--outer-bg);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-size: 2rem;
    color: var(--dark-color);
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--dark-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-light {
    background-color: #eae6dd; /* Slightly darker beige for contrast */
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--light-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 15px;
}

.right-nav {
    display: flex;
    align-items: center;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #555;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-color);
}

/* Add specific styles for dark mode active nav links */
.dark-theme .nav-menu a.active {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

.dark-theme .nav-menu a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px 0;
}

/* Main Content Styles */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 40px 40px;
    position: relative;
    width: 100%;
}

/* Hero Section */
.hero {
    margin-bottom: 70px;
    text-align: left;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding-bottom: 40px;
}

.hero-content {
    margin-top: 0;
    padding-top: 6vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--light-gray);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 1.1;
}

.rotating-words {
    color: var(--flame-orange);
    background: linear-gradient(90deg, var(--flame-red), var(--flame-orange), var(--flame-yellow), var(--flame-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-sheen 6s linear infinite;
}

/* Add a gentle indicator that there's more content below */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--secondary-text);
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

@keyframes gradient-sheen {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.current-role, .soon-role, .past-role {
    margin: 20px 0;
    color: var(--secondary-color);
}

.current-role h3, .soon-role h3, .past-role h3 {
    font-weight: bold;
    margin-bottom: 5px;
}

.current-role a, .soon-role a, .past-role a {
    color: var(--primary-color);
    text-decoration: underline;
}

.current-role a:hover, .soon-role a:hover, .past-role a:hover {
    text-decoration: none;
}

.highlight {
    color: var(--primary-color);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #777;
    border-radius: 5px;
}

/* Skills Section */
.skills-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.skill-bar {
    width: 100%;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--dark-color);
}

/* Projects Section */
.projects-section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    visibility: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.projects-section.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.projects-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    display: block;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.project-preview {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-card:hover .project-preview {
    opacity: 0.12;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Reveal-in animations via IntersectionObserver */
[data-animate] {
    opacity: 0;
    transform: translateY(18px);
}

.in-view {
    animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--stagger-delay, 0ms);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filters and Search */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

#project-search {
    flex: 1 1 240px;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    transform: translateY(-2px);
}

.chip.active {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Contact Section */
.contact-section {
    margin-bottom: 60px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-right: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 0 40px 40px;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 5px;
}

/* Progress bar */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--flame-red), var(--flame-orange), var(--flame-yellow));
    width: 0;
    z-index: 9999;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

/* Career Section */
.career-info {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 30px;
    border-bottom: none;
}

.career-column a {
    border-bottom: 1px solid black;
}

.career-column {
    flex: 1;
    margin-right: 20px;
}

.career-column:last-child {
    margin-right: 0;
}

.career-column h3 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--secondary-text);
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        min-height: 95vh;
    }
    
    header {
        padding: 25px 25px 0;
    }
    
    main {
        padding: 40px 25px 25px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 3.5rem;
        margin-bottom: 50px;
    }
    
    .career-info {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .career-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .career-column:last-child {
        margin-bottom: 0;
    }
    
    .projects-section {
        margin-bottom: 70px;
    }
    
    .projects-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-section p {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .project-card {
        padding: 25px;
    }
    
    footer {
        padding: 0 25px 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .hero h1, 
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .toggle-container {
        margin-right: 20px;
    }
    
    .nav-menu li {
        margin-left: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
}

/* Accessibility: focus styles */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--flame-orange);
    outline-offset: 2px;
}

/* Project Detail Page */
.project-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.meta-section h4 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--secondary-text);
}

.project-brief, 
.project-contribution, 
.project-problem,
.project-goal,
.project-users,
.project-research,
.project-design,
.project-feature,
.project-next-steps,
.project-takeaways {
    margin-bottom: 60px;
}

.project-detail h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-detail h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.project-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--secondary-text);
}

.project-detail ul, 
.project-detail ol {
    margin-left: 20px;
    margin-bottom: 30px;
}

.project-detail li {
    margin-bottom: 15px;
    color: var(--secondary-text);
    line-height: 1.6;
}

.project-detail blockquote {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin: 40px 0;
}

.project-images {
    margin: 40px 0;
}

.project-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top {
    text-align: center;
    margin-top: 80px;
}

.back-to-top a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.back-to-top a:hover {
    background-color: var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-detail blockquote {
        font-size: 1.3rem;
    }
}

/* Project Hero Images */
.project-hero-images {
    width: 100%;
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.project-img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-img.primary-img {
    width: 70%;
    max-width: 800px;
    z-index: 2;
}

.project-img.secondary-img {
    width: 50%;
    max-width: 600px;
    position: absolute;
    right: 10%;
    top: 20%;
    z-index: 1;
    opacity: 0.9;
}

/* Hover effects */
.project-hero-images:hover .primary-img {
    transform: translateY(-5px);
}

.project-hero-images:hover .secondary-img {
    transform: translateY(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-hero-images {
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .project-img.primary-img {
        width: 90%;
    }
    
    .project-img.secondary-img {
        width: 70%;
        position: relative;
        right: auto;
        top: -40px;
        margin-bottom: -40px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */
.about-section {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-container {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.skill-tag {
    padding: 6px 12px;
    background-color: var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.timeline-section {
    margin-bottom: 80px;
}

.timeline {
    position: relative;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 9px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.timeline-content {
    margin-bottom: 10px;
}

.timeline-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.experience-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.experience-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--secondary-text);
}

.education-section {
    margin-bottom: 60px;
}

.education-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.education-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.education-institution {
    font-weight: 500;
    margin-bottom: 5px;
}

.education-date, .education-gpa, .education-details {
    color: var(--secondary-text);
    margin-bottom: 5px;
}

.education-courses {
    margin-top: 15px;
}

.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.skills-category {
    margin-bottom: 20px;
}

.skills-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--flame-red), var(--flame-orange));
    color: #000;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.35);
    cursor: pointer;
    transform: translateY(100px) scale(0.96);
    opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease;
}

.floating-cta.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Toast for notifications */
.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

@media (max-width: 768px) {
    .skills-section {
        grid-template-columns: 1fr;
    }
    
    .education-courses p {
        font-size: 0.95rem;
    }
}

/* Fun Page Styles */
.fun-intro {
    text-align: center;
    margin-bottom: 60px;
}

.fun-intro h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.fun-intro p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
}

.fun-projects {
    margin-bottom: 80px;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.hobby-section {
    margin-bottom: 80px;
}

.hobby-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.hobby-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.hobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.hobby-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hobby-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hobby-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.blog-section {
    margin-bottom: 80px;
}

.blog-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.blog-post {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.blog-date {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 15px;
}

.blog-post h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Project Architecture Section */
.project-architecture {
    margin-bottom: 60px;
}

/* Project Challenges Section */
.project-challenges {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .about-title,
    .fun-intro h1 {
        font-size: 2.5rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--secondary-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-button i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.back-button:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Image popup styles */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2% 2%;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    transform: scale(0.9);
}

.image-popup-overlay.active .popup-image {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
}

/* Make project images clickable */
.project-img {
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Add specific styles for dark mode content text */
.dark-theme .about-text p,
.dark-theme .timeline-content p,
.dark-theme .experience-list li,
.dark-theme .education-date, 
.dark-theme .education-gpa, 
.dark-theme .education-details,
.dark-theme .project-detail p,
.dark-theme .project-detail li {
    color: #dddddd;
}

/* Make secondary text more visible in dark mode */
.dark-theme .secondary-text,
.dark-theme .timeline-date,
.dark-theme .meta-section p,
.dark-theme p[class*="secondary"] {
    color: #bbbbbb;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

