/* --- General and Variables --- */
:root {
    --bg-dark: #0a0e13;
    --bg-medium: #161b22;
    --border-color: #30363d;
    --primary-color: #2f81f7;
    --secondary-color: #3fb950;
    --text-light: #c9d1d9;
    --text-dark: #8b949e;
    --font-family: 'Vazirmatn', Arial, sans-serif;
    --gradient-blue: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-dark) !important; /* پس‌زمینه ثابت */
    color: var(--text-light) !important;        /* متن ثابت */
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl; /* راست‌چین پیش‌فرض */
    text-align: right;
    -webkit-text-size-adjust: 100%; /* جلوگیری از تغییر اندازه فونت در وب‌ویو */
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    color: #58a6ff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #58a6ff; }
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover { background-color: var(--primary-color); color: #fff; }
.btn-cta {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 15px 35px;
    font-size: 1.1rem;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-cta:hover {
    background-color: #48d65d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Header */
.main-header {
    background-color: rgba(10, 14, 19, 0.95); /* fallback برای وب‌ویو */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: auto;
}
.logo img { height: 40px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-right: 20px; }
.nav-links a { color: var(--text-light); position: relative; }

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    min-height: 90vh;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.95), #0d1117);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-content {
    flex: 1;
    max-width: 550px;
    text-align: right;
    padding-left: 40px;
    z-index: 10;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-rocket-image {
    max-width: 100%;
    width: 320px;
    animation: floatAnimation 4s ease-in-out infinite;
}
@keyframes floatAnimation {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; padding-left: 0; order: 2; }
    .hero-image-container { order: 1; margin-bottom: 30px; }
    .hero-content h1 { font-size: 2.2rem; }
}
