/* Start root */
:root {
    --primary-bg: #0f172a;
    --secondary-bg: rgb(66, 3, 85);
    --text-color: #e2e8f0;
    --accent-color: #a855f7;
    --highlight-color: #c084fc;
    --card-bg: #1e1b36;
    --font-en: 'Inter', sans-serif;
    --font-fa: 'Vazirmatn', sans-serif;
}
/* Start root */
/* Start normalization */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* End normalization */
/* Start Body & Global Styles */
body {
    font-family: var(--font-en);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}


body.rtl {
    font-family: var(--font-fa);
    direction: rtl;
    text-align: right;
}

body.rtl .header {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .skill-card ul li::before {
    content: "←";
    margin-left: 0;
    margin-right: -1.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
/* End Body & Global Styles */

/* Start Header Section */
.header {
    background-color: rgba(15, 23, 42, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--secondary-bg);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}


.lang-btn {
    background: transparent;
    border: 1px solid var(--highlight-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.lang-btn:hover {
    background-color: var(--highlight-color);
    color: #000;
}

.header-socials {
    display: flex;
    gap: 15px;
}

.header-socials a {
    font-size: 1.4rem;
    color: var(--text-color);
}

.header-socials a:hover {
    color: var(--highlight-color);
    transform: scale(1.1);
}
/* End Header Section */

/* Start About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #cbd5e1;
}

.why-me, .hobbies {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--highlight-color);
    backdrop-filter: blur(5px);
}


body.rtl .why-me, body.rtl .hobbies {
    border-left: none;
    border-right: 4px solid var(--highlight-color);
}

.why-me h3, .hobbies h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: var(--secondary-bg);
    color: #ffffff;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid var(--highlight-color);
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--highlight-color);
    color: #000;
    transform: translateY(-2px);
}

.about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 4px solid var(--highlight-color);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}
/* End About Section */
/* Start Projects Section */
.projects-section {
    padding: 60px 0;
    background-color: var(--primary-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--highlight-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.project-image img {
    width: 100%;
    height: 285px;
    object-fit:cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--highlight-color);
}

.project-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-stack span {
    background-color: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
}

.project-links {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background-color: var(--secondary-bg);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid var(--highlight-color);
}

.btn-primary:hover {
    background-color: var(--highlight-color);
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}
/* End Projects Section */
/* Start Skills Section */

.skills-section {
    padding: 60px 0;
    background-color: #1e293b;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background-color: var(--primary-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
    border-color: var(--highlight-color);
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--highlight-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.skill-card ul li {
    margin-bottom: 10px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.skill-card ul li::before {
    content: "▹";
    color: var(--highlight-color);
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
}
/* End Skills Section */

/* Start Footer Section */
footer {
    background-color: #050914;
    padding: 40px 0 20px;
    text-align: center;
    border-top: 1px solid var(--secondary-bg);
}

.footer-content h3 {
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.footer-content p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-bg);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.copyright {
    font-size: 0.8rem;
    color: #475569;
}
/* End Footer Section */

/* Start Responsive Media Queries  */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .header-socials {
        display: none;
    }
    
    .why-me, .hobbies {
        text-align: left;
    }
    
    body.rtl .why-me, body.rtl .hobbies {
        text-align: right;
    }
}
/* End Responsive Media Queries  */
