/* تنظیمات کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #BB86FC;
    --secondary-color: #03DAC6;
    --accent-color: #CF6679;
    --background-dark: #121212;
    --surface-dark: #1E1E1E;
    --surface-light: #2D2D2D;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-tertiary: #808080;
    --border-color: #333333;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --gradient-1: linear-gradient(135deg, #BB86FC, #03DAC6);
    --gradient-2: linear-gradient(135deg, #03DAC6, #CF6679);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(187, 134, 252, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(3, 218, 198, 0.07) 0%, transparent 50%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر */
header {
    background-color: var(--surface-dark);
    box-shadow: 0 4px 20px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    margin-left: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.company-en {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* بخش معرفی اصلی */
.hero {
    padding: 80px 0 80px;
    position: relative;
    background: linear-gradient(135deg, var(--surface-dark), var(--background-dark));
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.slogan-container {
    margin-bottom: 30px;
    position: relative;
}

.slogan {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.slogan span {
    color: var(--secondary-color);
    position: relative;
}

.slogan span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(3, 218, 198, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.slogan-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin-right: 5px;
    border-radius: 2px;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-pill i {
    color: var(--secondary-color);
}

.cta-btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-btn.primary {
    background: var(--gradient-1);
    color: var(--background-dark);
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.4);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-elements {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--surface-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--shadow-dark);
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 50px;
    right: 50px;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 150px;
    right: 180px;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    top: 250px;
    right: 80px;
    animation-delay: 2s;
}

.floating-card:nth-child(4) {
    top: 50px;
    right: 230px;
    animation-delay: 1.5s;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.gradient-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    top: -100px;
    left: -100px;
}

.gradient-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    bottom: -50px;
    right: -50px;
}

/* بخش محصول */
.product-showcase {
    padding: 100px 0;
    background-color: var(--surface-dark);
    background-image:
        linear-gradient(45deg, rgba(187, 134, 252, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(187, 134, 252, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(187, 134, 252, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(187, 134, 252, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.product-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.product-video {
    flex: 1;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-dark);
    background-color: var(--surface-light);
    height: 500px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    background-color: var(--primary-color);
}

.play-button i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-right: 5px;
    transition: var(--transition);
}

.play-button:hover i {
    color: var(--background-dark);
}

.product-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-left: 15px;
}

.feature-item span {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-1);
    color: var(--background-dark);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.demo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.4);
}

.demo-btn i {
    margin-right: 10px;
}

/* بخش درباره تیم */
.about-team {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--surface-dark), var(--background-dark));
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.team-card {
    background-color: var(--surface-light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-1);
    border-radius: 0 0 0 5px;
    transition: height 0.3s ease;
}

.team-card:hover::before {
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-dark);
}

.team-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.team-icon i {
    font-size: 2rem;
    color: var(--background-dark);
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.team-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* بخش حوزه‌های فعالیت */
.fields-section {
    margin-top: 80px;
}

.fields-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.field-card {
    background-color: var(--surface-light);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow-dark);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.field-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(187, 134, 252, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.field-card:hover::after {
    opacity: 1;
}

.field-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-dark);
}

.field-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-left: 20px;
}

.field-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.field-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.no-fields-message {
    text-align: center;
    padding: 40px;
    background-color: var(--surface-light);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.no-fields-message p {
    font-size: 1.2rem;
    color: var(--text-primary);
}


.members-preview-section {
    margin-top: 90px;
}

.members-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.member-preview-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.24);
    transition: var(--transition);
}

.member-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 42px rgba(0,0,0,0.28);
}

.member-preview-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

.member-preview-content {
    padding: 22px;
}

.member-preview-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.member-preview-role {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.member-preview-bio {
    color: var(--text-secondary);
    line-height: 1.9;
    min-height: 86px;
}

.member-preview-content a {
    margin-top: 16px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
}

.members-preview-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* بخش پروژه‌های در حال انجام */
.ongoing-projects {
    padding: 90px 0;
    position: relative;
    background:
        radial-gradient(circle at 20% 25%, rgba(187, 134, 252, 0.12), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(3, 218, 198, 0.12), transparent 50%),
        linear-gradient(140deg, #17141f, #111827);
}

.ongoing-projects-board {
    position: relative;
    border-radius: 28px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.ongoing-projects-board::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    top: -130px;
    left: -90px;
    background: radial-gradient(circle, rgba(187, 134, 252, 0.26), transparent 68%);
    pointer-events: none;
}

.ongoing-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.ongoing-board-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.ongoing-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 16px;
    color: #121212;
    font-size: 0.95rem;
    font-weight: 800;
    background: var(--gradient-1);
}

.ongoing-projects-grid {
    display: grid;
    grid-template-columns: repeat(3,  1fr);
    gap: 20px;
}

.ongoing-project-card {
    background: rgba(18, 18, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    position: relative;
}

.ongoing-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(3, 218, 198, 0.55);
    box-shadow: 0 16px 30px rgba(3, 218, 198, 0.14);
}

.ongoing-project-index {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 11px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(3, 218, 198, 0.4);
}

.ongoing-project-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.ongoing-project-card p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.95rem;
    min-height: 72px;
}

