.ai-hero-section {
    position: relative;
    height: 80vh;
    max-height: 900px;
    overflow: hidden;
    margin: 120px auto 0;
    max-width: 2000px;
    border-radius: 45px;
    background: #211835;
    isolation: isolate;
    width: 97%;
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

.ai-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ai-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(88, 28, 135, 0.4) 0%,
        rgba(17, 24, 39, 0.7) 50%,
        rgba(8, 12, 28, 0.9) 100%
    );
    backdrop-filter: blur(2px);
}

.ai-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.ai-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ai-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.ai-hero-text {
    max-width: 650px;
    text-align: right;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

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

.ai-hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4rem;
    direction: rtl;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ai-title-line {
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-title-highlight {
    display: block;
    position: relative;
}

.ai-gradient-text {
    background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 25%, #ec4899 50%, #3b82f6 75%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.ai-underline {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, #ec4899, transparent);
    margin-top: 8px;
    border-radius: 2px;
    transform: scaleX(0);
    animation: underlineExpand 1.5s ease-out 1.5s forwards;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes underlineExpand {
    to { transform: scaleX(1); }
}

.ai-hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.7;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    direction: rtl;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.ai-hero-actions {
    direction: rtl;
}

.ai-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 50px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(139, 92, 246, 0.9));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.ai-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.ai-cta-button:hover::before {
    left: 100%;
}


.ai-btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.ai-cta-button:hover .ai-btn-glow {
    opacity: 0.6;
}

.ai-btn-icon {
    transition: transform 0.3s ease;
}

.ai-cta-button:hover .ai-btn-icon {
    transform: translateX(-10px);
}

.logo-maya-first-page {
    position: absolute;
    left: 5%;
    top: 50%;
    width: 35%;
    transform: translateY(-50%);
    z-index: 9999;
    filter: brightness(0.4) contrast(1.2);
}

.ai-tech-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.ai-pulse-dot {
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(168, 85, 247, 0);
    }
}

@media (max-width: 1024px){
    .ai-hero-section{
        margin-top: 80px;
        height: 82vh;
    }
}

@media (max-width: 768px) {
    .logo-maya-first-page{
        left: 12%;
        width: 75%;
    }

    .ai-hero-section {
        border-radius: 25px;
        height: 85vh;
    }
    
    .ai-hero-text {
        margin: auto;
        text-align: center;
    }

    .ai-hero-title{
        font-size: 40px;
    }
    
    .ai-cta-button {
        font-size: 1rem;
    }
    
    .ai-grid-overlay {
        background-size: 30px 30px;
    }
}

@media (max-width: 480px) {
    .ai-hero-section {
        border-radius: 20px;
    }

    .ai-hero-title{
        font-size: 25px;
    }
    
    .ai-container {
        padding: 0 1rem;
    }
    
    .ai-cta-button {
        font-size: 0.9rem;
    }
    
    .ai-orb {
        display: none;
    }
}