/* ===================================
   HERO SECTION - 3D Interactive Design
   =================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 120px 20px 80px;
    margin-top: 0; /* اضافه شد */
}

/* ===================================
   3D Background Layers
   =================================== */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Animated Grid */
.hero-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes gridMove {
    0% { transform: translateY(0) rotateX(60deg); }
    100% { transform: translateY(50px) rotateX(60deg); }
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 15s infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; top: 40%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 50%; top: 60%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 70%; top: 30%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 90%; top: 70%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 20%; top: 80%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 60%; top: 15%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 85%; top: 50%; animation-delay: 4.5s; animation-duration: 19s; }

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-60px) translateX(-20px) scale(1);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-30px) translateX(10px) scale(1.1);
        opacity: 0.7;
    }
}

/* Gradient Orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00D4FF 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #FF6B9D 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ===================================
   Hero Content Container
   =================================== */
.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 40px;
}

/* ===================================
   Left Content (Text)
   =================================== */
.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: #FFD700;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.badge-icon {
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
    font-size: clamp(48px, 7vw, 90px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #ffffff;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.title-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   CTA Buttons Group
   =================================== */
.hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-cta-primary {
    position: relative;
    padding: 18px 40px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 50px;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    font-family: IRANSansDN;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.hero-cta-secondary {
    padding: 18px 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: IRANSansDN;
}

.hero-cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.hero-cta-secondary:hover::before {
    left: 100%;
}

.hero-cta-secondary:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* ===================================
   Right Content (3D Visual)
   =================================== */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 3D Card Stack */
.visual-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card-3d {
    position: absolute;
    width: 300px;
    height: 380px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card-3d:hover {
    transform: translateY(-20px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 30px 80px rgba(255, 215, 0, 0.2);
}

/* Card Positioning */
.service-card-3d:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
}

.service-card-3d:nth-child(2) {
    top: 45%;
    left: 35%;
    transform: translate(-50%, -50%) rotate(5deg);
    z-index: 2;
    opacity: 0.8;
    animation: floatCard 6s ease-in-out infinite 2s;
}

.service-card-3d:nth-child(3) {
    top: 55%;
    left: 65%;
    transform: translate(-50%, -50%) rotate(-3deg);
    z-index: 1;
    opacity: 0.6;
    animation: floatCard 6s ease-in-out infinite 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translate(-50%, -50%) rotate(-5deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(-5deg) translateY(-20px); }
}

/* Card Icon */
.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s ease;
}

.service-card-3d:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 107, 157, 0.3) 100%);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFD700;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

.card-arrow {
    transition: transform 0.3s ease;
}

.service-card-3d:hover .card-arrow {
    transform: translateX(5px);
}

/* ===================================
   Scroll Indicator
   =================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1s ease-out 1.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #FFD700;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .service-card-3d {
        width: 250px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .service-card-3d {
        width: 220px;
        height: 280px;
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-card-3d:nth-child(2),
    .service-card-3d:nth-child(3) {
        display: none;
    }
}