.ongoing-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(187, 134, 252, 0.18);
    color: #e5dcff;
    border: 1px solid rgba(187, 134, 252, 0.4);
}

.ongoing-client {
    margin-top: auto;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.ongoing-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 26px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

/* بخش تماس */
.contact {
    padding: 80px 0;
    background-color: var(--surface-dark);
    background-image: radial-gradient(circle at 50% 50%, rgba(3, 218, 198, 0.08) 0%, transparent 70%);
}

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: var(--surface-light);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-dark);
    transition: var(--transition);
    width: 320px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--background-dark);
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* فوتر */
footer {
    background-color: var(--surface-dark);
    padding: 70px 0 20px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo-img {
    width: 80px;
    margin-bottom: 15px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .company-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.footer-logo-text .slogan {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-color);
}

.footer-links {
    flex: 2;
    display: flex;
    gap: 50px;
}

.footer-column {
    flex: 1;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-newsletter {
    flex: 1;
    min-width: 250px;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    background-color: var(--surface-light);
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
}

.newsletter-form input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 0 50px 50px 0;
    background: var(--gradient-1);
    color: var(--background-dark);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--gradient-2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* مسیج باکس برای صفحه اصلی (تم دارک) */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.message-box.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.message-box-content {
    display: flex;
    align-items: center;
    background: var(--surface-light);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-box-icon {
    font-size: 24px;
    margin-left: 15px;
    flex-shrink: 0;
}

.message-box-text {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    flex-grow: 1;
    text-align: right;
}

.message-box-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-tertiary);
    cursor: pointer;
    margin-right: 10px;
    transition: color 0.2s;
}

.message-box-close:hover {
    color: var(--text-secondary);
}

/* انواع مسیج باکس */
.message-box-success .message-box-icon {
    color: #03DAC6;
}

.message-box-error .message-box-icon {
    color: #CF6679;
}

.message-box-warning .message-box-icon {
    color: #FADB14;
}

.message-box-info .message-box-icon {
    color: #BB86FC;
}

/* انیمیشن‌ها */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* رسپانسیو برای تبلت */
@media (max-width: 992px) {
    .product-container {
        flex-direction: column;
    }

    .product-video {
        width: 100%;
        margin-bottom: 40px;
    }

    .video-wrapper {
        height: 400px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fields-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 400px;
    }
    .ongoing-projects-grid {
        grid-template-columns: repeat(2,  1fr);
    }
    .ongoing-projects-board {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* هدر */
    header {
        position: relative;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        position: relative;
        min-height: 70px;
    }

    .logo {
        margin-bottom: 0;
        order: 1;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 2;
        position: relative;
        top: auto;
        right: auto;
        z-index: 1002;
    }

    nav {
        position: static;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface-dark);
        z-index: 1001;
        padding: 20px 0;
        margin: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    .ongoing-projects-grid {
        grid-template-columns: 1fr;
    }
    nav ul li {
        text-align: center;
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        font-size: 18px;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    nav ul li a:hover {
        background-color: rgba(187, 134, 252, 0.1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1002;
    }

    /* بخش اصلی */
    .hero {
        padding: 60px 0 60px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .slogan {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-visual {
        width: 100%;
        margin-top: 30px;
    }

    .floating-elements {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .floating-card:nth-child(1) {
        top: 30px;
        right: 30px;
    }

    .floating-card:nth-child(2) {
        top: 120px;
        right: 120px;
    }

    .floating-card:nth-child(3) {
        top: 200px;
        right: 50px;
    }

    .floating-card:nth-child(4) {
        top: 80px;
        right: 180px;
    }

    /* بخش محصول */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .product-info h3 {
        font-size: 1.5rem;
    }

    .product-info p {
        font-size: 1rem;
    }

    .feature-item {
        margin-bottom: 12px;
    }

    .feature-item span {
        font-size: 0.95rem;
    }

    .demo-btn {
        width: 100%;
        justify-content: center;
    }

    /* بخش تیم */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        padding: 30px 20px;
    }

    .team-icon {
        width: 70px;
        height: 70px;
    }

    .team-icon i {
        font-size: 1.8rem;
    }

    .team-card h3 {
        font-size: 1.3rem;
    }

    .team-card p {
        font-size: 0.95rem;
    }

    /* بخش حوزه‌ها */
    .fields-container {
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        justify-content: center;
    }

    .member-preview-bio {
        min-height: 0;
    }

    .ongoing-board-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* بخش تماس */
    .contact {
        padding: 60px 0;
    }

    .contact-item {
        padding: 20px 15px;
        width: 100%;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.2rem;
    }

    .contact-item h3 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.95rem;
    }

    /* فوتر */
    footer {
        padding: 50px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-links {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-newsletter {
        width: 100%;
    }
}

/* رسپانسیو برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .slogan {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .video-wrapper {
        height: 250px;
    }

    .product-info h3 {
        font-size: 1.3rem;
    }

    .product-info p {
        font-size: 0.95rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }

    .team-card {
        padding: 25px 15px;
    }

    .team-card h3 {
        font-size: 1.2rem;
    }

    .team-card p {
        font-size: 0.9rem;
    }
}
