:root {
    --bg-dark: #050816;
    --text-main: #eef2ff;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --glass-bg: rgba(15, 23, 42, 0.58);
    --glass-border: rgba(148, 163, 184, 0.16);
    --shadow-lg: 0 25px 80px rgba(2, 8, 23, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.background-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top, #101633 0%, #050816 52%, #02040a 100%);
}

.mesh-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(110px);
    opacity: 0.55;
    animation: float 18s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -8%;
    width: 32rem;
    height: 32rem;
    background: rgba(56, 189, 248, 0.25);
}

.blob-2 {
    right: -12%;
    bottom: -12%;
    width: 38rem;
    height: 38rem;
    background: rgba(124, 58, 237, 0.22);
    animation-delay: -4s;
}

.blob-3 {
    top: 38%;
    left: 38%;
    width: 26rem;
    height: 26rem;
    background: rgba(14, 165, 233, 0.18);
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(90px, 48px, 0) scale(1.08);
    }
}

.accent {
    color: var(--accent);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1180px;
    z-index: 100;
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-scrolled {
    transform: translateX(-50%) translateY(-4px);
    background: rgba(7, 13, 28, 0.82);
    border-color: rgba(56, 189, 248, 0.24);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

main {
    padding: 7rem 0 4rem;
}

.section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0;
    scroll-margin-top: 6.5rem;
}

.section-heading {
    margin-bottom: 2.25rem;
}

.section-kicker {
    margin-bottom: 0.85rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
}

.hero {
    width: min(1180px, calc(100% - 2rem));
    min-height: calc(100vh - 7rem);
    margin: 0 auto;
    padding: 4rem 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: center;
    scroll-margin-top: 6.5rem;
}

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

.eyebrow {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.name {
    margin-bottom: 1rem;
    font-size: clamp(3rem, 8vw, 5.8rem);
    line-height: 0.95;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #d6e4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    margin-bottom: 1.25rem;
    max-width: 14ch;
    color: #d8e5ff;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
}

.summary {
    max-width: 62ch;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    color: #05101c;
    box-shadow: 0 14px 32px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.32);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    margin-bottom: 1.75rem;
}

.hero-stats li {
    min-height: 104px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-stats span {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stats small {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.social-links a {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.05rem;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.hero-panel {
    padding: 1.75rem;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-block {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.panel-block:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.panel-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.panel-block strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.25rem;
}

.panel-block p {
    color: var(--text-muted);
}

.compact-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: var(--text-muted);
}

.compact-list li,
.detail-list li {
    position: relative;
    padding-left: 1.25rem;
}

.compact-list li::before,
.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
}

.panel-link {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    word-break: break-word;
}

.panel-link:last-child {
    margin-bottom: 0;
}

.panel-link:hover {
    color: var(--text-main);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
}

.about-copy {
    padding: 2rem;
    border-radius: 24px;
    color: var(--text-muted);
    font-size: 1.04rem;
}

.about-copy p + p {
    margin-top: 1rem;
}

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

.fact-card {
    min-height: 180px;
    padding: 1.35rem;
    border-radius: 22px;
}

.fact-card h3 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 1.05rem;
}

.fact-card p {
    margin-bottom: 0.65rem;
    color: #e2e8f0;
    font-weight: 600;
    line-height: 1.5;
}

.fact-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline {
    position: relative;
    display: grid;
    gap: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.05rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.25), rgba(124, 58, 237, 0.05));
}

.timeline-item {
    position: relative;
    padding-left: 3.2rem;
}

.timeline-dot {
    position: absolute;
    left: 0.55rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0.35rem rgba(56, 189, 248, 0.16), 0 0 20px rgba(56, 189, 248, 0.35);
}

.timeline-content {
    padding: 1.75rem;
    border-radius: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.25);
}

.timeline-content h3 {
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
}

.timeline-content h4 {
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
}

.timeline-meta {
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-weight: 600;
}

.detail-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    color: var(--text-muted);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin-top: 1.5rem;
}

.tech-tags li {
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #dbeafe;
    font-size: 0.85rem;
}

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

.skill-card {
    padding: 1.6rem;
    border-radius: 24px;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.project-card {
    min-height: 100%;
    padding: 1.6rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 28px 60px rgba(2, 8, 23, 0.55);
}

.project-meta {
    margin-bottom: 0.9rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.project-card > p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.project-points {
    margin-top: 0.5rem;
}

.contact-card {
    padding: 2.2rem;
    border-radius: 30px;
    text-align: center;
}

.contact-card .section-title {
    margin-bottom: 1rem;
}

.contact-text {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    color: var(--text-muted);
    font-size: 1.04rem;
}

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

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.contact-link i {
    color: var(--accent);
}

@media (max-width: 1100px) {
    .hero {
        min-height: auto;
        padding-top: 3rem;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
    }

    .title {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .nav-content {
        padding: 0.9rem 1rem;
    }

    .nav-links {
        gap: 0.9rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .about-grid,
    .skill-grid,
    .project-grid,
    .contact-links {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .navbar {
        top: 0.75rem;
        width: calc(100% - 1rem);
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    main {
        padding-top: 8.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 1rem;
    }

    .hero-stats,
    .fact-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .about-copy,
    .timeline-content,
    .skill-card,
    .project-card,
    .contact-card {
        padding: 1.35rem;
    }

    .timeline::before {
        left: 0.6rem;
    }

    .timeline-item {
        padding-left: 2.4rem;
    }

    .timeline-dot {
        left: 0.1rem;
    }
}

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

    .btn {
        width: 100%;
    }

    .contact-link {
        justify-content: flex-start;
    }

    .name {
        font-size: clamp(2.6rem, 16vw, 4rem);
    }
}
