:root {
    --color-darkest: #568259;
    --color-slate: #568259;
    --color-sage: #96E6B3;
    --color-light-grey: #CCFCCB;
    --color-lightest: #FFFFFF;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    font-family: 'Public Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Public Sans', sans-serif;
    margin: 0;
    background: var(--white);
    color: #000000;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid var(--color-light-grey);
    background: var(--white);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    color: #000000;
}

.subtitle {
    color: #000000;
    font-weight: 400;
}

.links a {
    margin: 0 0.7rem;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.2s ease;
}

.links a:hover {
    color: var(--color-darkest);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-light-grey);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tabs a {
    cursor: pointer;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.tabs a:hover {
    color: var(--color-darkest);
}

.tabs a.active {
    color: #000000;
    border-bottom-color: var(--color-sage);
}

main {
    max-width: 1400px;
    margin: auto;
    padding: 2rem 1rem;
}

.section {
    scroll-margin-top: 100px;
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--color-light-grey);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.card h3 {
    margin-top: 0;
}

.tech {
    font-size: 0.9rem;
    color: #000000;
}

.highlight {
    background: var(--white);
    border-color: var(--color-sage);
}

.skills ul {
    list-style: none;
    padding-left: 0;
}

.skills li {
    margin-bottom: 0.6rem;
}

.date {
    font-size: 0.85rem;
    color: #000000;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: #000000;
}

.project-links {
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.project-links a {
    margin-right: 1rem;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-links a:hover {
    color: var(--color-darkest);
}

/* Hobbies */
.hobbies .card {
    background: var(--white);
    border-color: var(--color-sage);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hobbies .card h3 {
    margin-top: 0;
    color: #000000;
    font-size: 1.2rem;
}

.hobbies .card ul {
    padding-left: 1.2rem;
    list-style-type: none;
}

.hobbies .card ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #000000;
}

.hobbies .card ul li::before {
    content: "📖";
    position: absolute;
    left: 0;
}

.hobbies .card a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.hobbies .card a:hover {
    text-decoration: underline;
}

/* Project Navigation */
.project-nav {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.project-nav::-webkit-scrollbar {
    display: none;
}

.project-nav button {
    background: var(--white);
    border: 1px solid var(--color-sage);
    color: #000000;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-nav button:hover {
    background: var(--color-sage);
    border-color: var(--color-sage);
}

/* Projects */
.projects-scroll-wrapper {
    position: relative;
    width: 100%;
}

.projects-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.projects-scroll-container::-webkit-scrollbar {
    display: none;
}

.projects .project-card {
    flex: 0 0 420px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projects .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--color-light-grey);
    background-color: var(--white);
}

.projects .project-card .project-links {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--color-light-grey);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 10;
    color: #000000;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.scroll-arrow:hover {
    background: var(--white);
    border-color: var(--color-sage);
}

.scroll-arrow.left-arrow {
    left: -20px;
}

.scroll-arrow.right-arrow {
    right: -20px;
}

/* Resume */
.resume-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 1px dashed var(--color-sage);
}

.resume-frame {
    width: 100%;
    height: 850px;
    border: none;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: stretch;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-left {
    flex: 0 0 30%;
    text-align: left;
    padding-right: 2rem;
}

.timeline-role {
    margin: 0 0 0.4rem 0;
    font-size: 1.2rem;
    color: #000000;
    font-weight: 700;
}

.timeline-date {
    margin: 0;
    font-size: 0.95rem;
    color: #000000;
}

.timeline-center {
    flex: 0 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-center::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--color-light-grey);
    z-index: 1;
}

.timeline-item:last-child .timeline-center::before {
    bottom: 0;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: var(--color-darkest);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--color-light-grey);
    font-size: 1.1rem;
}

.timeline-right {
    flex: 1;
    padding-left: 2.5rem;
    text-align: left;
}

.timeline-company {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #000000;
    font-weight: 700;
}

.timeline-desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
}

/* Clubs */
.clubs .card {
    display: grid;
    grid-template-columns: 160px 320px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem;
}

.clubs .club-image {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-light-grey);
    background-color: var(--white);
}

.club-title {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.1rem;
}

.club-title h3 {
    margin: 0 0 0.45rem 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.club-title .date {
    margin: 0;
    font-size: 0.92rem;
}

.club-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.club-details p:first-child {
    margin-top: 0;
}

.club-details p {
    margin: 0 0 1rem 0;
    line-height: 1.65;
}

.club-details ul {
    margin-top: 0;
    padding-left: 1.2rem;
}

.club-details li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .clubs .card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .clubs .club-image {
        width: 100%;
        height: 180px;
    }

    .club-title,
    .club-details {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
    }

    .timeline-left {
        flex: none;
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-left: 4rem;
        margin-bottom: 1rem;
    }

    .timeline-center {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
    }

    .timeline-right {
        flex: none;
        width: 100%;
        padding-left: 4rem;
        margin-left: 0;
    }
}