/* Roblox Gaming Hero Section */
.roblox-hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(15, 15, 35, 0.9), rgba(22, 33, 62, 0.9)), url('/images/bg/bg1.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

/* Floating Blocks Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.block {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.block-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}

.block-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 15px 100%);
}

.block-3 {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

.block-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 70%;
    animation-delay: 3s;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

.block-5 {
    width: 50px;
    height: 50px;
    top: 10%;
    left: 60%;
    animation-delay: 4s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Hero Container */
.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    min-height: 80vh;
}

/* Hero Text */
.hero-text {
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), var(--warning-color));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: 'Black Ops One', cursive;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 162, 255, 0.5);
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-lg);
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 90%;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 15px 100%);
}

.cta-btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--pulse-glow);
}

.cta-btn.primary:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.cta-btn.secondary:hover {
    background: var(--accent-color);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    text-shadow: var(--neon-glow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Character */
.hero-character {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-showcase {
    position: relative;
    width: 100%;
    max-width: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: translateZ(0);
    will-change: transform;
}

.character-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 162, 255, 0.6));
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-style: preserve-3d;
    animation: idle-bounce 2s ease-in-out infinite, float 2.5s ease-in-out infinite;
    position: relative;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, filter;
}

.character-showcase:hover .character-image {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.03);
    filter: drop-shadow(0 0 60px rgba(0, 220, 255, 0.95));
    animation: power-up 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition-duration: 0.2s;
}

.character-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-showcase:hover .character-glow {
    background: radial-gradient(circle, rgba(0, 200, 255, 0.6) 0%, rgba(0, 100, 255, 0.4) 50%, transparent 80%);
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.25);
    filter: blur(10px);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.15);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

@keyframes idle-bounce {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) rotateX(1.5deg) rotateY(1.5deg) scale(1.008);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateZ(0.8deg);
    }
    50% {
        transform: translateY(-6px) rotateZ(-0.8deg);
    }
}

@keyframes power-up {
    0% {
        filter: drop-shadow(0 0 30px rgba(0, 200, 255, 0.8));
        transform: translateY(0) scale(1);
    }
    70% {
        filter: drop-shadow(0 0 70px rgba(0, 220, 255, 1));
        transform: translateY(-12px) scale(1.04);
    }
    100% {
        filter: drop-shadow(0 0 60px rgba(0, 220, 255, 0.95));
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.03);
    }
}

/* Add a subtle shine effect on the character */
.character-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%) rotate(25deg);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 2;
}

.character-showcase:hover .character-image::after {
    transform: translateX(150%) rotate(25deg);
    transition-duration: 1.2s;
}

/* Add particle effects */
.character-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(0, 200, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s ease-out;
    filter: blur(2px);
}

.character-showcase:hover .particle {
    animation: float-up 2s ease-out forwards;
}

@keyframes float-up {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translate(
            calc((var(--tx, 0) * 1px) + (random(20) - 10) * 1px),
            calc((var(--ty, -50) * 1px) + (random(20) - 10) * 1px)
        ) scale(1);
        opacity: 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .roblox-hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-xl);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .stat-divider {
        display: none;
    }
    
    .character-showcase {
        max-width: 300px;
    }
    
    .floating-blocks {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}