:root {
    --bg-primary: #393366;
    --bg-secondary: #645faa;
    --bg-tertiary: #8781bd;
    --text-primary: #fff;
    --text-secondary: #fefefe;
    --font-main: 'SGKara', Tahoma, sans-serif;
}
@font-face {
    font-family: 'Iranian';
    src: url('font/iranian/iranian1.woff2') format('woff2');
    font-weight: 100;
}
@font-face {
    font-family: 'Iranian';
    src: url('font/iranian/iranian2.woff2') format('woff2');
    font-weight: 300;
}
@font-face {
    font-family: 'Iranian';
    src: url('font/iranian/iranian3.woff2') format('woff2');
    font-weight: 500;
}
@font-face {
    font-family: 'Iranian';
    src: url('font/iranian/iranian4.woff2') format('woff2');
    font-weight: 700;
}

.f-iranian-thin   { font-family: 'Iranian' !important; font-weight: 100; }
.f-iranian-light  { font-family: 'Iranian' !important; font-weight: 300; }
.f-iranian-medium { font-family: 'Iranian' !important; font-weight: 500; }
.f-iranian-bold   { font-family: 'Iranian' !important; font-weight: 700; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 300;
    }
p {
    font-weight:300;
}
h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-primary);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.navbar img {
    height: 80px;
}
.menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    transition: right 0.3s;
    z-index: 2000;
    padding: 20px;
}
.sidebar.active {
    right: 0;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}
.sidebar ul {
    list-style: none;
}
.sidebar ul li {
    margin-bottom: 20px;
}
.sidebar ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-family: 'Iranian' !important;
    font-weight: 300;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    display: none;
    z-index: 1500;
}
.overlay.active {
    display: block;
}
.carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.carousel-item {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-item img.slide-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
}
.carousel-caption {
    position: absolute;
    bottom: 80px;       
    right: 60px;        
    transform: none;    
    top: auto;          
    left: auto;         
    text-align: right;
    width: 45%;
    z-index: 2;
}
.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 900;
}
.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 400;
}
.btn {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--text-secondary);
}
.section {
    padding: 80px 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-primary);
}
.services {
    background-color: var(--bg-tertiary);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;}
.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: 'Iranian' !important;
    font-weight: 700;
}
.service-card p {
    color: var(--text-secondary);
    font-family: 'Iranian' !important;
    font-weight: 300;
}
.service-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
}
.contact-card {
    padding: 40px;
    border-radius: 0px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.contact-card h5 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'Iranian' !important;
    font-weight: 700;
}
.contact-card h5:first-child {
    margin-top: 0;
}
.contact-card p {
    color: var(--text-secondary);
    font-family: 'Iranian' !important;
    font-weight: 300;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .carousel-caption {
        right: 20px;
        left: 20px;
        width: auto;
        bottom: 60px;
    }
    .carousel-caption h1 {
        font-size: 1.3rem;
    }
    .carousel-caption p {
        font-size: 0.95rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .sidebar {
        width: 100%;
        right: -100%;
    }
    .sidebar.active {
        right: 0;
    }
}


/* ── LTR Override (English version) ── */
body.ltr .sidebar {
    right: auto;
    left: -300px;
    transition: left 0.3s;
}
body.ltr .sidebar.active {
    left: 0;
    right: auto;
}
body.ltr .carousel-caption {
    right: auto;
    left: 60px;
    text-align: left;
}
@media (max-width: 768px) {
    body.ltr .carousel-caption {
        left: 20px;
        text-align: left;
    }
}
@media (max-width: 480px) {
    body.ltr .sidebar {
        left: -100%;
    }
    body.ltr .sidebar.active {
        left: 0;
    }
}
/* ── LTR Override (English version) ── */



