/* Import Persian Font (Vazir) */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #1e58a0;
    --secondary-color: #36a6e0;
    --accent-color: #e91e63;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --border-color: #e1e1e1;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* RTL and LTR Support */
body {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

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

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    display: flex;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.ltr .language-switcher {
    left: auto;
    right: 15px;
}

.language-switcher a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 8px 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    font-weight: 500;
}

.language-switcher a:first-child:not(:last-child) {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

body.ltr .language-switcher a:first-child:not(:last-child) {
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.language-switcher a.active {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-switcher a:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.08);
    transform: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 100;
}

header .container {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 0 15px;
}

.logo {
    margin-right: -50px;
    margin-left: 30px;
}

body.ltr .logo {
    margin-right: 30px;
    margin-left: -50px;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

/* Internship Button Style */
.btn-internship {
    background-color: var(--accent-color);
    color: var(--light-text) !important;
    padding: 8px 15px;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    margin-right: 10px;
    white-space: nowrap;
}

body.ltr .btn-internship {
    margin-right: 0;
    margin-left: 10px;
}

.btn-internship:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-download {
    background-color: var(--dark-bg);
}

.btn-download:hover {
    background-color: #333;
}

/* Projects Grid */
.projects-preview {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.projects-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3, .project-card p {
    padding: 0 20px;
}

.project-card h3 {
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.project-card p {
    color: #666;
    margin-bottom: 25px;
}

.project-card .btn {
    margin: 0 20px 20px;
}

/* Download Catalog Section */
.download-catalog {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.download-catalog h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.download-catalog p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #666;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Media Queries for Responsiveness */
@media (max-width: 900px) {
    nav ul {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .language-switcher {
        top: 10px;
        left: 10px;
    }
    
    body.ltr .language-switcher {
        right: 10px;
    }
    
    .language-switcher a {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .logo img {
        height: 40px;
    }
    
    .btn-internship {
        padding: 6px 12px;
        font-size: 0.95rem;
        margin-right: 8px;
    }
    
    body.ltr .btn-internship {
        margin-left: 8px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
    }
    
    .menu-toggle:hover {
        color: var(--primary-color);
    }
    
    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: #fff;
        transition: all 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px;
    }
    
    body.ltr nav {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    body.ltr nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        align-items: flex-start;
    }
    
    nav ul li {
        width: 100%;
        margin-bottom: 15px;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 15px;
        width: 100%;
        border-radius: 4px;
    }
    
    nav ul li a:hover {
        background-color: rgba(30, 88, 160, 0.1);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .projects-preview {
        padding: 60px 0;
    }
    
    .projects-preview h2, .download-catalog h2 {
        font-size: 2rem;
    }
    
    header .container {
        justify-content: space-between;
        padding: 0 10px;
    }
    
    .logo {
        margin-right: 10px;
        margin-left: 0;
    }
    
    body.ltr .logo {
        margin-left: 10px;
        margin-right: 0;
    }
    
    .logo img {
        height: 50px;
        width: auto;
    }
    
    .language-switcher {
        position: static;
        top: auto;
        left: auto;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        padding: 0;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        margin-left: 10px;
        flex-shrink: 0;
    }
    
    body.ltr .language-switcher {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .language-switcher a {
        font-size: 1rem;
        padding: 5px 8px;
        margin-top: 0;
        font-weight: 500;
    }
    
    .language-switcher a:first-child:not(:last-child) {
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    body.ltr .language-switcher a:first-child:not(:last-child) {
        border-left: none;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    .language-switcher a.active {
        background-color: var(--primary-color);
        color: var(--light-text);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    .language-switcher a:hover:not(.active) {
        background-color: rgba(0, 0, 0, 0.08);
        transform: none;
    }

    /* Internship button mobile styles */
    nav ul li .btn-internship {
        margin-right: 0;
        margin-left: 0;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .projects-preview h2, .download-catalog h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .social-links {
        margin-top: 20px;
    }
    
    .logo img {
        height: 45px;
        width: auto;
    }
    
    .language-switcher {
        border-radius: 15px;
    }

    .language-switcher a {
        font-size: 0.85rem;
        padding: 3px 5px;
    }
    
    .language-switcher a:first-child:not(:last-child) {
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    body.ltr .language-switcher a:first-child:not(:last-child) {
        border-left: none;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Internship button very small screen styles */
    nav ul li .btn-internship {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
} 