body {
    box-sizing: border-box;
    font-family: 'Estedad', 'Vazir', sans-serif;
}

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.hero-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1)), 
                linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="caps" patternUnits="userSpaceOnUse" width="120" height="120"><circle cx="60" cy="60" r="25" fill="%23e0f2fe" stroke="%23b3e5fc" stroke-width="2"/><circle cx="60" cy="60" r="15" fill="%2381d4fa"/><circle cx="60" cy="60" r="8" fill="%2329b6f6"/></pattern></defs><rect width="1200" height="800" fill="%23f8f9fa"/><rect width="1200" height="800" fill="url(%23caps)" opacity="0.6"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(248, 249, 250, 0.8) 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    transform-origin: right;
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.8s ease forwards;
}

.animate-slide-in-bottom {
    animation: slideInFromBottom 0.8s ease forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-40px);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(40px);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
}

.scroll-animate-bottom {
    opacity: 0;
    transform: translateY(50px);
}

.counter-number {
    transition: all 0.3s ease;
}

.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

.video-section {
  position: relative;
  width: 100%;
  height: 100vh; /* یا ارتفاع مورد نظر */
  overflow: hidden;
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
}

.content {
  position: relative;
  z-index: 1;
  color: white;
}



/* استایل‌های مدیریت زبان */
.language-transition {
    transition: all 0.3s ease-in-out;
}

/* استایل‌های جهت‌گیری */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

/* استایل‌های خاص برای متن فارسی */
[lang="fa"] {
    font-family: 'Estedad', 'Vazir', 'Tanha', sans-serif;
    line-height: 1.8;
}

/* استایل‌های خاص برای متن انگلیسی */
[lang="en"] {
    font-family: 'Estedad', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* انیمیشن تغییر زبان */
.language-change {
    animation: languageFade 0.5s ease-in-out;
}

@keyframes languageFade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل‌های دکمه تغییر زبان */
.lang-switch {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lang-switch:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* تنظیمات فونت برای زبان‌های مختلف */
.persian-font {
    font-family: 'Estedad', 'Vazir', 'Tanha', sans-serif;
}

.english-font {
    font-family: 'Estedad', 'Inter', 'Segoe UI', sans-serif;
}

/* استایل‌های ریسپانسیو برای زبان‌های مختلف */
@media (max-width: 768px) {
    [dir="rtl"] .text-right {
        text-align: right;
    }
    
    [dir="ltr"] .text-right {
        text-align: left;
    }
    
    [dir="rtl"] .text-left {
        text-align: left;
    }
    
    [dir="ltr"] .text-left {
        text-align: right;
    }
}

/* استایل‌های فرم‌ها برای زبان‌های مختلف */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}

[dir="ltr"] input,
[dir="ltr"] textarea,
[dir="ltr"] select {
    text-align: left;
}

/* استایل‌های مارجین و پدینگ برای RTL/LTR */
[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

[dir="ltr"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
}

/* استایل‌های خاص برای منو در زبان انگلیسی */
[dir="ltr"] .dropdown-menu {
    left: 0;
    right: auto;
}

[dir="ltr"] .mobile-menu {
    left: 0;
    right: auto;
}

/* استایل‌های دکمه‌ها در زبان انگلیسی */
[dir="ltr"] .cta-button {
    letter-spacing: 0.025em;
}

/* استایل‌های تایپوگرافی برای زبان انگلیسی */
[lang="en"] h1, 
[lang="en"] h2, 
[lang="en"] h3 {
    letter-spacing: -0.025em;
}

[lang="en"] p {
    letter-spacing: 0.005em;
}

/* استایل‌های شماره‌ها و ارقام */
[dir="rtl"] .counter-number {
    font-feature-settings: "tnum";
}

[dir="ltr"] .counter-number {
    font-feature-settings: "lnum";
}

/* استایل‌های لیست‌ها */
[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-right: 1.5em;
    padding-left: 0;
}

[dir="ltr"] ul,
[dir="ltr"] ol {
    padding-left: 1.5em;
    padding-right: 0;
}

/* استایل‌های آیکون‌ها در زبان‌های مختلف */
[dir="rtl"] .icon-rotate {
    transform: rotate(180deg);
}

[dir="ltr"] .icon-rotate {
    transform: rotate(0deg);
}

/* استایل‌های فوتر برای زبان انگلیسی */
[dir="ltr"] footer .text-right {
    text-align: left;
}

[dir="ltr"] footer .text-left {
    text-align: right;
}

/* استایل‌های فرم تماس برای زبان انگلیسی */
[dir="ltr"] .contact-form {
    text-align: left;
}

[dir="ltr"] .contact-form input,
[dir="ltr"] .contact-form textarea {
    text-align: left;
}

/* استایل‌های ریسپانسیو برای دکمه تغییر زبان */
@media (max-width: 640px) {
    .lang-switch {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* استایل‌های انیمیشن برای تغییر زبان */
.language-transition-element {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-changing {
    opacity: 0;
    transform: translateY(10px);
}

.language-changed {
    opacity: 1;
    transform: translateY(0);
}






/* استایل‌های اصلی منوی موبایل */
.mobile-menu {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 320px;
    background: white;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 25px rgba(0, 0, 0, 0.1);
    display: none; /* ابتدا مخفی باشد */
}

/* موقعیت اولیه برای زبان فارسی (کاملاً خارج از صفحه) */
[dir="rtl"] .mobile-menu {
    right: -320px; /* کاملاً خارج از صفحه */
    left: auto;
}

[dir="rtl"] .mobile-menu.open {
    right: 0;
    transform: translateX(0);
}

/* موقعیت اولیه برای زبان انگلیسی (کاملاً خارج از صفحه) */
[dir="ltr"] .mobile-menu {
    left: -320px; /* کاملاً خارج از صفحه */
    right: auto;
}

[dir="ltr"] .mobile-menu.open {
    left: 0;
    transform: translateX(0);
}

/* استایل overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* انیمیشن‌های هامبورگر */
.hamburger {
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #374151;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}