@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);
}

* {
    font-family: 'iran yekan';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0f172a;
    color: #fff;
    line-height: 1.8;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.menu a {
    color: white;
    text-decoration: none;
    transition: .3s;
}

.menu a:hover {
    color: #38bdf8;
}

.username {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #38bdf8;
}

.username p {
    font-size: 15px;
}

header {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.BackGround {
    width: 100%;
    height: 100%;
}

.BackGround img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ravage {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ravage p {
    font-size: 7rem;
    font-weight: bold;
    letter-spacing: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, .4);
}

section {
    padding: 100px 8%;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #38bdf8;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image img {
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .3);
}

.about-content p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.portfolio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: #1e293b;
    padding: 30px;
    border-radius: 15px;
    transition: .4s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    color: #38bdf8;
    margin-bottom: 15px;
}

.button-link {
    display: inline-block;
    background: #38bdf8;
    color: #000;
    text-decoration: none;
    padding: 14px 25px;
    border-radius: 10px;
    font-weight: bold;
    transition: .3s;
}

.button-link:hover {
    transform: scale(1.05);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.skill-card {
    background: #1e293b;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    transition: .3s;
}

.skill-card:hover {
    transform: translateY(-8px);
}

.skill-card img {
    width: 80px;
    margin-bottom: 15px;
}

.skill-card h3 {
    color: #e2e8f0;
}

.contact-container {
    max-width: 700px;
    margin: auto;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: #1e293b;
    border: none;
    padding: 15px;
    border-radius: 10px;
    color: white;
}

.contact-form button {
    background: #38bdf8;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: .3s;
}

.contact-form button:hover {
    transform: scale(1.03);
}

.social-section {
    margin-top: 50px;
    text-align: center;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    text-decoration: none;
    color: white;
    background: #1e293b;
    padding: 12px 20px;
    border-radius: 10px;
    transition: .3s;
}

.social-links a:hover {
    background: #38bdf8;
    color: black;
}

footer {
    height: 80px;
}

@media (max-width: 992px) {

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ravage p {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .portfolio-cards {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        width: 250px;
    }

    .ravage p {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    h2 {
        font-size: 2rem;
    }

    .username p {
        font-size: 13px;
    }
}