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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #0d1117;
    color: #e6edf3;

    line-height: 1.6;
}

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

button {
    font: inherit;
}


/* =========================================
   Header
   ========================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(13, 17, 23, 0.88);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid #21262d;
}

.navbar {
    max-width: 1100px;

    margin: 0 auto;

    padding: 18px 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-size: 23px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo span {
    color: #58a6ff;
}

.nav-links {
    display: flex;

    gap: 30px;
}

.nav-links a {
    color: #8b949e;

    font-size: 14px;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #58a6ff;
}

.theme-toggle {
    border: 0;

    background: transparent;

    color: #e6edf3;

    cursor: pointer;

    font-size: 18px;
}


/* =========================================
   Hero
   ========================================= */

.hero {
    min-height: 100vh;

    max-width: 1100px;

    margin: 0 auto;

    padding: 180px 24px 100px;

    display: flex;

    align-items: center;
}

.hero-content {
    max-width: 850px;
}

.hero-label {
    color: #58a6ff;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2.5px;

    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(50px, 8vw, 88px);

    line-height: 1;

    letter-spacing: -5px;

    margin-bottom: 30px;
}

.hero h1 span {
    display: block;

    color: #58a6ff;
}

.hero h2 {
    max-width: 750px;

    color: #c9d1d9;

    font-size: clamp(25px, 4vw, 42px);

    line-height: 1.2;

    font-weight: 500;

    margin-bottom: 28px;
}

.hero-description {
    max-width: 720px;

    color: #8b949e;

    font-size: 18px;

    margin-bottom: 35px;
}

.hero-location {
    margin-top: 30px;

    color: #6e7681;

    font-size: 13px;
}

.hero-location span {
    margin: 0 8px;

    color: #30363d;
}


/* =========================================
   Buttons
   ========================================= */

.hero-buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.button {
    display: inline-block;

    padding: 13px 23px;

    border-radius: 6px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);

    opacity: 0.9;
}

.button.primary {
    background: #238636;

    color: white;
}

.button.secondary {
    border: 1px solid #30363d;

    color: #e6edf3;
}


/* =========================================
   Sections
   ========================================= */

.section {
    max-width: 1100px;

    margin: 0 auto;

    padding: 110px 24px;
}

.section-alt {
    max-width: none;

    padding-left: max(24px, calc((100vw - 1052px) / 2));

    padding-right: max(24px, calc((100vw - 1052px) / 2));

    background: #10161e;
}

.section-title {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 55px;
}

.section-title span {
    color: #58a6ff;

    font-family: monospace;

    font-size: 15px;
}

.section-title h2 {
    font-size: 35px;

    letter-spacing: -1px;
}


/* =========================================
   About
   ========================================= */

.about-content {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 70px;

    align-items: start;
}

.about-text p {
    color: #8b949e;

    font-size: 17px;

    margin-bottom: 22px;
}

.about-card {
    padding: 35px;

    border: 1px solid #30363d;

    border-radius: 10px;

    background: #0d1117;
}

.card-icon {
    color: #58a6ff;

    font-size: 36px;

    font-family: monospace;

    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 20px;

    font-size: 22px;
}

.about-card ul {
    list-style: none;
}

.about-card li {
    color: #8b949e;

    padding: 7px 0;

    border-bottom: 1px solid #21262d;
}

.about-card li:last-child {
    border-bottom: 0;
}


/* =========================================
   Skills
   ========================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.skill-card {
    padding: 30px;

    min-height: 230px;

    border: 1px solid #30363d;

    border-radius: 9px;

    background: #0d1117;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);

    border-color: #58a6ff;
}

.skill-number {
    color: #58a6ff;

    font-family: monospace;

    font-size: 13px;

    margin-bottom: 25px;
}

.skill-card h3 {
    font-size: 21px;

    margin-bottom: 20px;
}

.skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.skill-tags span {
    padding: 5px 9px;

    border-radius: 4px;

    background: #21262d;

    color: #8b949e;

    font-size: 12px;
}


/* =========================================
   Experience
   ========================================= */

.timeline {
    max-width: 900px;

    border-left: 1px solid #30363d;

    padding-left: 40px;
}

