@font-face {
    font-family: 'iran yekan';
    src: url(../font/IRANYekanX-Regular.woff2);
}

@font-face {
    font-family: 'iran yekan bold';
    src: url(../font/IRANYekanX-Bold.woff2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'iran yekan';
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background:
        radial-gradient(circle at top right, #2563eb15, transparent 35%),
        radial-gradient(circle at bottom left, #7c3aed15, transparent 35%),
        #f8fafc;
    color: #1e293b;
}

/* ===== NAVBAR ===== */

.navbar {
    width: 90%;
    max-width: 1300px;
    margin: 25px auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 35px;

    border-radius: 18px;

    background: linear-gradient(135deg, #2563eb, #7c3aed);

    box-shadow: 0 12px 30px rgba(37, 99, 235, .25);
}

.logo {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
}

.menu {
    display: flex;
    gap: 12px;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    transition: .3s;
}

.menu a:hover,
.menu .active {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
}

/* ===== PORTFOLIO ===== */

.portfolio {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 60px 0;
    flex: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 90px;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
}

/* ===== CARDS ===== */

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-item h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

.portfolio-item p {
    line-height: 2;
    color: #475569;
}

/* ===== CARD GALLERY ===== */

.card-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    width: 300px;
    height: 180px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    transition: .3s;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover {
    transform: scale(1.05);
}

/* ===== FOOTER ===== */

footer {
    margin-top: 40px;
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 25px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:992px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

}

@media(max-width:768px) {

    .section-title {
        font-size: 2rem;
    }

}

@media(max-width:480px) {

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .menu a {
        font-size: .9rem;
        padding: 8px 10px;
    }

    .card {
        width: 100%;
        height: 200px;
    }
}