/* ========================
   Global Styles & Reset
   ======================== */
:root {
    --primary-cyan: #00d4ff;
    --primary-purple: #a855f7;
    --accent-pink: #ff006e;
    --bg-dark: #1a0f2e;
    --bg-darker: #0f0820;
    --text-white: #ffffff;
    --text-gray: #b8b8d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-darker);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================
   Animated Background
   ======================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0820 0%, #1a0f2e 50%, #2d1b4e 100%);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        100px 200px white,
        200px 100px white,
        300px 300px white,
        400px 150px white,
        500px 400px white,
        150px 450px white,
        250px 50px white,
        600px 300px white,
        700px 200px white,
        50px 100px white,
        800px 400px white,
        350px 500px white,
        450px 250px white,
        550px 100px white,
        650px 450px white,
        750px 150px white,
        850px 350px white,
        950px 250px white,
        1050px 400px white,
        1150px 100px white;
    animation: twinkle 3s ease-in-out infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(168, 85, 247, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========================
   Hero Landing Section
   ======================== */
.hero-landing {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 1.5rem;
}

.hero-content-center {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    max-width: 100%;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================
   Top Badge
   ======================== */
.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    margin-bottom: 2.5rem;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.top-badge i {
    color: var(--primary-cyan);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.top-badge span {
    color: var(--text-white);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 500;
}

/* ========================
   Main Title
   ======================== */
.main-title {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.title-anime {
    background: linear-gradient(135deg, #00d4ff 0%, #00a0e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

.title-nexus {
    color: var(--text-white);
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
    display: inline-block;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* ========================
   Tagline
   ======================== */
.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tagline-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.tagline-item:hover {
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

.tagline-item i {
    color: var(--primary-cyan);
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
}

/* ========================
   Description
   ======================== */
.description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 3rem;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.desc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.desc-item:hover {
    color: var(--text-white);
    transform: scale(1.05);
}

.desc-item i {
    color: var(--accent-pink);
    font-size: clamp(1.1rem, 2.8vw, 1.3rem);
}

/* ========================
   Start Watching Button
   ======================== */
.start-watching-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: clamp(1.2rem, 3vw, 1.4rem) clamp(3rem, 7vw, 4rem);
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    border: none;
    border-radius: 50px;
    color: var(--text-white);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.start-watching-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.start-watching-btn:hover::before {
    left: 100%;
}

.start-watching-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
}

.start-watching-btn i {
    font-size: clamp(1.2rem, 3.2vw, 1.4rem);
}

/* ========================
   Social Section
   ======================== */
.social-section {
    margin-bottom: 3rem;
}

.social-label {
    color: var(--text-gray);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.social-icon {
    width: clamp(52px, 10vw, 60px);
    height: clamp(52px, 10vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--primary-cyan);
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* ========================
   Category Buttons
   ======================== */
.category-buttons {
    position: absolute;
    bottom: clamp(2rem, 5vw, 3.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(0.8rem, 2.5vw, 1.5rem);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 95%;
    padding: 0 1rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: clamp(0.9rem, 2.5vw, 1.1rem) clamp(1.5rem, 4vw, 2rem);
    background: rgba(20, 10, 40, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--text-white);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.category-btn i {
    color: var(--primary-cyan);
    font-size: clamp(1.1rem, 2.8vw, 1.3rem);
}

/* ========================
   Responsive Design
   ======================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .category-buttons {
        max-width: 90%;
        gap: 1rem;
    }
    
    .main-title {
        font-size: clamp(2.5rem, 9vw, 6rem);
    }
    
    .hero-content-center {
        padding: 0 1rem;
    }
}

/* Mobile and Tablets (below 768px) */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        height: auto;
    }

    .hero-landing {
        min-height: 100vh;
        height: auto;
        padding: 3rem 1.5rem;
    }
    
    .hero-content-center {
        padding: 1rem;
    }

    .main-title {
        font-size: clamp(3rem, 10vw, 5rem);
        margin-bottom: 1.8rem;
        letter-spacing: -1.5px;
    }

    .tagline {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tagline-item {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .description {
        gap: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .desc-item {
        font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    }

    .start-watching-btn {
        padding: 1.1rem 3rem;
        font-size: clamp(1.05rem, 3vw, 1.2rem);
        margin-bottom: 2.5rem;
    }
    
    .social-section {
        margin-bottom: 3rem;
    }

    .category-buttons {
        position: relative;
        bottom: auto;
        transform: none;
        margin-top: 2rem;
        left: auto;
        padding: 0 1rem;
        gap: 1rem;
        max-width: 100%;
    }

    .category-btn {
        padding: 0.9rem 1.5rem;
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
        border-radius: 12px;
    }
    
    .category-btn i {
        font-size: clamp(1rem, 2.8vw, 1.2rem);
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    .hero-landing {
        padding: 2.5rem 1.2rem;
    }
    
    .hero-content-center {
        padding: 0.8rem;
    }

    .main-title {
        font-size: clamp(2.5rem, 11vw, 4rem);
        margin-bottom: 1.5rem;
        letter-spacing: -1px;
    }

    .top-badge {
        padding: 0.75rem 1.5rem;
        gap: 0.6rem;
        margin-bottom: 2rem;
    }
    
    .top-badge span {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }
    
    .top-badge i {
        font-size: clamp(1rem, 2.8vw, 1.2rem);
    }

    .tagline {
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .tagline-item {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        gap: 0.5rem;
    }

    .description {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .desc-item {
        font-size: clamp(0.9rem, 2.8vw, 1.05rem);
        gap: 0.5rem;
    }

    .start-watching-btn {
        padding: 1rem 2.5rem;
        font-size: clamp(1rem, 3vw, 1.15rem);
        gap: 0.6rem;
        margin-bottom: 2rem;
    }
    
    .social-section {
        margin-bottom: 2.5rem;
    }
    
    .social-label {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: clamp(48px, 11vw, 56px);
        height: clamp(48px, 11vw, 56px);
        font-size: clamp(1.2rem, 3.2vw, 1.5rem);
        border-radius: 10px;
    }

    .category-buttons {
        gap: 0.8rem;
        margin-top: 1.5rem;
        padding: 0 0.8rem;
    }

    .category-btn {
        padding: 0.85rem 1.4rem;
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        gap: 0.5rem;
        border-radius: 10px;
    }
    
    .category-btn i {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }
}

/* Extra Small Mobile (below 360px) */
@media (max-width: 360px) {
    .hero-landing {
        padding: 2rem 1rem;
    }

    .main-title {
        font-size: clamp(2.2rem, 12vw, 3rem);
        margin-bottom: 1.3rem;
    }
    
    .top-badge {
        padding: 0.7rem 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .top-badge span {
        font-size: clamp(0.8rem, 2.8vw, 0.95rem);
    }
    
    .tagline {
        gap: 1rem;
    }
    
    .tagline-item {
        font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    }
    
    .description {
        gap: 0.8rem;
        margin-bottom: 1.8rem;
    }
    
    .desc-item {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }
    
    .start-watching-btn {
        padding: 0.95rem 2.2rem;
        font-size: clamp(0.95rem, 3.2vw, 1.1rem);
    }
    
    .social-icon {
        width: clamp(46px, 12vw, 52px);
        height: clamp(46px, 12vw, 52px);
    }
    
    .category-btn {
        padding: 0.8rem 1.2rem;
        font-size: clamp(0.8rem, 2.8vw, 0.95rem);
    }
}

/* ========================
   Loading Animation
   ======================== */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-buttons .category-btn {
    animation: slideInFromBottom 0.6s ease-out backwards;
}

.category-buttons .category-btn:nth-child(1) { animation-delay: 0.1s; }
.category-buttons .category-btn:nth-child(2) { animation-delay: 0.2s; }
.category-buttons .category-btn:nth-child(3) { animation-delay: 0.3s; }
.category-buttons .category-btn:nth-child(4) { animation-delay: 0.4s; }
.category-buttons .category-btn:nth-child(5) { animation-delay: 0.5s; }