/* Hero Section - Redesigned for Responsiveness */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0;
    background: linear-gradient(135deg, #1a1c2e 0%, #2d2f4a 100%);
}

[data-theme="light"] .hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

/* Hero Wrapper */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    min-height: 80vh;
}

/* Ensure grid columns are equal */
.hero-wrapper > * {
    width: 100%;
    min-width: 0; /* Prevent grid items from overflowing */
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    padding-right: 1rem;
}

.hero-text {
    max-width: 100%;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #7C73FF, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 115, 255, 0.3);
}

.btn-primary.hero-btn {
    background: linear-gradient(135deg, #7C73FF, #6B63E6);
    border: none;
    color: white;
}

.btn-primary.hero-btn:hover {
    background: linear-gradient(135deg, #6B63E6, #5A52D5);
    color: white;
}

.btn-outline-primary.hero-btn {
    background: transparent;
    border: 2px solid #7C73FF;
    color: #7C73FF;
}

.btn-outline-primary.hero-btn:hover {
    background: #7C73FF;
    color: white;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00B894, #00A884);
    color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    animation: pulse 2s infinite;
}

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

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    padding-left: 1rem;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.hero-image:hover {
    transform: translateY(-10px);
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(124, 115, 255, 0.25) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(124, 115, 255, 0.3) 0%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
    animation-delay: 1.5s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.3) 0%, transparent 70%);
    animation-delay: 3s;
}

.orb-4 {
    width: 70px;
    height: 70px;
    top: 40%;
    right: 30%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-wrapper {
        gap: 3rem;
        max-width: 1200px;
        padding: 0 1.5rem;
    }
    
    .hero-image-container {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .hero-wrapper {
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }
    
    .hero-image-container {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
        min-height: auto;
    }
    
    .hero-content {
        align-items: center;
        order: 1;
        padding-right: 0;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-visual {
        order: 2;
        min-height: 300px;
        padding-left: 0;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-image-container {
        max-width: 500px;
    }
    
    .floating-orb {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0 1.5rem;
    }
    
    .hero-wrapper {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .hero-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-image {
        border-radius: 15px;
    }
    
    .hero-image-container {
        max-width: 400px;
    }
    
    .hero-visual {
        min-height: 250px;
    }
}

/* Dark/Light Theme Adjustments */
[data-theme="light"] .hero-description {
    color: #636E72;
}

[data-theme="light"] .floating-orb {
    opacity: 0.4;
}

[data-theme="light"] .hero-image-glow {
    background: radial-gradient(circle, rgba(124, 115, 255, 0.1) 0%, transparent 70%);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-orb,
    .hero-image-glow,
    .hero-badge {
        animation: none;
    }
    
    .hero-btn:hover {
        transform: none;
    }
    
    .hero-image:hover {
        transform: none;
    }
}

/* Particle and Magical Orb Styles (for JavaScript-generated elements) */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
    animation: particleFloat 10s ease-in-out infinite;
}

.magical-orb {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
    z-index: 1;
}

/* Class-themed particles */
.particle:nth-child(4n) {
    background-color: rgba(220, 53, 69, 0.6); /* Defender - Red */
}

.particle:nth-child(4n+1) {
    background-color: rgba(40, 167, 69, 0.6); /* Medic - Green */
}

.particle:nth-child(4n+2) {
    background-color: rgba(0, 123, 255, 0.6); /* Wizard - Blue */
}

.particle:nth-child(4n+3) {
    background-color: rgba(255, 193, 7, 0.6); /* Augmentor - Gold */
}

/* Class-themed magical orbs */
.magical-orb:nth-child(4n) {
    background: radial-gradient(circle, rgba(220, 53, 69, 0.8) 0%, rgba(220, 53, 69, 0) 70%);
}

.magical-orb:nth-child(4n+1) {
    background: radial-gradient(circle, rgba(40, 167, 69, 0.8) 0%, rgba(40, 167, 69, 0) 70%);
}

.magical-orb:nth-child(4n+2) {
    background: radial-gradient(circle, rgba(0, 123, 255, 0.8) 0%, rgba(0, 123, 255, 0) 70%);
}

.magical-orb:nth-child(4n+3) {
    background: radial-gradient(circle, rgba(255, 193, 7, 0.8) 0%, rgba(255, 193, 7, 0) 70%);
}

.magical-orb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: orbGlow 2s ease-in-out infinite alternate;
}

/* Particle and Orb Animations */
@keyframes particleFloat {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes orbFloat {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes orbGlow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive adjustments for particles and orbs */
@media (max-width: 768px) {
    .particle {
        transform: scale(0.8);
    }
    
    .magical-orb {
        transform: scale(0.8);
    }
} 