body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #23272e;
    color: #f5f6fa;
}

.navbar {
    width: 100%;
    background: rgba(30, 32, 36, 0.95);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #f5f6fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.navbar a:hover {
    color: #6ec1e4;
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #a3e635;
    margin-left: 1rem;
    margin-right: 1rem;
    cursor: pointer;
    z-index: 201;
}

#nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: right 0.3s;
}

.theme-toggle {
    position: static;
    margin-left: auto;
    margin-right: 2rem;
    top: auto;
    right: auto;
    transform: none;
}

.landing-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Use min-height instead of height */
    padding-top: 80px;  /* Adjust this to match your navbar height */
    gap: 4rem;
    background: linear-gradient(120deg, #23272e 70%, #2d333b 100%);
    box-sizing: border-box;
}

.landing-left {
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.name {
    font-size: 6rem; /* Much bigger for main title */
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.05;
    text-align: left;
    width: 100%;
}

@media (max-width: 900px) {
    .name {
        font-size: 3.5rem;
        text-align: center;
        white-space: normal;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .landing-left {
        max-width: 500px;
    }
    .name {
        font-size: 4rem;
    }
}

/* Mobile large */
@media (max-width: 700px) {
    .landing-left {
        max-width: 95vw;
    }
    .name {
        font-size: 2.2rem;
        text-align: center;
        white-space: normal;
        width: 100%;
    }
}

.title {
    font-size: 2rem; /* Bigger */
    font-weight: 400;
    margin: 0;
    color: #6ec1e4; /* Soft blue */
    letter-spacing: 1px;
}

.cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #a3e635;
    color: #23272e;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.15);
    transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
    background: #fff;
    color: #23272e;
}

.landing-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-image {
    width: 600px; /* Bigger */
    max-width: 95vw;
    /* border-radius: 24px; */
    /* box-shadow: 0 8px 32px rgba(0,0,0,0.18); */
    /* background: #23272e; */
    display: block;
    margin: 0 auto;
    animation: floatIsland 3s ease-in-out infinite;
}

@keyframes floatIsland {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Experience Timeline --- */
.experience-section {
    padding: 100px 0 60px 0;
    background: #262b33; /* Slightly lighter/darker than landing */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #6ec1e4 0%, #a3e635 100%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: #23272e;
    border: 4px solid #6ec1e4;
    border-radius: 50%;
    position: absolute;
    left: -2px;
    top: 8px;
    z-index: 1;
    box-shadow: 0 0 0 4px #23272e;
}

.timeline-content {
    background: #23272e;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 1.5rem 2rem;
    margin-left: 48px;
    width: 100%;
    color: #f5f6fa;
    transition: box-shadow 0.2s;
}

.timeline-content:hover {
    box-shadow: 0 4px 24px rgba(126,203,255,0.12);
}

.timeline-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.timeline-content h3 span {
    font-weight: 400;
    color: #6ec1e4;
    font-size: 1rem;
}

.timeline-meta {
    font-size: 1rem;
    color: #a3e635;
    margin-bottom: 0.2rem;
}

.timeline-stack {
    font-size: 0.98rem;
    color: #6ec1e4;
    margin-bottom: 0.7rem;
}

.timeline-content ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Education Section --- */
.education-section {
    background: #23272e;
    padding: 90px 0 60px 0;
}

.education-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.education-item {
    background: #262b33;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 2rem 2.5rem;
    color: #f5f6fa;
    transition: box-shadow 0.2s;
}

.education-item:hover {
    box-shadow: 0 4px 24px rgba(126,203,255,0.10);
}

.edu-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.7rem;
}

.education-item h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    /* color: #23272e; */
    color: white;

}

.education-item h3 span {
    font-weight: 400;
    color: #6ec1e4;
    font-size: 1rem;
}

.edu-meta {
    font-size: 1rem;
    color: #a3e635;
}

.edu-degree {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #6ec1e4;
}

.edu-gpa {
    color: #6ec1e4;
    font-size: 1rem;
    font-weight: 400;
}

.edu-coursework,
.edu-thesis {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 0.3rem;
}

/* --- Projects Section --- */
.projects-section {
    background: #262b33;
    padding: 90px 0 60px 0;
}

.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #262b33;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    width: 350px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 24px rgba(126,203,255,0.13);
    transform: translateY(-6px) scale(1.025);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #23272e;
}

