:root {
    --bg: #090f19;
    --surface: #101a2a;
    --surface-soft: #0d1624;
    --ink: #e8edf5;
    --muted: #a6b2c3;
    --line: #223149;
    --brand: #4da3ff;
    --brand-soft: #16253a;
    --accent: #79d2c8;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 15% -10%, #16243a 0%, #090f19 45%, #090f19 100%);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    padding-left: 1.2rem;
}

.container {
    margin: 0 auto;
    max-width: 1150px;
    padding: 0 1.4rem;
}

.bg-orb {
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.bg-orb-one {
    background: radial-gradient(circle, rgba(121, 210, 200, 0.24) 0%, rgba(121, 210, 200, 0.03) 60%, transparent 100%);
    height: 350px;
    right: -90px;
    top: -50px;
    width: 350px;
}

.bg-orb-two {
    background: radial-gradient(circle, rgba(77, 163, 255, 0.22) 0%, rgba(77, 163, 255, 0.03) 60%, transparent 100%);
    bottom: -120px;
    height: 420px;
    left: -120px;
    width: 420px;
}

.topbar {
    backdrop-filter: blur(12px);
    background: rgba(9, 15, 25, 0.82);
    border-bottom: 1px solid rgba(34, 49, 73, 0.88);
    position: sticky;
    top: 0;
    z-index: 200;
}

.topbar-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 74px;
}

.scroll-progress-track {
    background: rgba(34, 49, 73, 0.7);
    height: 3px;
    width: 100%;
}

.scroll-progress-bar {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.08s linear;
    width: 100%;
}

.brand {
    font-family: "DM Serif Display", serif;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
}

.nav {
    align-items: center;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav a::after {
    background: var(--accent);
    border-radius: 999px;
    bottom: -6px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
}

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

.nav a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    background: #dbe5f2;
    border-radius: 3px;
    display: block;
    height: 2px;
    width: 23px;
}

.hero {
    padding: 5rem 1.4rem 3rem;
}

.kicker {
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.1rem, 5vw, 4rem);
    max-width: 900px;
}

.hero-summary {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 1.3rem;
    max-width: 780px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.78rem 1.4rem;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5) !important;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-primary {
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(77, 163, 255, 0.3);
    color: #08101c;
}

.btn-primary:hover {
    box-shadow: 0 16px 40px rgba(77, 163, 255, 0.5);
}

.btn-secondary {
    background: var(--surface);
    border: 2px solid var(--accent);
    color: #dfe6f1;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
    background: rgba(121, 210, 200, 0.1);
    border-color: var(--brand);
    box-shadow: 0 16px 32px rgba(121, 210, 200, 0.2);
}

.section {
    padding: 4.8rem 0;
    position: relative;
    border-top: 1px solid rgba(34, 49, 73, 0.3);
}

.section-tag {
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

section h2 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    margin-bottom: 1rem;
}

section p {
    color: var(--muted);
}

.two-col {
    align-items: start;
    display: grid;
    gap: 1.6rem 2.4rem;
    grid-template-columns: 0.95fr 1.05fr;
}

.skills-grid,
.projects-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.4rem;
}

.skills-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.4rem;
}

.skills-list-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
}

.skills-list-item h3 {
    color: var(--ink);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.skills-list-item p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.skills-details-hidden {
    display: none;
}

.skills-snapshot {
    margin-top: 2rem;
}

.snapshot-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.snapshot-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-category {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.1rem;
}

.skill-category h4 {
    color: #dfe8f6;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}
.expertise-accordion .skill-category {
    padding: 0;
    overflow: hidden;
}

.skill-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    text-align: left;
    width: 100%;
}

.skill-toggle h4 {
    margin-bottom: 0;
}

.skill-chevron {
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    display: inline-block;
    height: 9px;
    margin-left: 0.8rem;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    width: 9px;
}

.skill-accordion-item.open .skill-chevron {
    transform: rotate(225deg);
}

.skill-panel {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.skill-panel-inner {
    padding: 0 1.1rem 1rem;
}

.skill-accordion-item.open .skill-panel {
    opacity: 1;
}

.skill-accordion-item .skill-toggle:hover,
.skill-accordion-item .skill-toggle:focus-visible {
    background: rgba(24, 40, 65, 0.6);
    outline: none;
}

.skill-items {
    display: grid;
    gap: 0.75rem;
}

.skill-item {
    background: rgba(13, 22, 36, 0.85);
    border: 1px solid rgba(34, 49, 73, 0.85);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
}

.skill-name {
    color: #d3deef;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.skill-bar {
    background: #1d2c43;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.skill-bar .fill {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 999px;
    height: 100%;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.3rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(121, 210, 200, 0.4);
    box-shadow: 0 24px 48px rgba(77, 163, 255, 0.15), 0 0 40px rgba(121, 210, 200, 0.08);
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
}

.card ul li,
.timeline-item ul li,
.panel ul li {
    color: var(--muted);
    margin-bottom: 0.38rem;
}

.project {
    background: linear-gradient(180deg, #121f32 0%, #0f1828 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.1), rgba(121, 210, 200, 0.05));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.project:hover .project-image {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.15), rgba(121, 210, 200, 0.1));
}

.project-image svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-placeholder {
    color: rgba(77, 163, 255, 0.65);
    font-size: 1rem;
    font-weight: 800;
    padding: 1rem;
    text-align: center;
}

.project-image-carousel {
    height: 260px;
    padding: 0;
}

.project-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    background: #0b1422;
    padding: 0.4rem;
    border-radius: 8px;
    border: 1px solid rgba(77, 163, 255, 0.28);
    cursor: zoom-in;
}

.project-carousel-slide.active {
    display: block;
}

.project-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(77, 163, 255, 0.45);
    background: rgba(7, 13, 23, 0.78);
    color: #d8e6fb;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.project-carousel-btn.prev {
    left: 0.6rem;
}

.project-carousel-btn.next {
    right: 0.6rem;
}

.project-carousel-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(7, 13, 23, 0.94);
}

