:root {
    --bg: #030814;
    --bg-alt: #0d1529;
    --surface: rgba(8, 14, 27, 0.9);
    --surface-alt: rgba(16, 24, 42, 0.85);
    --accent: #60a5fa;
    --accent-strong: #8b5cf6;
    --accent-soft: rgba(96, 165, 250, 0.18);
    --text: #f4f7ff;
    --text-dim: #9fb0d1;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 80px -45px rgba(6, 12, 28, 0.85);
    --font-sans: "Poppins", "Segoe UI", sans-serif;
    --font-display: "Montserrat", "Poppins", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.28), transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.32), transparent 55%),
        linear-gradient(180deg, #02060f 0%, #040917 45%, #02050c 100%);
    background-attachment: fixed;
    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

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

p {
    margin: 0 0 1.2rem;
    color: rgba(227, 234, 251, 0.76);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    margin: 0 0 1rem;
    color: var(--text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 1.1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 8, 20, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--accent), var(--accent-strong));
    color: #050910;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 22px 46px -26px rgba(96, 165, 250, 0.7);
}

.brand-text {
    letter-spacing: 0.08em;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.6rem;
    padding: 0;
    margin: 0;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dim);
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.6rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 0.25s ease;
}

.nav-link:focus,
.nav-link:hover {
    color: var(--text);
}

.nav-link:focus::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
}

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

.hub-link:hover,
.hub-link:focus {
    color: var(--accent-strong);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 6, 14, 0.9), rgba(3, 6, 15, 0.92)),
        url("assets/1.jfif") center/cover no-repeat;
    filter: saturate(1.05);
    transform: scale(1.1);
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.55), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.4), transparent 50%);
    mix-blend-mode: color-dodge;
}

.hero-content {
    position: relative;
    padding: 7rem 0;
}

.hero .eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 0.82rem;
    color: rgba(244, 247, 255, 0.7);
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1.1rem;
}

.hero-text {
    max-width: 540px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #050910;
    box-shadow: 0 20px 40px -20px rgba(96, 165, 250, 0.6);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px -22px rgba(96, 165, 250, 0.72);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.2rem;
    background: rgba(10, 17, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(244, 247, 255, 0.85);
    backdrop-filter: blur(12px);
}

.meta-item i {
    color: var(--accent);
}

.about-grid {
    display: grid;
    gap: 3.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.about-media {
    position: relative;
}

.profile-img {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px -28px rgba(5, 9, 17, 0.9);
}

.about-card {
    position: absolute;
    bottom: -2.5rem;
    left: 1.2rem;
    width: min(320px, 85%);
    padding: 1.6rem;
    border-radius: 18px;
    background: rgba(10, 18, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px -28px rgba(4, 9, 18, 0.85);
}

.card-eyebrow {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: rgba(244, 247, 255, 0.55);
}

.about-content h2 {
    font-size: clamp(2.1rem, 3.2vw, 2.7rem);
    margin-bottom: 1.4rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
    margin-top: 2.4rem;
}

.stat-card {
    padding: 1.6rem;
    border-radius: 18px;
    background: rgba(12, 20, 34, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: var(--accent);
}

.skills h2 {
    font-size: clamp(2.2rem, 3.4vw, 2.8rem);
}

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

.skill-card {
    background: rgba(10, 18, 30, 0.92);
    border-radius: 22px;
    padding: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 36px -30px rgba(0, 0, 0, 0.8);
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.2rem;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: rgba(244, 247, 255, 0.88);
}

.skill-bar {
    margin-top: 0.6rem;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 1s ease;
}

.chip-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 24, 40, 0.72);
    font-size: 0.88rem;
    color: rgba(227, 234, 251, 0.88);
}

.experience {
    background: linear-gradient(180deg, rgba(6, 11, 20, 0.96), rgba(6, 11, 20, 0.92));
}

.experience h2 {
    font-size: clamp(2.2rem, 3.3vw, 2.8rem);
}

.timeline {
    margin-top: 3rem;
    display: grid;
    gap: 1.8rem;
}

.timeline-card {
    position: relative;
    padding: 2.2rem;
    border-radius: 22px;
    background: rgba(12, 20, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -35px rgba(0, 0, 0, 0.85);
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(244, 247, 255, 0.7);
    font-size: 0.92rem;
}

.timeline-card h3 {
    margin-left: 1.5rem;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.timeline-card ul {
    margin: 0;
    padding-left: 2.2rem;
    color: rgba(227, 234, 251, 0.76);
}

.timeline-card li {
    margin-bottom: 0.75rem;
}

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

.projects h2 {
    font-size: clamp(2.2rem, 3.2vw, 2.9rem);
}

.projects-grid {
    margin-top: 2.6rem;
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    padding: 2rem;
    border-radius: 22px;
    background: rgba(10, 18, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.35);
}

.project-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.project-meta {
    font-size: 0.85rem;
    color: rgba(149, 172, 207, 0.85);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.project-tags span {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    color: rgba(227, 234, 251, 0.86);
    font-size: 0.82rem;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.languages h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.languages-grid {
    margin-top: 2.6rem;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.language-card {
    padding: 1.8rem;
    border-radius: 20px;
    background: rgba(12, 20, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 1.1rem;
}

.language-card p {
    margin: 0;
    color: rgba(227, 234, 251, 0.7);
}

.language-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.language-progress {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 1s ease;
}

.contact {
    background: linear-gradient(180deg, rgba(17, 27, 45, 0.92), rgba(6, 11, 20, 0.98));
}

.contact-grid {
    display: grid;
    gap: 2.6rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.contact-content h2 {
    font-size: clamp(2.1rem, 3.1vw, 2.6rem);
}

.contact-details {
    margin: 2rem 0;
    display: grid;
    gap: 0.8rem;
    color: rgba(227, 234, 251, 0.78);
}

.contact-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

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

.social-links {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(12, 20, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    transition: all 0.25s ease;
}

.social-links a:hover,
.social-links a:focus {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    color: var(--accent);
}

.contact-card {
    padding: 2.2rem;
    border-radius: 20px;
    background: rgba(10, 18, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -36px rgba(0, 0, 0, 0.8);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.site-footer {
    background: rgba(3, 6, 14, 0.98);
    padding: 3.5rem 0 2.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    gap: 2.2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-text {
    color: rgba(227, 234, 251, 0.68);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(227, 234, 251, 0.7);
    font-size: 0.92rem;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
}

.footer-meta {
    display: flex;
    align-items: flex-end;
    color: rgba(227, 234, 251, 0.45);
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: clamp(240px, 70vw, 320px);
        flex-direction: column;
        padding: 6rem 2.5rem;
        background: rgba(6, 11, 20, 0.96);
        backdrop-filter: blur(26px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: block;
    }

    .about-card {
        position: static;
        margin-top: 2.2rem;
        width: 100%;
    }

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

@media (max-width: 720px) {
    .section {
        padding: 5rem 0;
    }

    .hero-content {
        padding: 5.2rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .timeline-card {
        padding: 1.8rem;
    }

    .project-card {
        padding: 1.8rem;
    }
}

@media (max-width: 520px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
