/* Reset و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر */
header {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* نوار ناوبری */
nav {
    background-color: #4682b4;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1rem 0.5rem;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover {
    color: #e0ffff;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
}

/* کارت‌ها */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #1e90ff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

/* بخش درباره من */
.content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #1e90ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.text {
    flex: 1;
}

/* مهارت‌ها */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill {
    text-align: center;
    padding: 1.5rem;
    background: #f8faff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill:hover {
    background: #e6f2ff;
    transform: translateY(-3px);
}

.skill i {
    font-size: 3rem;
    color: #1e90ff;
    margin-bottom: 1rem;
}

.skill h3 {
    margin-bottom: 0.5rem;
    color: #4682b4;
}

.skill-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    text-align: center;
    color: white;
    font-size: 0.7rem;
    line-height: 10px;
}

.html { width: 90%; }
.css { width: 85%; }
.js { width: 80%; }
.responsive { width: 95%; }

/* پروژه‌ها */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project {
    background: #f8faff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1e90ff;
    transition: all 0.3s ease;
}

.project:hover {
    background: #e6f2ff;
    transform: translateY(-3px);
}

.project h3 {
    color: #4682b4;
    margin-bottom: 0.5rem;
}

.project p {
    margin-bottom: 1rem;
    color: #555;
}

/* فرم تماس */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4682b4;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e90ff;
    outline: none;
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.3);
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #187bcd, #009acd);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* لینک‌های اجتماعی */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: #4682b4;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #1e90ff;
    transform: translateY(-3px);
}

/* فوتر */
footer {
    background: #4682b4;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin-bottom: 1.5rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        padding: 0.8rem;
    }

    .menu-toggle {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .skills-container, .projects-container {
        grid-template-columns: 1fr;
    }
}