/* ===== GLOBAL STYLES ===== */
:root {
    --primary: #9d4edd;
    --primary-light: #c77dff;
    --primary-dark: #5a189a;
    --accent: #e0aaff;
    --video-accent: #c77dff;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --bg-dark: #0a0014;
    --bg-card: #1a0a2e;
    --border: rgba(157, 78, 221, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0014 0%, #1a0a2e 50%, #2d0a47 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    zoom: 90%;
}

/* ===== FLOATING NAV ===== */
.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 600px;
    padding: 0 20px;
}

.nav-content {
    background: rgba(26, 10, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-content:hover {
    border-color: rgba(157, 78, 221, 0.5);
    background: rgba(26, 10, 46, 0.95);
    box-shadow: 0 12px 40px rgba(157, 78, 221, 0.15);
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.nav-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--accent);
    font-size: 1rem;
    text-decoration: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(157, 78, 221, 0.3);
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* User Profile Navigation */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50px;
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-nav:hover {
    background: rgba(157, 78, 221, 0.2);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

#nav-username {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-cta {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
    flex-shrink: 0;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

@media (max-width: 600px) {
    .nav-content {
        gap: 12px;
        padding: 10px 16px;
    }
    .nav-links a, .nav-cta {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .nav-links {
        gap: 10px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
    top: -200px;
    right: 10%;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 700px;
    animation: slideInLeft 1s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--video-accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.5);
}

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

.btn-outline:hover {
    background: rgba(157, 78, 221, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: 100px 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(157, 78, 221, 0.05) 100%);
    position: relative;
    z-index: 1;
}

.portfolio-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-align: center;
}

.portfolio-section > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
}

.demo-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(157, 78, 221, 0.2);
    box-shadow: 0 20px 60px rgba(157, 78, 221, 0.1);
}

.custom-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.demo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(90, 25, 154, 0.05) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.services-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-align: center;
}

.services-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(90, 25, 154, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--video-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(255, 107, 157, 0.5);
    transform: translateY(-15px);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(90, 25, 154, 0.1) 100%);
    box-shadow: 0 25px 60px rgba(255, 107, 157, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--video-accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== NEWS SECTION ===== */
.news {
    padding: 100px 60px;
    background: linear-gradient(180deg, rgba(157, 78, 221, 0.05) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.12) 0%, rgba(90, 25, 154, 0.06) 100%);
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: 15px;
    padding: 35px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--video-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover {
    border-color: rgba(157, 78, 221, 0.5);
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.18) 0%, rgba(90, 25, 154, 0.1) 100%);
    box-shadow: 0 20px 50px rgba(157, 78, 221, 0.15);
}

.news-card:hover::before {
    opacity: 1;
}

.news-icon {
    font-size: 2.5rem;
    color: var(--video-accent);
    margin-bottom: 20px;
}

.news-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--video-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.news-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-social-area h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-social-area > p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 1rem;
    font-weight: 300;
}

.contact-social-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(157, 78, 221, 0.08));
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--accent);
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.contact-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-btn.disabled:hover {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(199, 125, 255, 0.08));
    color: var(--accent);
    border-color: rgba(157, 78, 221, 0.3);
    transform: none;
    box-shadow: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 30px 100px;
    }
    
    .portfolio-section {
        padding: 60px 30px;
    }
    
    .services-section {
        padding: 60px 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news {
        padding: 60px 30px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-section {
        padding: 60px 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px 80px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content > p {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .portfolio-section {
        padding: 40px 20px;
    }
    
    .portfolio-section h2 {
        font-size: 1.5rem;
    }
    
    .services-section {
        padding: 40px 20px;
    }
    
    .services-desc {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 40px 20px;
    }
    
    .contact-social-area h3 {
        font-size: 1.5rem;
    }
    
    .contact-social-btns {
        gap: 10px;
    }
    
    .contact-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .news {
        padding: 40px 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-card {
        padding: 25px;
    }

    .news-card h3 {
        font-size: 1.1rem;
    }
}

/* ============ DISCORD LOGIN MODAL ============ */
.discord-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a0a2e 0%, #2d0a47 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 50px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(157, 78, 221, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 5001;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

/* Login Section */
.login-section {
    text-align: center;
}

.login-header {
    margin-bottom: 40px;
}

.login-header i {
    font-size: 48px;
    color: #5865F2;
    margin-bottom: 15px;
    display: block;
}

.login-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 13px 28px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-decoration: none;
    width: 100%;
    pointer-events: auto;
    z-index: 5002;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-login-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(157, 78, 221, 0.5);
}

.discord-login-btn:active {
    transform: translateY(0);
}

.discord-login-btn i {
    font-size: 20px;
}

.login-info {
    text-align: left;
    background: rgba(157, 78, 221, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 15px;
}

.login-info p {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.login-info ul {
    list-style: none;
}

.login-info li {
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-info i {
    color: var(--primary);
    font-size: 12px;
}

/* Profile Section */
.profile-section {
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.profile-info {
    text-align: left;
    flex: 1;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.user-id {
    color: var(--text-secondary);
    font-size: 12px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    flex: 1;
    padding: 13px 28px;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.logout-btn {
    width: 100%;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 13px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

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

@keyframes slideUp {
    from {
        transform: translate(-50%, -55%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
        width: 85%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        text-align: center;
    }

    .profile-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}