:root {
    --ink: #101018;
    --ink-soft: #5f6070;
    --paper: #fbfaf8;
    --paper-alt: #f4f1ee;
    --white: #ffffff;
    --line: #dedbe2;
    --blue: #174dff;
    --purple: #8a42ed;
    --pink: #e96980;
    --accent-soft: #eee7ff;
    --dark: #12111a;
    --dark-soft: #1a1824;
    --shadow: 0 18px 60px rgba(24, 19, 45, 0.10);
    --shadow-hover: 0 24px 70px rgba(41, 28, 80, 0.16);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Onest', 'Lato', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(50px, 7vw, 88px);
    line-height: 0.98;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
}

h3 {
    font-size: 24px;
    line-height: 1.2;
}

h4 {
    font-size: 26px;
    line-height: 1.2;
}

p,
li {
    font-size: 16px;
    line-height: 1.7;
}

a,
a:visited {
    color: inherit;
    text-decoration: none !important;
}

img {
    max-width: 100%;
}

.green-text {
    color: var(--purple);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--purple);
}

.eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
}

/* Navbar */
.navbar {
    min-height: 70px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: rgba(251, 250, 248, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(16, 16, 24, 0.08);
}

.navbar-inner {
    width: min(1180px, calc(100% - 48px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar-menu {
    width: auto;
    height: auto;
    padding: 0;
}

#navbar-ul {
    display: flex;
    align-items: center;
    max-height: none;
    margin: 0;
}

.navbar-nav > li {
    padding: 0;
}

.navbar-nav > li > a,
.navbar-inverse .navbar-nav > li > a {
    padding: 25px 16px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease;
}

.navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:hover {
    color: var(--ink);
    background: transparent;
}

/* Hero */
.about {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 18%, rgba(138, 66, 237, .18), transparent 28%),
        radial-gradient(circle at 75% 48%, rgba(23, 77, 255, .11), transparent 27%),
        var(--paper);
}

.about::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    left: -270px;
    bottom: -250px;
    border: 1px solid rgba(138, 66, 237, 0.12);
    border-radius: 50%;
}

#aboutMe {
    position: relative;
    z-index: 1;
    padding: 150px 24px 90px;
}

.hero-grid {
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 70px;
    align-items: center;
}

.hero-copy {
    max-width: 690px;
}

.greeting {
    color: var(--ink);
    text-decoration: none;
}

.typed-cursor {
    color: var(--purple);
    font-weight: 400;
}

#name {
    max-width: 660px;
    margin-bottom: 26px;
}

.hero-lead {
    max-width: 630px;
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.45;
    color: #2e2d38;
}

.hero-subcopy {
    max-width: 610px;
    margin-bottom: 32px;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

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

.button-primary {
    color: var(--white) !important;
    background: var(--ink);
    box-shadow: 0 10px 24px rgba(16, 16, 24, .16);
}

.button-primary:hover {
    color: var(--white) !important;
    background: #292733;
}

.button-secondary {
    color: var(--ink) !important;
    background: rgba(255, 255, 255, .64);
    border-color: rgba(16, 16, 24, .14);
}

.button-secondary:hover {
    border-color: var(--purple);
    background: var(--white);
}

.button_icon {
    display: inline-flex;
    margin-left: 7px;
    font-size: 18px;
}

#contact-button {
    margin: 0;
}

.hero-visual {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-wrap {
    position: relative;
    width: min(390px, 85%);
    aspect-ratio: 1 / 1.08;
    padding: 12px;
    border-radius: 34px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(16, 16, 24, .08);
    box-shadow: var(--shadow);
}

#mePic {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.portrait-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .9;
}

.portrait-glow-one {
    width: 150px;
    height: 150px;
    right: -35px;
    top: -25px;
    background: linear-gradient(135deg, rgba(23, 77, 255, .85), rgba(138, 66, 237, .35));
}

.portrait-glow-two {
    width: 120px;
    height: 120px;
    left: -25px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(233, 105, 128, .55), rgba(138, 66, 237, .35));
}

.mini-card {
    position: absolute;
    z-index: 3;
    min-width: 185px;
    padding: 14px 16px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(16, 16, 24, .08);
    box-shadow: 0 12px 35px rgba(29, 22, 54, .12);
}

.mini-card small,
.mini-card strong {
    display: block;
}

.mini-card small {
    margin-bottom: 2px;
    color: var(--ink-soft);
    font-size: 11px;
}

.mini-card strong {
    font-size: 13px;
}

.mini-card i {
    color: var(--purple);
    font-size: 24px;
}

.mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(23, 77, 255, .09);
}

.mini-card-top {
    top: 38px;
    right: -6px;
}

.mini-card-bottom {
    bottom: 36px;
    left: -10px;
}

/* Section headings */
.section-heading {
    max-width: 660px;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin-bottom: 15px;
}

.section-heading p {
    color: var(--ink-soft);
    font-size: 18px;
}

.section-heading-light h2,
.section-heading-light p {
    color: var(--white);
}

.section-heading-light p {
    color: rgba(255, 255, 255, .64);
}

/* Projects */
.projects {
    background: var(--paper-alt);
    border-top: 1px solid rgba(16, 16, 24, .06);
}

#projects {
    padding: 100px 24px 110px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
    padding: 0;
}

.projects-content {
    position: relative;
    min-height: 390px;
    padding: 30px 28px 86px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(16, 16, 24, .08);
    box-shadow: 0 6px 25px rgba(30, 25, 45, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.projects-content:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 66, 237, .26);
    box-shadow: var(--shadow-hover);
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.projects-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 25px;
    color: var(--purple);
    background: var(--accent-soft);
}

