/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2ECC71;
    --primary-yellow: #F1C40F;
    --white: #FFFFFF;
    --dark-gray: #343A40;
    --transition-smooth: all 0.3s ease;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-switcher {
    left: 30px;
    right: auto;
}

[dir="rtl"] .lang-option:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .lang-arrow {
    margin-left: 0;
    margin-right: auto;
}

/* Font Support */
[lang="fa"] .main-title {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 4.2rem;
}

[lang="ar"] .main-title {
    font-family: 'Noto Sans Arabic', 'Tahoma', sans-serif;
    font-size: 4.2rem;
}

/* Body and HTML */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #0f0f23 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Company Logo Top */
.company-logo-top {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.logo-top-content {
    text-align: left;
}

.company-name-top {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(46, 204, 113, 0.8),
        0 0 20px rgba(46, 204, 113, 0.6);
    letter-spacing: 2px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.company-label-top {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.lang-selector {
    position: relative;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-trigger {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 60px;
}

.lang-trigger:hover {
    color: white;
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow));
}

.lang-arrow {
    font-size: 12px;
    margin-left: auto;
}

.lang-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-dropdown:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    background: transparent;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.lang-option:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow));
}

.flag-img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Particle System */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#particles-canvas {
    width: 100%;
    height: 100%;
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(46, 204, 113, 0.3), rgba(241, 196, 15, 0.3));
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.shape-4 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 7s;
}

.shape-5 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.shape-6 {
    width: 70px;
    height: 70px;
    top: 40%;
    left: 5%;
    animation-delay: 5s;
    animation-duration: 11s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.6;
    }
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main Container */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1000;
    text-align: center;
}

/* Character Container */
.character-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: characterFloat 3s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes characterFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    }
    25% { 
        transform: translateY(-15px) rotate(1deg);
        filter: drop-shadow(0 25px 50px rgba(46, 204, 113, 0.2));
    }
    50% { 
        transform: translateY(-25px) rotate(0deg);
        filter: drop-shadow(0 30px 60px rgba(241, 196, 15, 0.2));
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg);
        filter: drop-shadow(0 25px 50px rgba(46, 204, 113, 0.2));
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(46, 204, 113, 0.4), rgba(241, 196, 15, 0.4));
    opacity: 0.8;
    animation: floatCircle 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.circle-2 {
    width: 50px;
    height: 50px;
    top: 70%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 25%;
    animation-delay: 4s;
    animation-duration: 8s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) scale(1.2);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
}

/* Content */
.content {
    text-align: center;
    position: relative;
    z-index: 10000;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #FFFFFF;
    line-height: 1.1;
    position: relative;
    z-index: 10001;
    font-family: Arial, sans-serif;
    text-shadow: 
        0 0 10px rgba(46, 204, 113, 0.8),
        0 0 20px rgba(46, 204, 113, 0.6),
        0 0 30px rgba(46, 204, 113, 0.4);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(46, 204, 113, 0.8),
            0 0 20px rgba(46, 204, 113, 0.6),
            0 0 30px rgba(46, 204, 113, 0.4);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(46, 204, 113, 1),
            0 0 25px rgba(46, 204, 113, 0.8),
            0 0 35px rgba(46, 204, 113, 0.6);
    }
}

.title-line {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 10001;
    color: #FFFFFF;
}


.subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

.description {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.8;
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Progress Section */
.progress-section {
    margin-bottom: 40px;
    animation: slideInUp 1s ease-out 0.6s both;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0%;
    animation: progressFill 3s ease-out 1s forwards;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes progressFill {
    to { width: 75%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.8s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

.social-link i {
    font-size: 1.2rem;
}


/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        gap: 30px;
        padding: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    [lang="fa"] .main-title,
    [lang="ar"] .main-title {
        font-size: 1.8rem;
    }
    
    .character-image {
        max-height: 300px;
    }
    
    .company-name-top {
        font-size: 1.5rem;
    }
    
    .company-label-top {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }
    
    .company-logo-top {
        top: 20px;
        left: 20px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .language-switcher {
        top: 20px;
        right: 20px;
    }
    
    .lang-trigger {
        min-width: 140px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .lang-option {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .lang-flag {
        font-size: 16px;
    }
    
    .lang-text {
        font-size: 12px;
    }
    
    .floating-circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 20px;
        padding: 15px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    [lang="fa"] .main-title,
    [lang="ar"] .main-title {
        font-size: 1.4rem;
    }
    
    .character-image {
        max-height: 250px;
    }
    
    .company-name-top {
        font-size: 1.2rem;
    }
    
    .company-label-top {
        font-size: 0.5rem;
        letter-spacing: 2px;
    }
    
    .company-logo-top {
        top: 15px;
        left: 15px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* RTL Specific Styles */
[dir="rtl"] .content {
    text-align: right;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .feature-card {
    text-align: center;
}

[dir="rtl"] .company-logo-top {
    left: auto;
    right: 30px;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    [dir="rtl"] .company-logo-top {
        right: 20px;
    }
    
    [dir="rtl"] .language-switcher {
        left: 20px;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .company-logo-top {
        right: 15px;
    }
    
    [dir="rtl"] .language-switcher {
        left: 15px;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .character-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .language-switcher,
    .bg-elements,
    .floating-elements {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
