/* ==========================================
   HEROES SECTION - EPIC AVENGERS STYLE
   ========================================== */

/* Heroes Hero Section */
.heroes-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.heroes-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.heroes-tagline {
    font-size: 1.5rem;
    margin: var(--spacing-md) 0;
}

.heroes-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

/* Heroes Grid Section */
.heroes-grid {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.heroes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Card */
.hero-card {
    perspective: 1500px;
    height: 700px;
    cursor: pointer;
    position: relative;
}

.hero-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.hero-card.flipped .hero-card-inner {
    transform: rotateY(180deg);
}

.hero-card-front,
.hero-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-card[data-realm="empathy"] .hero-card-front {
    border-color: rgba(236, 72, 153, 0.3);
}

.hero-card[data-realm="drive"] .hero-card-front {
    border-color: rgba(96, 165, 250, 0.3);
}

.hero-card[data-realm="genius"] .hero-card-front {
    border-color: rgba(52, 211, 153, 0.3);
}

.hero-card[data-realm="exploration"] .hero-card-front {
    border-color: rgba(251, 191, 36, 0.3);
}

/* Hero Card Front */
.hero-card-front {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.empathy-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
}

.drive-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.genius-gradient {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.exploration-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
}

.hero-icon-large {
    font-size: 5rem;
    color: white;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

.realm-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Profile */
.hero-profile {
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    flex: 1;
}

.hero-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    margin: -50px auto var(--spacing-md);
    z-index: 10;
}

.empathy-border { border: 4px solid #ec4899; }
.drive-border { border: 4px solid #3b82f6; }
.genius-border { border: 4px solid #10b981; }
.exploration-border { border: 4px solid #f59e0b; }

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    filter: blur(20px);
}

.empathy-glow { background: #ec4899; }
.drive-glow { background: #3b82f6; }
.genius-glow { background: #10b981; }
.exploration-glow { background: #f59e0b; }

/* Hero Avatar Container */
.hero-avatar {
    overflow: hidden;
    border-radius: 50%;
    position: relative;
}

.hero-avatar-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* No hover transform - prevents clipping */
.hero-card:hover .hero-avatar-img {
    /* No transform needed */
}

.hero-avatar-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    z-index: 2;
}

.hero-name {
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.25rem;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.gradient-text-empathy {
    background: linear-gradient(135deg, #ec4899, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-drive {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-genius {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-exploration {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.hero-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
    padding: 0 var(--spacing-md) var(--spacing-md);
    display: grid;
    gap: var(--spacing-sm);
}

.stat {
    text-align: left;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-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;
}

.empathy-stat { background: linear-gradient(90deg, #ec4899, #ef4444); }
.drive-stat { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.genius-stat { background: linear-gradient(90deg, #10b981, #06b6d4); }
.exploration-stat { background: linear-gradient(90deg, #f59e0b, #ec4899); }

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hero CTA Button */
.hero-cta {
    margin: var(--spacing-md) auto;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.empathy-btn { border-color: #ec4899; }
.drive-btn { border-color: #3b82f6; }
.genius-btn { border-color: #10b981; }
.exploration-btn { border-color: #f59e0b; }

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.empathy-btn:hover {
    background: linear-gradient(135deg, #ec4899, #ef4444);
    border-color: transparent;
}

.drive-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: transparent;
}

.genius-btn:hover {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-color: transparent;
}

.exploration-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    border-color: transparent;
}

/* Hero Card Back (Detail View) */
.hero-card-back {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    transform: rotateY(180deg);
    padding: var(--spacing-lg);
    overflow-y: auto;
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-md);
}

.hero-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.hero-origin-title {
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-origin-text {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.powers-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    margin: var(--spacing-lg) 0 var(--spacing-md);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.powers-list {
    display: grid;
    gap: var(--spacing-sm);
}

.power-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.hero-card[data-realm="empathy"] .power-item { border-left-color: #ec4899; }
.hero-card[data-realm="drive"] .power-item { border-left-color: #3b82f6; }
.hero-card[data-realm="genius"] .power-item { border-left-color: #10b981; }
.hero-card[data-realm="exploration"] .power-item { border-left-color: #f59e0b; }

.power-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.power-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.power-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: white;
    font-size: 1rem;
}

.power-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.hero-mission {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.hero-mission i {
    font-size: 1.5rem;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.hero-mission p {
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* Unite Section */
.heroes-unite {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    position: relative;
}

.unite-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.unite-title {
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: var(--spacing-md);
    letter-spacing: 4px;
}

.unite-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.unite-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.formula-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.formula-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border: 3px solid;
    animation: pulse-gentle 2s ease-in-out infinite;
}

.formula-icon.empathy-glow {
    background: linear-gradient(135deg, #ec4899, #ef4444);
    border-color: #ec4899;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
}

.formula-icon.drive-glow {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.formula-icon.genius-glow {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.formula-icon.exploration-glow {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.formula-plus,
.formula-equals {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
}

.formula-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background: linear-gradient(135deg, #ec4899, #3b82f6, #10b981, #f59e0b);
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    animation: rainbow-pulse 3s ease-in-out infinite;
}

@keyframes rainbow-pulse {
    0%, 100% { box-shadow: 0 0 50px rgba(236, 72, 153, 0.5); }
    25% { box-shadow: 0 0 50px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 50px rgba(16, 185, 129, 0.5); }
    75% { box-shadow: 0 0 50px rgba(245, 158, 11, 0.5); }
}

.formula-result span {
    font-size: 1.2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    line-height: 1.3;
}

.unite-powers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.unite-power {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.unite-power:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.unite-power i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: var(--spacing-sm);
}

.unite-power h3 {
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: var(--spacing-xs);
    color: white;
}

.unite-power p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.unite-cta {
    margin-top: var(--spacing-xl);
}

.unite-cta-subtitle {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero Card Hover Power Effects */
.hero-card[data-realm="empathy"]:hover .hero-avatar {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.8), 0 0 60px rgba(236, 72, 153, 0.4);
}

.hero-card[data-realm="drive"]:hover .hero-avatar {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.4);
}

.hero-card[data-realm="genius"]:hover .hero-avatar {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 0 60px rgba(16, 185, 129, 0.4);
}

.hero-card[data-realm="exploration"]:hover .hero-avatar {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8), 0 0 60px rgba(245, 158, 11, 0.4);
}

/* Smooth transitions for hover effects */
.hero-avatar {
    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.hero-banner {
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .heroes-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-card {
        height: 650px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .unite-title {
        font-size: 2rem;
    }
    
    .unite-formula {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .formula-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .result-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .formula-plus,
    .formula-equals {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .heroes-container {
        grid-template-columns: 1fr;
    }
    
    .hero-card {
        height: 600px;
    }
}