/* FONT SETUP & GLOBAL STYLES */
@font-face {
    font-family: 'TT Travels';
    src: url('fonts/TT_Travels_Trial_Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #FAF9F6;
    --text-color: #111111;
    --line-color: #d3d3d3;
    --font-main: 'TT Travels', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CURSOR STYLES */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    mix-blend-mode: difference;
    display: none;
}

@media (min-width: 769px) {
    .cursor {
        display: block;
    }
}

.cursor__ring,
.cursor__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cursor__ring {
    width: 30px;
    height: 30px;
    border: 1px solid white;
}

.cursor__dot {
    width: 5px;
    height: 5px;
    background-color: white;
}

.cursor.is-hovering .cursor__ring {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

.cursor.is-hovering .cursor__dot {
    transform: translate(-50%, -50%) scale(15);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw;
    font-size: 1.1rem;
    z-index: 100;
    transition: background-color 0.3s ease;
    /* --- NEW STYLES FOR STICKY NAVBAR --- */
    background-color: rgba(250, 249, 246, 0.8);
    /* Semi-transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* For Safari */
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}

.header__resume-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.header__resume-btn svg {
    width: 1.1em;
    height: 1.1em;
    transition: fill 0.3s;
}

.header__resume-btn:hover svg {
    fill: var(--bg-color);
}

/* GENERAL SECTION STYLES */
.section {
    padding: 8vw;
    position: relative;
    background-color: var(--bg-color);
}

/* Add top padding to the first section after the fixed header */
main>.hero {
    padding-top: 120px;
    /* Adjust this value based on header height */
}


/* HERO */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__title {
    font-size: clamp(3rem, 10vw, 9rem);
    line-height: 0.9;
    font-weight: 600;
    text-transform: lowercase;
    position: relative;
    z-index: 1;
}

.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.2em;
}

.hero__line>span {
    display: inline-block;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* ABOUT */
.section.about {
    padding-top: 6vw;
    border-top: 1px solid var(--line-color);
}

.section__title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 4vw;
}

.about__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5vw;
}

.about__content .about__text {
    width: 60%;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.3;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(90deg, var(--text-color) 50%, #b0b0b0 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
}

.about__content .about__image {
    width: 25%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__content .about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PROJECTS SECTION */
.projects {
    border-top: 1px solid var(--line-color);
    padding-top: 2vw;
    padding-bottom: 2vw;
}

.projects__title {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    font-weight: 600;
    margin-bottom: 2rem;
}

.projects__title>div {
    overflow: hidden;
    padding-bottom: 0.1em;
}

.project-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5vw;
    align-items: center;
    padding: 2.5vw 0;
    border-bottom: 1px solid var(--line-color);
}

.project-showcase:first-child {
    border-top: 1px solid var(--text-color);
}

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

.project-showcase__text .project__name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.project-showcase__text .project__description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 2rem;
}

.project__links {
    display: flex;
    gap: 1.5rem;
}

.project__links a {
    font-weight: 600;
}

.project-showcase__visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.project__tech-stack {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    /* --- MODIFIED FONT WEIGHT --- */
    font-weight: 600;
}

/* EXPERIENCE & TIMELINE (STICKY LAYOUT) */
.experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: start;
    border-top: 1px solid var(--line-color);
    padding: 0;
}

.experience__sticky-title {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8vw;
}

.experience__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    font-weight: 600;
    text-align: center;
}

.experience__title h2 {
    text-transform: lowercase;
}

.experience__title>div {
    overflow: hidden;
    padding-bottom: 0.1em;
}

.experience__scroll-content {
    padding: 8vw;
    padding-left: 0;
}

.timeline {
    max-width: 800px;
    position: relative;
}

.timeline-item {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 3rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--text-color);
    border: 3px solid var(--bg-color);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline-content .company {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-position: outside;
    padding-left: 1.2rem;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #444;
}


/* CONTACT */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    border-top: 1px solid var(--line-color);
}

.contact__title {
    font-size: clamp(3rem, 10vw, 9rem);
    line-height: 0.9;
    font-weight: 600;
}

.contact__links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.contact__link {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line-color);
}

.contact__link:first-child {
    border-top: 1px solid var(--line-color);
}

.contact__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.2em;
}

.contact__line>span {
    display: inline-block;
}

/* RESPONSIVE STYLES (MOBILE) */
@media (max-width: 768px) {
    .section {
        padding: 18vw 5vw;
    }

    .header {
        padding: 1.5rem 5vw;
    }

    .header__nav {
        gap: 1rem;
        font-size: 1rem;
    }

    .header__resume-btn {
        padding: 0.4rem 0.8rem;
    }

    .about__content {
        flex-direction: column;
        gap: 2rem;
    }

    .about__content .about__text {
        width: 100%;
        font-size: 1.5rem;
    }

    .about__content .about__image {
        width: 70%;
        order: -1;
    }

    .project-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .project-showcase__text .project__name {
        font-size: 1.8rem;
    }

    .project-showcase__visual {
        order: -1;
    }

    .experience {
        grid-template-columns: 1fr;
    }

    .experience__sticky-title {
        position: static;
        height: auto;
        padding: 18vw 5vw 0 5vw;
        justify-content: flex-start;
    }

    .experience__title {
        text-align: left;
    }

    .experience__scroll-content {
        padding: 5vw;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact__title {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Dark mode theme variables - Original color palette */
[data-theme="dark"] {
    --bg-color: #D9D9D9;
    --text-color: #000000;
    --line-color: #555555;
}

/* Dark mode header background */
[data-theme="dark"] .header {
    background-color: rgba(217, 217, 217, 0.8);
}

/* Header name bold */
.header__name {
    font-weight: 600;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0;
    margin-left: 1rem;
}

.theme-toggle:hover {
    transform: rotate(180deg);
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

/* Crescent moon for dark mode */
[data-theme="dark"] .theme-toggle__icon {
    background-color: transparent;
    box-shadow: inset -4px 0px 0px 0px var(--text-color);
}

/* Vertical label in hero section - positioned at bottom */
.hero__vertical-label {
    position: absolute;
    left: 4vw;
    bottom: 8vw;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
    opacity: 0;
    animation: fadeInLabel 1s ease-out 0.5s forwards;
}

.hero__vertical-line {
    width: 1px;
    height: 40vh;
    background-color: var(--text-color);
    opacity: 0.3;
}

.hero__vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.5;
    font-weight: 600;
}

@keyframes fadeInLabel {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}