.project-number {
    color: #a09eaa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.projects_title {
    min-height: 58px;
    margin-bottom: 14px;
}

.project-summary {
    margin-bottom: 24px;
    color: var(--ink-soft);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f4f2f7;
    color: #52505d;
    font-size: 12px;
    font-weight: 600;
}

.projects-button {
    position: absolute;
    left: 28px !important;
    bottom: 28px;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink) !important;
    font-size: 14px;
    box-shadow: none;
}

.projects-button:hover {
    cursor: pointer;
    transform: none;
    color: var(--purple) !important;
}

.projects-info {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 16, 24, .68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.projects-info-content {
    position: relative;
    width: min(650px, 100%);
    max-height: 80vh;
    overflow-y: auto;
    padding: 38px 38px 34px;
    border-radius: 26px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .24);
}

.projects-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f2f7;
    color: var(--ink);
    font-size: 23px;
    cursor: pointer;
}

.projects-info-title {
    max-width: 500px;
    margin-bottom: 24px;
    padding: 0;
    text-decoration: none;
}

.github-button {
    margin-top: 12px;
    background: var(--ink);
    color: var(--white) !important;
}

.active-info {
    opacity: 1;
    visibility: visible;
}

/* Experience */
.experience {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 15%, rgba(138, 66, 237, .23), transparent 28%),
        radial-gradient(circle at 4% 72%, rgba(23, 77, 255, .16), transparent 25%),
        var(--dark);
}

#experience {
    width: min(1180px, 100%);
    max-width: 1180px;
    padding: 105px 24px 115px;
}

.experience-list {
    display: grid;
    gap: 16px;
}

.row-experience {
    width: 100%;
    margin: 0;
    padding: 30px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .055);
    box-shadow: none;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.row-experience:hover {
    transform: translateY(-3px);
    border-color: rgba(138, 66, 237, .48);
    background: rgba(255, 255, 255, .075);
    box-shadow: none;
}

.experience-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.company-mark {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--purple) 58%, var(--pink));
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.03em;
    box-shadow: 0 10px 28px rgba(138, 66, 237, .2);
}

.experience-date,
.experience-location {
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
    font-weight: 500;
}

.experience-text {
    margin: 0;
}

.experience-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.experience-heading h3 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 24px;
}

.experience-title {
    margin-bottom: 15px;
    padding: 0;
    line-height: 1.02;
}

.subtitle {
    color: #c9a9ff;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.experience-text ul {
    margin: 0;
    padding-left: 18px;
}

.experience-text li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .72);
}

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

.last-row {
    padding-bottom: 30px;
}

/* Contact */
.contact {
    padding: 95px 0 24px;
    background: var(--paper);
}

.contact-inner {
    padding-left: 24px;
    padding-right: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: end;
}

.contact-inner h2 {
    max-width: 620px;
    margin-bottom: 15px;
}

.contact-inner p {
    max-width: 570px;
    color: var(--ink-soft);
    font-size: 18px;
}

.contact-actions {
    min-width: 260px;
    display: grid;
}

.contact-link {
    padding: 15px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    transition: color .2s ease, padding .2s ease;
}

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

.contact-link:hover {
    padding-left: 8px;
    background: transparent;
    color: var(--purple);
}

.footer-row {
    margin-top: 78px;
    padding: 22px 24px 0;
    border-top: 1px solid var(--line);
}

.copyright {
    margin: 0;
    text-align: left;
    color: #8f8d98;
    font-size: 12px;
}

/* Typed.js Cursor */
.typed-cursor {
    opacity: 1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        min-height: 430px;
        justify-content: flex-start;
        padding-left: 40px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .projects-content {
        min-height: 300px;
    }

    .row-experience {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .contact-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .contact-actions {
        width: min(440px, 100%);
    }
}

@media (max-width: 767px) {
    .navbar {
        display: block;
        min-height: 60px;
    }

    .navbar-inner {
        width: calc(100% - 28px);
        min-height: 60px;
    }

    .nav-brand {
        width: 36px;
        height: 36px;
    }

    #navbar-ul {
        display: none;
    }

    #aboutMe {
        padding: 115px 20px 70px;
    }

    .hero-grid {
        min-height: 0;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 40px;
    }

    .hero-lead {
        font-size: 19px;
    }

    .hero-visual {
        min-height: 390px;
        padding-left: 0;
    }

    .portrait-wrap {
        width: min(330px, 84%);
    }

    .mini-card {
        min-width: 165px;
        padding: 12px;
    }

    .mini-card-top {
        right: 0;
    }

    .mini-card-bottom {
        left: 0;
    }

    #projects,
    #experience {
        padding: 78px 20px 85px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .projects-content {
        padding: 26px 24px 78px;
    }

    .projects-button {
        left: 24px !important;
        bottom: 24px;
    }

    .projects-info-content {
        width: 100%;
        padding: 34px 24px 28px;
    }

    .row-experience {
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .experience-side {
        flex-direction: row;
        align-items: center;
    }

    .experience-heading {
        display: block;
    }

    .experience-location {
        display: inline-block;
        margin-top: 7px;
    }

    .contact {
        padding-top: 75px;
    }

    .contact-inner,
    .footer-row {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-row {
        margin-top: 55px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .hero-visual {
        min-height: 355px;
    }

    .mini-card {
        transform: scale(.9);
    }

    .mini-card-top {
        right: -18px;
    }

    .mini-card-bottom {
        left: -18px;
    }
}
