/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --light: #f1f5f9;
    --white: #ffffff;
    --gold: #fbbf24;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== LANDING PAGE ===== */
#landing-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    z-index: -1;
}

.background-animated::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===== HEADER ===== */
.landing-header {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
}

.logo i {
    color: var(--gold);
    filter: drop-shadow(0 0 10px var(--gold));
    animation: pulse 2s ease-in-out infinite;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 60px 20px 120px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--light);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    font-size: 32px;
    color: var(--gold);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 14px;
    color: var(--light);
    opacity: 0.8;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    z-index: 100;
    flex-wrap: wrap;
}

.float-btn {
    padding: 16px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: floatIn 0.8s ease-out both;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.info-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    animation-delay: 0.2s;
}

.trailer-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    animation-delay: 0.4s;
}

.register-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--dark);
    animation-delay: 0.6s;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--dark-2);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

/* ===== INFO MODAL ===== */
.info-content {
    max-width: 800px;
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
}

.info-header i {
    font-size: 60px;
    color: var(--gold);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.info-header h2 {
    font-size: 32px;
    font-weight: 800;
}

.info-body {
    display: grid;
    gap: 30px;
}

.info-section {
    background: var(--dark-3);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.info-icon i {
    font-size: 28px;
    color: var(--white);
}

.info-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--gold);
}

.info-section p {
    color: var(--light);
    opacity: 0.9;
    line-height: 1.6;
}

.info-footer {
    margin-top: 40px;
    text-align: center;
}

/* ===== TRAILER MODAL ===== */
.trailer-content {
    max-width: 900px;
}

.trailer-content h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.trailer-content h2 i {
    color: var(--gold);
}

.trailer-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.showcase-item {
    background: var(--dark-3);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-10px);
}

.showcase-3d {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.6s ease;
}

.showcase-item:hover .showcase-3d {
    transform: perspective(1000px) rotateY(180deg);
}

.showcase-3d i {
    font-size: 48px;
    color: var(--white);
}

.showcase-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--gold);
}

.showcase-item p {
    font-size: 14px;
    color: var(--light);
    opacity: 0.8;
}

.trailer-footer {
    text-align: center;
}

/* ===== AUTH FORMS ===== */
.register-content {
    max-width: 500px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--dark-3);
    background: transparent;
    color: var(--light);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    border-color: var(--primary);
}

.auth-tab.active {
    background: var(--gradient);
    border-color: var(--primary);
    color: var(--white);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--light);
}

.form-group label i {
    margin-right: 8px;
    color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-3);
    border: 2px solid var(--dark-3);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--dark);
}

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 14px 32px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== LOADING ===== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
}

.loading-spinner p {
    font-size: 18px;
    color: var(--light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
    }

    .floating-buttons {
        bottom: 20px;
        gap: 10px;
    }

    .float-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .trailer-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .logo {
        font-size: 22px;
    }

    .float-btn span {
        display: none;
    }

    .float-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .float-btn i {
        font-size: 24px;
    }
}
