/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E9ECEF;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --accent: #DC2626;
    --accent-dark: #8B1A1A;
    --accent-darker: #6B1515;
    --accent-hover: #B91C1C;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Vazirmatn', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

[dir="rtl"] body {
    font-family: 'Vazirmatn', 'Space Grotesk', sans-serif;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
    
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
    opacity: 0;
    transform: translateY(100%);
    transition: var(--transition);
}

.nav-links a:hover {
    color: transparent;
}

.nav-links a:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section with Video Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 40px 80px;
    overflow: hidden;
}

/* Video Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* White Shadow Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.50) 100%,
            rgba(0, 0, 0, 0.85) 100%,
            rgba(0, 0, 0, 0.75) 100%
        );
    z-index: 2;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: #d0c3c3;
}

.title-line {
    display: block;
}

.title-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.title-outline::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--accent);
    z-index: -1;
    opacity: 0.15;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: white;
    padding: 18px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary span {
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover span {
    transform: translateX(5px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease 0.8s both;
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--accent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: -30%; }
    100% { top: 100%; }
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    animation: fadeIn 1s ease 1s both;
    z-index: 3;
}

.visual-circle {
    width: 300px;
    height: 300px;
    border: 1px solid var(--border);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.visual-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.visual-number {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 2;
    color: var(--accent);
}

.plus {
    color: var(--accent-dark);
    font-size: 80px;
}

.visual-label {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 3px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

/* Stats Marquee */
.stats-marquee {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.stat-item {
    font-size: 60px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 15px;
    color: var(--accent);
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-separator {
    color: var(--accent-dark);
    font-size: 30px;
}

/* Section Styles */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.label-text {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 80px;
    max-width: 900px;
    color: var(--text-primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow);
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.about-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
}

.about-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E9ECEF, #DEE2E6);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(220, 38, 38, 0.05) 20px,
            rgba(220, 38, 38, 0.05) 40px
        );
}

.about-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    padding: 40px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.about-overlay span {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.about-overlay p {
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.9;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--shadow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-size: 80px;
    font-weight: 700;
    color: var(--bg-tertiary);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
    transition: var(--transition);
}

.service-card:hover .service-number {
    color: rgba(220, 38, 38, 0.15);
}

.service-icon {
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(-5deg) scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-hover);
}

/* Projects Section */
.projects {
    background: var(--bg-primary);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.projects-header .section-title {
    margin-bottom: 0;
}

.projects-filter {
    display: flex;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
}

.filter-btn:hover:not(.active) {
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(220, 38, 38, 0.03) 30px,
            rgba(220, 38, 38, 0.03) 31px
        );
    transition: var(--transition);
}

.project-card:hover .project-image::before {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(30%);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.project-overlay h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.project-card:hover .project-overlay p {
    opacity: 1;
}

/* Global Section */
.global {
    background: var(--bg-secondary);
    text-align: center;
}

.global-map {
    max-width: 1000px;
    margin: 0 auto 80px;
}

.world-map {
    width: 100%;
    height: auto;
}

.map-dot {
    fill: var(--accent);
    transition: var(--transition);
    cursor: pointer;
}

.map-dot:hover {
    fill: var(--accent-hover);
    r: 12;
}

.pulse-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    opacity: 0.5;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { r: 8; opacity: 0.8; }
    100% { r: 40; opacity: 0; }
}

.global-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.global-stat h3 {
    font-size: 80px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.global-stat p {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin-top: -60px;
    margin-bottom: 80px;
}

.info-item {
    margin-bottom: 40px;
}

.info-label {
    display: block;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.7;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    
    .hero-visual { display: none; }
    .about-grid,
    .services-grid,
    .projects-grid,
    .contact-grid,
    .footer-grid { grid-template-columns: 1fr; }
    
    .services-grid,
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    
    .global-stats { gap: 40px; }
}

@media (max-width: 768px) {
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-overlay {
        background: 
            linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.50) 100%,
                rgba(0, 0, 0, 0.50) 100%,
                rgba(0, 0, 0, 0.50) 100%
            );
    }
}

@media (max-width: 640px) {
    .nav-container { padding: 0 20px; }
    .section-container { padding: 80px 20px; }
    .hero { padding: 100px 20px 60px; }
    
    .services-grid,
    .projects-grid { grid-template-columns: 1fr; }
    
    .hero-cta { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    
    .about-features { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============ RTL Fixes ============ */
[dir="rtl"] .hero-visual {
    right: auto;
    left: 5%;
}

[dir="rtl"] .about-overlay {
    right: auto;
    left: -30px;
}

[dir="rtl"] .service-number {
    right: auto;
    left: 30px;
}

[dir="rtl"] .hero-scroll {
    left: auto;
    right: 40px;
}

[dir="rtl"] .nav-links a::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .btn-primary span {
    display: inline-block;
    transform: scaleX(-1);
}

[dir="rtl"] .btn-primary:hover span {
    transform: scaleX(-1) translateX(5px);
}

[dir="rtl"] .label-line {
    order: 2;
}

[dir="rtl"] .logo-text {
    letter-spacing: 0;
}

[dir="rtl"] .feature-icon {
    order: 2;
}

[dir="rtl"] .about-features .feature {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links a {
    font-size: 13px;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .service-link,
[dir="rtl"] .nav-cta {
    display: inline-flex;
    flex-direction: row-reverse;
}

/* ============ Mobile Fix (under 500px) ============ */
@media (max-width: 500px) {
    
        [dir="rtl"] .service-link,
[dir="rtl"] .nav-cta {
    /*display: inline-flex;*/
    display: none;
    flex-direction: row-reverse;
}


    .nav-container {
        padding: 0 15px;
        gap: 8px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .lang-switcher {
        padding: 2px;
        gap: 2px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 28px;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo svg {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 17px;
    }
    
    .menu-toggle {
        display: flex;
        padding: 8px;
        margin-left: -8px;
    }
    
    [dir="rtl"] .menu-toggle {
        margin-left: 0;
        margin-right: -8px;
    }
    
    .menu-toggle span {
        width: 20px;
        transition: all 0.3s ease;
    }
    
    /* Animated Hamburger */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Mobile Menu Dropdown */
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 25px 20px;
        gap: 5px;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 30px var(--shadow);
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
        color: var(--text-primary) !important;
        font-size: 15px !important;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-links a::before {
        display: none;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        background: var(--bg-tertiary);
        color: var(--accent) !important;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .hero-overlay {
        background: 
            linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.50) 100%,
                rgba(0, 0, 0, 0.50) 100%
            );
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}