@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #f6f6f4;
    color: #202020;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    line-height: 1.9;
}


a {
    text-decoration: none;
    color: inherit;
}


.container {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
}


/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #dededb;
}


.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}


nav {
    display: flex;
    gap: 28px;
}


nav a {
    color: #555;
    font-size: 13px;
    transition: 0.2s;
}


nav a:hover {
    color: #111;
}


/* Hero */

.hero {
    padding: 110px 0;
    background: #fff;
    border-bottom: 1px solid #dededb;
}


.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 80px;
}


.small-title {
    display: inline-block;
    margin-bottom: 15px;
    color: #777;
    font-size: 13px;
}


.hero h1 {
    font-size: 43px;
    line-height: 1.5;
    margin-bottom: 20px;
    letter-spacing: -1px;
}


.hero h1 span {
    color: #111;
}


.hero-text > p {
    max-width: 650px;
    color: #666;
    font-size: 15px;
}


.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}


.btn {
    padding: 11px 22px;
    border-radius: 7px;
    font-size: 13px;
    transition: 0.2s;
}


.primary {
    background: #202020;
    color: #fff;
}


.primary:hover {
    background: #000;
}


.secondary {
    border: 1px solid #d5d5d2;
    background: #fff;
}


.secondary:hover {
    border-color: #999;
}


/* Code Card */

.hero-card {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}


.card-top {
    display: flex;
    gap: 6px;
    margin-bottom: 25px;
}


.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #777;
}


.code {
    direction: ltr;
    text-align: left;
    color: #eee;
    font-family: Consolas, monospace;
    font-size: 13px;
    line-height: 2.2;
}


.code p {
    margin-left: 20px;
}


.purple {
    color: #c792ea;
}


.yellow {
    color: #ffd580;
}


.green {
    color: #a8d08d;
}


.orange {
    color: #f6ad55;
}


.white {
    color: #fff;
}


/* Sections */

.section {
    padding: 85px 0;
    background: #fff;
}


.gray {
    background: #f6f6f4;
}


.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}


.section-title span {
    color: #999;
    font-family: monospace;
    font-size: 13px;
}


.section-title h2 {
    font-size: 23px;
    font-weight: 700;
}


/* About */

.about-box {
    max-width: 850px;
}


.about-box p {
    color: #555;
    font-size: 14px;
    margin-bottom: 18px;
}


.about-box p:last-child {
    margin-bottom: 0;
}


/* Skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}


.skill {
    padding: 25px;
    background: #fff;
    border: 1px solid #dededb;
    transition: 0.2s;
}


.skill:hover {
    transform: translateY(-3px);
    border-color: #aaa;
}


.skill-number {
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
}


.skill h3 {
    font-size: 17px;
    margin-bottom: 7px;
}


.skill p {
    color: #777;
    font-size: 12px;
}


/* Education */

.education-card {
    display: flex;
    gap: 45px;
    align-items: flex-start;
    padding: 30px;
    border: 1px solid #dededb;
    background: #fff;
}


.education-year {
    min-width: 100px;
    font-size: 15px;
    font-weight: 600;
}


.education-year span {
    display: block;
    color: #888;
    font-size: 12px;
    font-weight: 400;
}


.education-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}


.education-card p {
    color: #666;
    font-size: 13px;
}


.education-status {
    display: inline-block;
    margin-top: 10px;
    color: #777;
    font-size: 12px;
}


/* Empty / Experience */

.empty-section {
    max-width: 700px;
    padding: 30px;
    border: 1px solid #dededb;
    background: #fff;
}


.empty-section h3 {
    font-size: 17px;
    margin-bottom: 8px;
}


.empty-section p {
    color: #666;
    font-size: 13px;
}


/* Contact */

.contact-section {
    border-top: 1px solid #dededb;
}


.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}


.contact-item {
    padding: 25px;
    border: 1px solid #dededb;
    background: #fff;
    transition: 0.2s;
}


.contact-item:hover {
    border-color: #999;
}


.contact-label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}


.contact-item strong {
    font-size: 13px;
    font-weight: 500;
    direction: ltr;
    display: block;
}


/* Footer */

footer {
    background: #202020;
    color: #fff;
    padding: 28px 0;
}


.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.footer-content strong {
    display: block;
    font-size: 14px;
}


.footer-content span {
    color: #999;
    font-size: 11px;
}


.footer-content p {
    color: #888;
    font-size: 11px;
}


/* Responsive */

@media (max-width: 800px) {

    .container {
        width: min(100% - 28px, 1100px);
    }


    nav {
        display: none;
    }


    .hero {
        padding: 70px 0;
    }


    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }


    .hero h1 {
        font-size: 32px;
    }


    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }


    .contact-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    .hero h1 {
        font-size: 28px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .btn {
        text-align: center;
    }


    .skills-grid {
        grid-template-columns: 1fr;
    }


    .education-card {
        flex-direction: column;
        gap: 15px;
    }


    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

}


/* Print */

@media print {

    .header {
        position: static;
    }

    .hero-card,
    .hero-buttons {
        display: none;
    }

    .section {
        padding: 30px 0;
    }

    footer {
        display: none;
    }

}