.project-content {
    padding: 1.5rem 1.3rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.project-tech {
    font-size: 0.98rem;
    color: #a3e635; /* Use green accent */
    margin-bottom: 0.7rem;
}

.project-desc {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 1.2rem;
    flex: 1;
}

.project-buttons {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #23272e;
    color: #a3e635; /* Use green accent */
    border: 2px solid #a3e635;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.project-btn:hover {
    background: #a3e635;
    color: #23272e;
    border: 2px solid #a3e635;
}

/* --- Footer --- */
.footer {
    background: #23272e;
    color: #e0e0e0;
    text-align: center;
    padding: 1.5rem 0 1.5rem 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
    /* margin-top: 40px; */
    border-top: 1px solid #262b33;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.1rem;
    margin-top: 1.2rem;
    justify-content: flex-start; /* Align left */
}

.tech-stack span {
    background: #23272e;
    color: #a7c4a0;         /* Updated to your preferred green */
    border-radius: 16px;
    padding: 0.35em 1em;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid #a7c4a0; /* Updated border color */
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0.2rem;
}

.tech-stack span:hover {
    background: #a3e635;
    color: #23272e;
    cursor: default;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #a3e635;
    transition: color 0.2s;
    z-index: 200;
    line-height: 1;
    padding: 0;
}
.theme-toggle:hover {
    color: #6ec1e4;
}

/* --- Light Mode Styles --- */
body.light-mode {
    background: #f7f7f9;
    color: #23272e;
}
body.light-mode .navbar {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
body.light-mode .navbar a {
    color: #23272e;
}
body.light-mode .navbar a:hover {
    color: #a3e635;
}
body.light-mode .landing-section,
body.light-mode .experience-section,
body.light-mode .education-section,
body.light-mode .projects-section {
    background: #f7f7f9;
}
body.light-mode .landing-left .name,
body.light-mode .section-title {
    color: #23272e;
}
body.light-mode .landing-left .title,
body.light-mode .timeline-stack,
body.light-mode .edu-gpa {
    color: #6ec1e4;
}



body.light-mode .timeline-content,
body.light-mode .education-item,
body.light-mode .project-card {
    background: #fff;
    color: #23272e;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

body.light-mode .timeline-content ul,
body.light-mode .edu-coursework,
body.light-mode .edu-thesis,
body.light-mode .project-desc {
    color: #23272e;
}

body.light-mode .timeline-dot {
    background: #fff;
    border-color: #a3e635;
}
body.light-mode .timeline::before {
    background: linear-gradient(to bottom, #a3e635 0%, #6ec1e4 100%);
}
body.light-mode .timeline-meta,
body.light-mode .project-tech {
    color: #a3e635;
}
body.light-mode .project-btn {
    background: #fff;
    color: #a3e635;
    border: 2px solid #a3e635;
}
body.light-mode .project-btn:hover {
    background: #a3e635;
    color: #fff;
}
body.light-mode .tech-stack span {
    background: #f0f1f4;         /* Softer light background */
    color: #a7c4a0;              /* Softer green */
    border: 1px solid #a7c4a0;
}
body.light-mode .tech-stack span:hover {
    background: #a7c4a0;
    color: #fff;
}
body.light-mode .footer {
    background: #fff;
    color: #23272e;
    border-top: 1px solid #e0e0e0;
}

/* --- Ensure headings are visible in light mode --- */
body.light-mode .timeline-content h3,
body.light-mode .education-item h3,
body.light-mode .project-title {
    color: #23272e;
}

/* --- Alternating section backgrounds for light mode --- */
body.light-mode .landing-section {
    background: #f7f7f9;
}
body.light-mode .experience-section {
    background: #f0f1f4;
}
body.light-mode .education-section {
    background: #f7f7f9;
}
body.light-mode .projects-section {
    background: #f0f1f4;
}

@media (max-width: 900px) {
    .landing-section {
        flex-direction: column;
        gap: 2rem;
        padding-top: 100px;
    }
    .landing-left, .landing-right {
        align-items: center;
        text-align: center;
    }
    .navbar {
        justify-content: flex-start;
        padding: 1rem 0.5rem;
    }
    .theme-toggle {
        margin-right: 1rem;
    }
}

@media (max-width: 700px) {
    .timeline {
        padding-left: 0;
    }
    .timeline-content {
        margin-left: 36px;
        padding: 1.2rem 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .education-item {
        padding: 1.2rem 1rem;
    }
    .education-list {
        gap: 1.5rem;
    }
    .projects-list {
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        width: 98vw;
        max-width: 98vw;
    }
    .project-image {
        height: 160px;
    }
    .landing-image {
        width: 90vw;
        height: auto;
        max-width: 420px;;
    }
    .tech-stack {
        justify-content: center; /* Center on mobile */
        gap: 0.4rem 0.7rem;
        font-size: 0.95rem;
    }
    .burger {
        display: block;
    }
    #nav-links {
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: -100vw;
        width: 70vw;
        max-width: 320px;
        background: #23272e;
        height: calc(100vh - 60px);
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        box-shadow: -2px 0 12px rgba(0,0,0,0.15);
        z-index: 200;
    }
    #nav-links.open {
        right: 0;
    }
    .theme-toggle {
        margin: 0 0 0 auto;
        position: absolute;
        /* top: 1rem; */
        right: 1.5rem;
    }
    .landing-section {
        padding-top: 60px; /* Match mobile navbar height */
    }
}

/* --- Tech Stack Responsive --- */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    max-width: 100vw;
    overflow-x: auto;
    justify-content: flex-start;
}

@media (max-width: 700px) {
    .tech-stack {
        max-height: 80px;
        overflow-y: auto;
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 0.4rem;
        margin-top: 0.7rem;
    }
    .tech-stack span {
        white-space: nowrap;
        font-size: 0.95rem;
        padding: 0.3em 0.8em;
    }
}

.timeline-content, .education-item, .project-card {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}


