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

:root {
    --bg: #08090d;
    --surface: #101218;
    --surface2: #151821;
    --text: #f4f5f7;
    --muted: #a5a9b5;
    --line: rgba(255, 255, 255, .09);
    --accent: #8b5cf6;
    --accent2: #6d4aff
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    font-family: "Vazirmatn",
    Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden
}

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 9, 13, .72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: .3s
}

.header.scrolled {
    border-color: var(--line);
    background: rgba(8, 9, 13, .9)
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px
}

.logo span {
    color: #fff
}

.logo small {
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 3px
}

.nav-links {
    display: flex;
    gap: 28px;
    color: #b7bac5;
    font-size: 14px
}

.nav-links a {
    transition: .2s
}

.nav-links a:hover, .nav-links a.active {
    color: #fff
}

.nav-cta {
    border: 1px solid var(--line);
    padding: 8px 15px;
    border-radius: 9px;
    font-size: 13px
}

.nav-cta span {
    color: var(--accent)
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    width: 35px
}

.menu-btn span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 6px 0
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 130px 0 80px;
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns:1.15fr .85fr;
    gap: 70px;
    align-items: center
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .2;
    pointer-events: none
}

.glow-1 {
    width: 420px;
    height: 420px;
    background: #6d28d9;
    top: 10%;
    right: -150px
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: #2563eb;
    bottom: -100px;
    left: -120px
}

.eyebrow, .section-number {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 15px #8b5cf6
}

.hero h1 {
    font-size: clamp(42px, 6vw, 63px);
    line-height: 1.25;
    letter-spacing: -2px;
    margin-bottom: 20px
}

.hero h1 strong {
    background: linear-gradient(100deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    color: transparent
}

.hero-text {
    max-width: 610px;
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 28px
}

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

.btn {
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    transition: .25s
}

.btn-primary {
    background: #fff;
    color: #090a0e
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, .12)
}

.btn-outline {
    border: 1px solid var(--line);
    color: #ddd
}

.btn-outline:hover {
    border-color: #555;
    transform: translateY(-3px)
}

.hero-stats {
    display: flex;
    gap: 38px;
    margin-top: 55px
}

.hero-stats div {
    display: flex;
    flex-direction: column
}

.hero-stats strong {
    font-size: 24px
}

.hero-stats span {
    font-size: 11px;
    color: var(--muted)
}

.hero-card {
    background: linear-gradient(145deg, rgba(27, 30, 40, .9), rgba(13, 14, 19, .9));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    transform: rotate(2deg)
}

.card-top {
    font-size: 10px;
    color: #9297a4;
    display: flex;
    gap: 7px;
    align-items: center
}

.status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(70%);
}

.hero-card h2 {
    text-align: center;
    font-size: 22px
}

.hero-card > p {
    text-align: center;
    color: var(--muted);
    font-size: 12px
}

.code-window {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #0a0b0f
}

.code-head {
    height: 31px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
    font-size: 9px;
    color: #6e7280
}

.code-head i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b3d44
}

.code-head span {
    margin-right: auto
}

.code-window pre {
    padding: 18px;
    font: 11px/2 monospace;
    color: #c9cbd2;
    direction: ltr;
    text-align: left
}

.purple {
    color: #c084fc
}

.green {
    color: #86efac
}

.section {
    padding: 120px 0;
    border-top: 1px solid var(--line)
}

.two-col {
    display: grid;
    grid-template-columns:.8fr 1.2fr;
    gap: 80px
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.4;
    margin-top: 12px;
    letter-spacing: -1px
}

.section-heading h2 span {
    color: #858995
}

.about-text p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 18px
}

.info-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px;
    margin-top: 30px
}

.info-grid div {
    border-top: 1px solid var(--line);
    padding-top: 12px
}

.info-grid span {
    display: block;
    font-size: 11px;
    color: #777c89
}

.info-grid b {
    font-size: 13px;
    font-weight: 500
}

.center {
    text-align: center
}

.skills {
    background: #0b0c11
}

.skills-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px;
    margin-top: 55px
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    transition: .25s
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, .35)
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #1b1827;
    color: #b79cff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 20px
}

.skill-card h3 {
    font-size: 16px
}

.skill-card p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px
}

.bar {
    height: 3px;
    background: #252731;
    margin-top: 18px;
    border-radius: 5px;
    overflow: hidden
}

.bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa)
}

.split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px
}

.split > p {
    color: var(--muted);
    font-size: 13px;
    max-width: 330px
}

.projects-grid {
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 18px;
    margin-top: 50px
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: .3s
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, .35)
}

.project-visual {
    height: 270px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden
}

.project-one {
    background: linear-gradient(135deg, #171329, #252039)
}

.project-two {
    background: linear-gradient(135deg, #111827, #15121d)
}

.browser {
    width: 75%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    background: #0d0e13;
    border: 1px solid rgba(255, 255, 255, .1)
}

.browser-bar {
    height: 24px;
    background: #1b1d25;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px
}

.browser-bar i {
    width: 5px;
    height: 5px;
    background: #555a67;
    border-radius: 50%
}

.image-pro {
    height: 160px;
    background: linear-gradient(135deg, #e8e5df, #b5b0aa);
    color: #171717;
    padding: 0;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    position: relative;
}

.image-pro img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 5s ease-in-out;
    transform: translateY(0);
}

.image-pro:hover img {
    transform: translateY(
            calc(-100% + 160px)
    );
}

.mock-moon {
    height: 160px;
    background: #0b0d14;
    color: #fff;
    padding: 18px;
    position: relative
}

.mock-moon span {
    font-weight: 800;
    font-size: 16px
}

.moon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 8px solid #a78bfa;
    position: absolute;
    right: 25px;
    top: 48px
}

.moon-lines {
    width: 55%;
    height: 5px;
    background: #343847;
    position: absolute;
    bottom: 30px;
    right: 18px;
    box-shadow: 0 -13px #272a35
}

.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(8, 9, 13, .75);
    border: 1px solid var(--line);
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 9px;
    color: #ddd
}

