/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

/* ============================================
   BACKGROUND & EFFECTS
   ============================================ */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 56, 168, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.03) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0, 25px 25px; }
    100% { background-position: 50px 50px, 75px 75px; }
}

/* Energy Rays */
.energy-rays {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ray {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-gold), transparent);
    opacity: 0.3;
    animation: rayPulse 3s ease-in-out infinite;
}

.ray-1 {
    left: 20%;
    animation-delay: 0s;
}

.ray-2 {
    left: 40%;
    animation-delay: 0.5s;
}

.ray-3 {
    right: 40%;
    animation-delay: 1s;
}

.ray-4 {
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes rayPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(1.2);
    }
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   HERO CONTENT LAYOUT
   ============================================ */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    height: 100%;
}

/* ============================================
   CHARACTERS POSITIONING
   ============================================ */
.hero-characters {
    position: relative;
    height: 100%;
}

.character {
    position: absolute;
    transition: transform 0.3s ease;
    height: 550px;
    opacity: 0;
}

/* LEFT SIDE - Heroes */
.hero-left .char-1 {
    left: 48%;
    bottom: 8%;
    width: 390px;
    z-index: 4;
}

.hero-left .char-2 {
    left: 32%;
    bottom: 12%;
    width: 310px;
    z-index: 3;
}

.hero-left .char-3 {
    left: 18%;
    bottom: 10%;
    width: 410px;
    z-index: 2;
}

.hero-left .char-4 {
    left: 2%;
    bottom: 20%;
    width: 250px;
    z-index: 1;
}

/* RIGHT SIDE - Villains */
.hero-right .char-5 {
    right: 48%;
    bottom: 15%;
    width: 400px;
    z-index: 4;
}

.hero-right .char-6 {
    right: 46%;
    bottom: 12%;
    width: 280px;
    z-index: 3;
}

.hero-right .char-7 {
    right: 10%;
    bottom: 10%;
    width: 410px;
    z-index: 2;
}

.hero-right .char-8 {
    right: -5%;
    bottom: 20%;
    width: 500px;
    z-index: 1;
}

/* Character Placeholder Styles */
.char-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    position: relative;
}

.char-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.char-placeholder span {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


/* ============================================
   CENTER - Logo & CTA
   ============================================ */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    z-index: var(--z-hero);
}

.hero-logo {
    text-align: center;
}

.xavier-bg {
    position: absolute;
    width: 400px;
    height: 325px;
    opacity: 0.15;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xavier-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo-x {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow:
        3px 3px 0 var(--primary-gold),
        6px 6px 20px rgba(0, 56, 168, 0.3);
}

.logo-universe {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow:
        2px 2px 0 var(--primary-blue),
        4px 4px 15px rgba(255, 215, 0, 0.4);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 1rem;
    opacity: 0.8;
}

.hero-cta {
    margin-top: 2rem;
}

.platform-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 56, 168, 0.1);
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    white-space: nowrap;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 3px solid var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
    transform: rotate(-45deg);
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* 1440px */
@media (max-width: 1440px) {
    .character {
        height: 450px;
    }

    .hero-left .char-1 {
        width: 320px;
        left: 45%;
    }

    .hero-left .char-2 {
        width: 260px;
        left: 28%;
    }

    .hero-left .char-3 {
        width: 340px;
        left: 14%;
    }

    .hero-left .char-4 {
        width: 210px;
        left: 0%;
    }

    .hero-right .char-5 {
        width: 330px;
        right: 45%;
    }

    .hero-right .char-6 {
        width: 230px;
        right: 42%;
    }

    .hero-right .char-7 {
        width: 340px;
        right: 8%;
    }

    .hero-right .char-8 {
        width: 420px;
        right: -10%;
    }
}

/* 1280px */
@media (max-width: 1280px) {
    .character {
        height: 400px;
    }

    .hero-left .char-1 {
        width: 280px;
        left: 42%;
    }

    .hero-left .char-2 {
        width: 230px;
        left: 24%;
    }

    .hero-left .char-3 {
        width: 300px;
        left: 10%;
    }

    .hero-left .char-4 {
        width: 180px;
        left: -2%;
    }

    .hero-right .char-5 {
        width: 290px;
        right: 42%;
    }

    .hero-right .char-6 {
        width: 200px;
        right: 38%;
    }

    .hero-right .char-7 {
        width: 300px;
        right: 6%;
    }

    .hero-right .char-8 {
        width: 370px;
        right: -8%;
    }
}

/* ============================================
   1024px - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 850px;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero-center {
        padding: 5rem;
    }

    .hero-cta {
        margin-top: 4rem;
    }

    .platform-badges {
        flex-direction: column;
        align-items: center;
    }

    /* Ajustar personajes del lado izquierdo */
    .hero-left .char-1 {
        bottom: -3%;
    }

    .hero-left .char-3 {
        width: 350px;
        left: 18%;
        bottom: 30%;
    }

    .hero-left .char-4 {
        width: 200px;
        left: 2%;
        bottom: 45%;
    }

    /* Ajustar villanos del lado derecho */
    .hero-right .char-5 {
        bottom: -3%;
    }

    .hero-right .char-7 {
        width: 350px;
        right: 10%;
        bottom: 30%;
    }

    .hero-right .char-8 {
        width: 320px;
        right: -5%;
        bottom: 45%;
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
        overflow-x: hidden;
        min-height: 840px;
    }

    .hero-content {
        padding: 1rem;
        grid-template-columns: 1fr auto 1fr;
        width: 100%;
        align-items: flex-start;
    }

    .character {
        height: 400px;
    }

    /* Mostrar solo Wolverine y Cyclops en la izquierda */
    .hero-left .char-1 {
        width: 240px;
        left: 5%;
        bottom: -6%;
    }

    .hero-left .char-2 {
        width: 200px;
        left: -5%;
        bottom: 15%;
    }

    .hero-left .char-3 {
        width: 300px;
        left: 18%;
        bottom: 30%;
    }

    .hero-left .char-4 {
        width: 180px;
        left: 2%;
        bottom: 50%;
    }

    /* Mostrar solo Magneto y Jean Grey en la derecha */
    .hero-right .char-5 {
        width: 240px;
        right: 5%;
        bottom: -6%;
    }

    .hero-right .char-6 {
        width: 200px;
        right: -5%;
        bottom: 15%;
    }

    .hero-right .char-7 {
        width: 300px;
        right: 10%;
        bottom: 30%;
    }

    .hero-right .char-8 {
        width: 280px;
        right: -5%;
        bottom: 50%;
    }

    .hero-center {
        padding: 0.5rem;
        max-width: 250px;
        text-align: center;
    }

    .logo-x {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    .logo-universe {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .platform-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge {
        font-size: 0.8rem;
    }

    .hero-cta {
        margin-top: 4rem;
    }
}

/* Extra Small Devices - 320px */
@media (max-width: 480px) {
    .hero-section {
        min-height: 845px;
    }

    .hero-content {
        padding: 0.5rem;
        align-items: flex-start;
    }

    .hero-center {
        padding: 0.5rem;
        max-width: 100%;
        margin-top: 10px;
    }

    .hero-cta {
        margin-top: 115px;
    }

    /* Ocultar todos los personajes en pantallas pequeñas */
    .character {
        display: none;
    }

    .logo-x {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .logo-universe {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .badge {
        font-size: 0.7rem;
        white-space: nowrap;
    }
}
