:root {
    /* Palette Definition */
    --palette-white: #FAFAFA;
    --palette-silver: #CDCDCF;
    --palette-gray: #939599;
    --palette-teal: #2BCFCE;
    --palette-orange: #EC4D25;

    /* Theme Variables */
    --bg: var(--palette-white);
    --bg-card: #FFFFFF;

    --primary: var(--palette-teal);
    --primary-dark: #1fa8a9;
    --primary-light: #5ef5f6;
    --primary-alpha: rgba(43, 207, 206, 0.1);

    --accent: var(--palette-orange);
    --accent-dark: #c93c1a;
    --accent-alpha: rgba(236, 77, 37, 0.1);

    --dimmed: var(--palette-gray);
    --dimmed-dark: #939599;
    --dimmed-alpha: rgba(140, 140, 140, 0.1);

    --text-main: #1a1a1a;
    --text-muted: var(--palette-gray);
    --text-dim: #787a7d;

    --border: var(--palette-silver);
    --border-hover: var(--palette-teal);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* HEADER */
.header {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: visible;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) saturate(1.5);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(250, 250, 250, 0.1) 0%,
            rgba(250, 250, 250, 0.5) 80%,
            var(--bg) 100%);
}

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* PROFILE CARD */
.profile-card {
    position: relative;
    z-index: 20;
    max-width: 720px;
    margin: -80px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    box-shadow: var(--shadow-lg);
    animation: cardSlideUp 0.8s ease-out;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.profile-photo-wrapper {
    flex-shrink: 0;
    position: relative;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px var(--primary-alpha);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--primary-alpha);
}

.profile-status {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-status::after {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
}

.profile-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.profile-title {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 14px;
    display: inline-block;
    background: var(--primary-alpha);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.profile-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
}

.profile-location svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

.profile-contact {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 20px;
}

/* MAIN CONTENT */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}

/* REPO PILLS */
.repo-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.repo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.repo-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.repo-pill:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.repo-pill svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.pill-badge {
    font-size: 0.72rem;
    background: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 4px;
}

/* SECTION TITLES */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.section-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-alpha);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-dark);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* EXPERIENCE TIMELINE */
.experience-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.timeline-item:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 34px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-item:hover::before {
    border-color: var(--primary);
    background: var(--primary);
}

.timeline-item.current::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-alpha);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px var(--accent-alpha);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(236, 77, 37, 0.1);
    }

    100% {
        box-shadow: 0 0 0 4px var(--accent-alpha);
    }
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    background: var(--primary-alpha);
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.timeline-tasks {
    list-style: none;
}

.timeline-tasks li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    margin-bottom: 6px;
}

.timeline-tasks li::before {
    content: '▹';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: bold;
}

/* EDUCATION */
.education-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.edu-card {
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--border);
    transition: background 0.3s;
}

.edu-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.edu-card:hover::before {
    background: var(--primary);
}

.edu-type {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 10px;
}

.edu-degree {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
    line-height: 1.3;
}

.edu-school {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 6px;
}

.edu-year {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.edu-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
    background: var(--accent-alpha);
    padding: 4px 10px;
    border-radius: 20px;
}

.edu-status .dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.edu-status-dimmed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--dimmed);
    font-weight: 700;
    background: var(--dimmed-alpha);
    padding: 4px 10px;
    border-radius: 20px;
}

.edu-status-dimmed .dot-dimmed {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

/* SKILLS */
.skills-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.skill-category:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.skill-cat-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-cat-title svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

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

.skill-tag {
    padding: 6px 14px;
    background: var(--primary-alpha);
    color: var(--primary-dark);
    border: 1px solid rgba(43, 207, 206, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.skill-tag.accent-tag {
    background: var(--accent-alpha);
    color: var(--accent);
    border-color: rgba(236, 77, 37, 0.2);
}

.skill-tag.accent-tag:hover {
    background: var(--accent);
    color: white;
}

/* CERTIFICATES */
.certificates-section {
    animation: fadeInUp 0.6s ease-out 1s both;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.cert-item:hover {
    border-color: var(--accent);
    background: rgba(236, 77, 37, 0.02);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--accent-alpha);
}

.cert-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.cert-info {
    flex: 1;
}

.cert-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.cert-org {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cert-arrow {
    color: var(--border);
    transition: all 0.3s;
}

.cert-item:hover .cert-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    background: var(--bg-card);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .header {
        height: 420px;
    }

    .header-nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        margin: -60px 16px 0;
        padding: 30px 24px;
        align-items: center;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .profile-info h1 {
        font-size: 1.8rem;
    }

    .profile-location {
        justify-content: center;
    }

    .main-content {
        padding: 40px 16px 60px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-item {
        padding: 24px;
    }

    .timeline-item::before {
        left: -20px;
    }

    .timeline::before {
        left: 6px;
    }

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

    .repo-pills {
        justify-content: center;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

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

    .nav-links {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}