.project-body {
    padding: 23px
}

.project-body > span {
    font-size: 10px;
    color: var(--accent)
}

.project-body h3 {
    font-size: 21px;
    margin: 5px 0
}

.project-body p {
    font-size: 12px;
    color: var(--muted);
    min-height: 45px
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-top: 20px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

.chips b {
    font-size: 9px;
    font-weight: 500;
    color: #aeb1bb;
    border: 1px solid var(--line);
    padding: 3px 7px;
    border-radius: 20px
}

.project-footer > a {
    font-size: 11px;
    white-space: nowrap;
    color: #c4b5fd
}

.project-note {
    margin-top: 18px;
    border: 1px dashed #30333e;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 15px
}

.project-note > span {
    font-size: 30px;
    color: var(--accent)
}

.project-note strong {
    font-size: 13px
}

.project-note p {
    font-size: 11px;
    color: var(--muted)
}

.project-note > a {
    margin-right: auto;
    font-size: 11px;
    color: #c4b5fd;
    white-space: nowrap
}

.experience {
    background: #0b0c11
}

.timeline {
    max-width: 800px;
    margin: 55px auto 0;
    border-right: 1px solid #292c36;
    padding-right: 35px
}

.timeline-item {
    position: relative;
    padding-bottom: 45px
}

.timeline-item:last-child {
    padding-bottom: 0
}

.timeline-dot {
    position: absolute;
    right: -41px;
    top: 4px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 15px rgba(139, 92, 246, .4)
}

.timeline-item > span {
    font-size: 11px;
    color: var(--accent)
}

.timeline-item h3 {
    font-size: 18px;
    margin-top: 5px
}

.timeline-item h4 {
    font-size: 12px;
    color: #a9adb8;
    font-weight: 500
}

.timeline-item p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 7px
}

.services-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 50px;
    border: 1px solid var(--line)
}

.service {
    background: var(--bg);
    padding: 28px 22px;
    min-height: 190px
}

.service > span {
    font-size: 11px;
    color: var(--accent)
}

.service h3 {
    font-size: 15px;
    margin: 20px 0 8px
}

.service p {
    font-size: 11px;
    color: var(--muted)
}

.contact {
    padding-top: 80px
}

.contact-box {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 55px;
    display: grid;
    grid-template-columns:1fr .9fr;
    gap: 70px;
    background: radial-gradient(circle at 15% 50%, rgba(109, 40, 217, .14), transparent 45%), var(--surface)
}

.contact-box h2 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.35;
    margin: 10px 0
}

.contact-box h2 span {
    color: #898d99
}

.contact-box p {
    color: var(--muted);
    font-size: 13px;
    max-width: 470px
}

.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.contact-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns:70px 1fr 20px;
    align-items: center;
    gap: 10px
}

.contact-links small {
    font-size: 10px;
    color: #777c89
}

.contact-links strong {
    font-size: 13px;
    font-weight: 500
}

.contact-links span {
    color: var(--accent)
}

footer {
    border-top: 1px solid var(--line);
    padding: 25px 0;
    color: #727784;
    font-size: 10px
}

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

footer a {
    color: #a78bfa
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.show {
    opacity: 1;
    transform: none
}

@media (max-width: 900px) {
    .nav-links {
        display: none
    }

    .nav-cta {
        display: none
    }

    .menu-btn {
        display: block
    }

    .nav {
        position: relative
    }

    .nav-links.open {
        position: absolute;
        display: flex;
        flex-direction: column;
        top: 68px;
        right: 20px;
        left: 20px;
        background: #101218;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 18px;
        gap: 12px
    }

    .hero-grid, .two-col, .contact-box {
        grid-template-columns:1fr
    }

    .hero-card-wrap {
        max-width: 560px;
        margin: auto
    }

    .hero-grid {
        gap: 55px
    }

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

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

    .services-grid {
        grid-template-columns:1fr 1fr
    }

    .contact-box {
        gap: 35px
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1160px)
    }

    .hero {
        padding-top: 110px
    }

    .hero h1 {
        font-size: 40px
    }

    .hero-stats {
        gap: 20px
    }

    .hero-stats strong {
        font-size: 20px
    }

    .section {
        padding: 85px 0
    }

    .info-grid, .skills-grid, .services-grid {
        grid-template-columns:1fr
    }

    .split {
        display: block
    }

    .split > p {
        margin-top: 15px
    }

    .project-visual {
        height: 220px
    }

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

    .contact-box {
        padding: 30px 22px
    }

    footer .container {
        flex-direction: column
    }

    .timeline {
        padding-right: 27px
    }

    .timeline-dot {
        right: -33px
    }
}
