@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;
}

/* ===== 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-size: 1.3rem;
    font-weight: 800;
}

.menu {
    display: flex;
    gap: 12px;
}

.menu a {
    text-decoration: none;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    transition: .3s;
}

.menu a:hover,
.menu .active {
    background: rgba(255, 255, 255, .15);
}

/* ===== SKILLS ===== */

.skills {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 60px 0;
    flex: 1;
}

.skills h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.skill-card h3 {
    margin-bottom: 15px;
}

.progress {
    width: 100%;
    height: 14px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
}

.html {
    width: 80%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.css {
    width: 70%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.skill-card span {
    font-weight: 700;
    color: #2563eb;
}

/* ===== FOOTER ===== */

footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 25px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:992px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

}

@media(max-width:768px) {

    .skills h1 {
        font-size: 2.2rem;
    }

}

@media(max-width:480px) {

    .menu a {
        padding: 8px 10px;
        font-size: .9rem;
    }

    .skills h1 {
        font-size: 1.8rem;
    }

}