.project:hover .project-image svg {
    opacity: 0.95;
}

.project-content {
    padding: 1.3rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-subtitle {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.project-tech span {
    background: #182841;
    border: 1px solid #2a4164;
    border-radius: 999px;
    color: #bcd6f7;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.62rem;
    transition: all 0.2s ease;
}

.project-tech span:hover {
    background: #1f3557;
    border-color: var(--brand);
    color: #e0ecff;
}

.project-links {
    display: flex;
    gap: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #d8e6fb;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.1), rgba(121, 210, 200, 0.05));
    border: 1px solid rgba(77, 163, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.2), rgba(121, 210, 200, 0.1));
    transition: left 0.3s ease;
    z-index: -1;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(121, 210, 200, 0.15);
}

.project-link-demo {
    background: linear-gradient(135deg, rgba(255, 154, 77, 0.1), rgba(121, 210, 200, 0.05));
    border-color: rgba(255, 154, 77, 0.3);
}

.project-link-demo:hover {
    border-color: #ff9a4d;
    color: #ff9a4d;
}

.experience-skills {
    margin-top: 0.75rem;
}

.experience-skills-title {
    color: #c8d9f0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.experience-tech span {
    background: #182841;
    border: 1px solid #2a4164;
    border-radius: 999px;
    color: #bdd7f9;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.58rem;
}

.timeline-wrap {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: 0.9fr 1.1fr;
}

.timeline {
    border-left: 3px solid var(--brand);
    display: grid;
    gap: 1.5rem;
    padding-left: 1.8rem;
    position: relative;
}

.timeline-vertical {
    border-left: 3px solid var(--brand);
}

.timeline::before {
    content: '';
    position: absolute;
    left: -6.5px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--surface);
}

.timeline-item {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.05rem;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--surface);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(4px);
    border-color: rgba(121, 210, 200, 0.3);
    box-shadow: 0 12px 32px rgba(121, 210, 200, 0.1);
}

.timeline-item:hover::before {
    left: -2.15rem;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 4px rgba(121, 210, 200, 0.2);
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--surface);
}

.period {
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.split-panels {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.3rem;
}

.contact {
    text-align: center;
}

.contact .btn {
    margin-top: 1.3rem;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    padding: 1.5rem 0 2rem;
    text-align: center;
}

.footer-links {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
    text-align: left;
}

.footer-link {
    align-items: center;
    background: rgba(16, 26, 42, 0.75);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #cfdbeb;
    display: flex;
    font-size: 0.85rem;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.48rem 0.65rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-link svg {
    fill: var(--brand);
    flex: 0 0 15px;
    height: 15px;
    width: 15px;
    transition: all 0.3s ease;
}

.footer-link span {
    overflow-wrap: anywhere;
}

.footer-link:not(.footer-location):hover {
    border-color: var(--accent);
    color: #e6eefb;
    background: rgba(121, 210, 200, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(121, 210, 200, 0.1);
}

.footer-link:not(.footer-location):hover svg {
    fill: var(--accent);
}

.footer-link:not(.footer-location):hover {
    border-color: #365177;
    color: #e6eefb;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
}

.image-lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(121, 210, 200, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    background: #0b1422;
}

.lightbox-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(121, 210, 200, 0.45);
    background: rgba(7, 13, 23, 0.86);
    color: #e7eef9;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 980px) {
    .two-col,
    .timeline-wrap,
    .split-panels,
    .skills-grid,
    .projects-grid,
    .snapshot-grid,
    .footer-links,
    .skills-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .project-image-carousel {
        height: 230px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        background: rgba(12, 20, 34, 0.97);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        gap: 0.9rem;
        padding: 1rem;
        position: absolute;
        right: 1.4rem;
        top: 65px;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        padding-top: 3.8rem;
    }
}