.timeline-item {
    position: relative;

    margin-bottom: 70px;
}

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

.timeline-item::before {
    content: "";

    position: absolute;

    width: 11px;

    height: 11px;

    border-radius: 50%;

    background: #58a6ff;

    left: -46px;

    top: 7px;
}

.timeline-date {
    color: #58a6ff;

    font-family: monospace;

    font-size: 14px;

    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 25px;

    margin-bottom: 2px;
}

.timeline-content h4 {
    color: #8b949e;

    font-size: 16px;

    font-weight: 500;

    margin-bottom: 20px;
}

.timeline-content > p {
    color: #8b949e;

    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    color: #8b949e;

    margin-bottom: 9px;

    padding-left: 4px;
}

.timeline-content li::marker {
    color: #58a6ff;
}


/* =========================================
   Education
   ========================================= */

.education-card {
    max-width: 850px;

    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 30px;

    padding: 35px;

    border: 1px solid #30363d;

    border-radius: 10px;

    background: #0d1117;
}

.education-year {
    color: #58a6ff;

    font-family: monospace;

    font-size: 14px;
}

.education-card h3 {
    font-size: 23px;

    margin-bottom: 10px;
}

.education-card p {
    color: #8b949e;
}


/* =========================================
   Languages
   ========================================= */

.languages-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.language {
    padding: 25px;

    border: 1px solid #30363d;

    border-radius: 8px;

    background: #10161e;
}

.language strong {
    display: block;

    font-size: 18px;

    margin-bottom: 5px;
}

.language span {
    color: #8b949e;

    font-size: 14px;
}


/* =========================================
   Contact
   ========================================= */

.contact-section {
    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.contact-content {
    max-width: 700px;
}

.contact-content h2 {
    font-size: clamp(42px, 7vw, 70px);

    letter-spacing: -3px;

    margin-bottom: 20px;
}

.contact-content > p:not(.hero-label) {
    color: #8b949e;

    font-size: 17px;

    margin-bottom: 30px;
}

.contact-buttons {
    margin-bottom: 35px;
}

.social-links {
    display: flex;

    justify-content: center;

    gap: 30px;

    margin-bottom: 20px;
}

.social-links a {
    color: #8b949e;

    font-weight: 600;

    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #58a6ff;
}

.contact-email {
    color: #6e7681;

    font-size: 14px;
}


/* =========================================
   Footer
   ========================================= */

.footer {
    padding: 30px 24px;

    text-align: center;

    border-top: 1px solid #21262d;

    color: #6e7681;

    font-size: 13px;
}


/* =========================================
   Light Theme
   ========================================= */

body.light {
    background: #ffffff;

    color: #24292f;
}

body.light .header {
    background: rgba(255, 255, 255, 0.9);

    border-bottom-color: #d0d7de;
}

body.light .nav-links a {
    color: #57606a;
}

body.light .nav-links a:hover {
    color: #0969da;
}

body.light .hero h2 {
    color: #424a53;
}

body.light .hero-description,
body.light .about-text p,
body.light .timeline-content > p,
body.light .timeline-content li {
    color: #57606a;
}

body.light .section-alt {
    background: #f6f8fa;
}

body.light .skill-card,
body.light .about-card,
body.light .education-card {
    background: #ffffff;

    border-color: #d0d7de;
}

body.light .skill-tags span {
    background: #f6f8fa;

    color: #57606a;
}

body.light .language {
    background: #ffffff;

    border-color: #d0d7de;
}

body.light .language span,
body.light .contact-content > p:not(.hero-label) {
    color: #57606a;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 850px) {

    .nav-links {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .navbar {
        padding: 15px 18px;
    }

    .hero {
        padding:
            140px 20px
            90px;
    }

    .hero h1 {
        font-size: 50px;

        letter-spacing: -3px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero-location span {
        display: none;
    }

    .hero-location {
        line-height: 2;
    }

    .section {
        padding: 80px 20px;
    }

    .section-alt {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title h2 {
        font-size: 29px;
    }

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

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

    .education-card {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .timeline {
        padding-left: 25px;
    }

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

    .timeline-content h3 {
        font-size: 22px;
    }

    .contact-content h2 {
        letter-spacing: -2px;
    }

}
