/* =====================
   Reset
===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: #f8f9fc;
    color: #333;
    line-height: 1.8;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* =====================
Container
===================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =====================
Header
===================== */

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    color: #2563eb;
    font-size: 28px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: #333;
    font-weight: 500;
    transition: .3s;
}

nav a:hover {
    color: #2563eb;
}

/* =====================
Hero
===================== */

.hero {
    padding: 90px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content div {
    flex: 1;
}

.hero img {
    flex: 1;
    border-radius: 15px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 30px;
    color: #666;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    transition: .3s;
}

.btn:hover {
    background: #1746b8;
}

/* =====================
Sections
===================== */

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 45px;
}

/* =====================
Projects
===================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    height: 220px;
    object-fit: cover;
}

.card h3 {
    padding: 20px 20px 10px;
}

.card p {
    padding: 0 20px 25px;
    color: #666;
}

/* =====================
Skills
===================== */

.skill-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-box span {
    background: #2563eb;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    transition: .3s;
    cursor: pointer;
}

.skill-box span:hover {
    transform: scale(1.08);
}

/* =====================
Contact
===================== */

form {
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input,
textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #2563eb;
}

button {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: .3s;
}

button:hover {
    background: #1746b8;
}

/* =====================
Footer
===================== */

footer {
    background: #fff;
    padding: 25px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}

/* =====================
Responsive
===================== */

@media(max-width:992px) {

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:768px) {

    header .container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    section h2 {
        font-size: 28px;
    }

}