/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0077b6;
    --primary-dark: #023e8a;
    --secondary: #48cae4;
    --accent: #f4a261;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    scroll-behavior: smooth;
}

body.rtl {
    font-family: 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
    text-align: right;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER & NAV ========== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--gray);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--gray);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

nav {
    background: var(--primary-dark);
    position: sticky;
    top: 80px;
    z-index: 99;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 1rem 0;
    display: inline-block;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover, 
.nav-menu a.active {
    border-bottom-color: var(--accent);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.75rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    background: #e76f51;
    color: white;
}

/* ========== SECTIONS GENERAL ========== */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

/* ========== FEATURES ========== */
.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    width: 220px;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--secondary);
}

.feature-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ========== BRANDS SLIDER ========== */
.brands-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.brand-item {
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    font-weight: 500;
    transition: var(--transition);
}

.brand-item img {
    max-height: 60px;
    width: auto;
}

/* ========== PROJECTS SECTION ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: white;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.btn-small {
    display: inline-block;
    background: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.project-details {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.project-tag {
    background: #e2e8f0;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    color: var(--dark);
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
}

.projects-counter {
    text-align: center;
    margin: 3rem 0;
    background: var(--primary-dark);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
}

/* ========== CONTACT ========== */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contact-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    width: 260px;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* ========== RTL OVERRIDES ========== */
body.rtl .nav-menu {
    gap: 1.5rem;
}

body.rtl .project-tags,
body.rtl .project-stats {
    direction: rtl;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        top: 120px;
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* contact */
.corporate-contact {
    padding: 4rem 0;
}
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.contact-info-corporate {
    flex: 1;
    background: #edf2f7;
    padding: 1.5rem;
    border-radius: 12px;
}
.contact-info-corporate div {
    margin-bottom: 1rem;
}
.contact-info-corporate span {
    font-weight: bold;
    margin-right: 0.5rem;
}
.contact-form-corporate {
    flex: 1;
}
.contact-form-corporate input, 
.contact-form-corporate textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
}
.contact-form-corporate button {
    width: 100%;
}