:root {
    --bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #2563eb;
    --border: #f3f4f6;
    --timeline-line: #eceef2;
    --surface: #fcfcfc;
    --nav-bg: rgba(255, 255, 255, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

body {
    font-family: 'Google Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.job-title {
    font-family: 'Google Sans', sans-serif;
    letter-spacing: -0.01em;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
}

/* Sticky Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-left {
    flex: 0 0 280px;
}

.hero-right {
    flex: 1;
}

.profile-img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--surface);
    padding: 5px;
}

.profile-img:hover {
    transform: scale(1.02);
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.3;
    display: block;
}

.tagline-ex-google {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-muted);
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    padding-top: 0.5rem;
}

.bio strong {
    color: var(--text-primary);
    font-weight: 600;
}

.bio p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 4px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Sections */
section {
    margin-bottom: 6rem;
    animation: fadeIn 0.8s ease-out backwards;
    animation-delay: 0.2s;
}

h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}


/* Experience Layout Redesign (Side-by-Side) */
.experience-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    padding: 1.5rem;
    margin: 0 -1rem 1rem -1rem;
    /* Breathable gap between items */
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-item:hover {
    background: #fafafa;
    transform: translateX(4px);
}

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

.duration {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
    padding-top: 0.25rem;
    position: relative;
    padding-left: 1.25rem;
}

.duration::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 2px;
    height: 1rem;
    background: var(--border);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.experience-item:hover .duration::before {
    background: var(--text-primary);
    height: 1.2rem;
    top: 0.4rem;
}

.exp-content {
    display: flex;
    flex-direction: column;
}

.job-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: block;
    font-weight: 400;
}

.description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* Toolkit Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.skill-box {
    font-size: 0.9rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.2s ease;
}

.skill-box:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .container {
        padding: 4rem 2rem;
    }

    .hero {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 5rem;
        text-align: center;
    }

    .hero-left {
        flex: none;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-right {
        text-align: left;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem;
        margin: 0 0 1rem 0;
        /* Ensures gap between items on mobile */
        border-radius: 12px;
        cursor: pointer;
    }

    .experience-item:active {
        background: #fafafa;
        transform: translateX(4px);
    }

    .experience-item:active .duration::before {
        background: var(--text-primary);
        height: 1.2rem;
        top: 0.4rem;
    }

    .duration {
        font-size: 0.9rem;
        padding-top: 0;
        margin-bottom: 0.25rem;
    }

    .job-title {
        font-size: 1.25rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .tagline-ex-google {
        display: inline;
        color: inherit;
    }

    .tagline-ex-google::before {
        content: "\22C5";
        margin: 0 0.4rem;
    }

    .bio {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}