/* ===== CSS Variables ===== */
:root {
    --primary-purple: #c44ff5;
    --secondary-purple: #b946e8;
    --dark-purple: #8b2fc9;
    --bg-black: #0a0a0a;
    --bg-dark: #1a0a1f;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --gradient-purple: linear-gradient(135deg, #c44ff5 0%, #b946e8 100%);
    --shadow-purple: 0 10px 30px rgba(196, 79, 245, 0.3);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    color-scheme: dark;
    width: 100%;
    max-width: 100vw;
}

body {
    background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
    position: relative;
}

/* Prevent overflow on all sections */
section {
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(196, 79, 245, 0.2);
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(196, 79, 245, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.btn-link-account {
    background: var(--gradient-purple);
    color: var(--text-white) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(196, 79, 245, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
}

.btn-link-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 79, 245, 0.6);
    animation: none;
}

.btn-link-account::after {
    display: none;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(196, 79, 245, 0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(196, 79, 245, 0.6), 0 0 20px rgba(196, 79, 245, 0.4);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Scale video for better coverage */
@media (min-aspect-ratio: 16/9) {
    .hero-video iframe {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video iframe {
        width: 177.78vh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(26, 10, 31, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--text-white);
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 79, 245, 0.5);
}

.btn-secondary {
    background: rgba(196, 79, 245, 0.1);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--gradient-purple);
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-large {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
}

.btn-copy {
    background: rgba(196, 79, 245, 0.1);
    color: var(--primary-purple);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-purple);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--gradient-purple);
    color: var(--text-white);
}

/* ===== Server Info Cards ===== */
.server-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 79, 245, 0.2);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-purple);
}

.info-card span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.info-card small {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    color: var(--primary-purple);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== Particles ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(196, 79, 245, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(196, 79, 245, 0.8);
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ===== Sections ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Features Section ===== */
.features {
    background: var(--bg-black);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(26, 10, 31, 0.5);
    border: 1px solid rgba(196, 79, 245, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-purple);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--text-white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== Server Details Section ===== */
.server-details {
    background: var(--bg-dark);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(196, 79, 245, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-card:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-purple);
}

.detail-card i {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.detail-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

/* ===== Call to Action ===== */
.cta {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 10, 31, 0.95) 100%);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    border-top: 2px solid rgba(196, 79, 245, 0.3);
    border-bottom: 2px solid rgba(196, 79, 245, 0.3);
}

.cta h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(196, 79, 245, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 3rem 0;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--text-gray);
}

.footer-links h4,
.footer-social h4 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 79, 245, 0.1);
    border: 1px solid var(--primary-purple);
    border-radius: 50%;
    color: var(--primary-purple);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gradient-purple);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(196, 79, 245, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-gray);
}

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

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .container {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .cta h2 {
        font-size: 3rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo img {
        height: 35px;
    }

    .nav-logo span {
        font-size: 1.25rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(196, 79, 245, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .btn-link-account {
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .btn-large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .server-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .info-card {
        min-width: 180px;
        padding: 1.25rem 1.5rem;
    }

    .container {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid,
    .details-grid {
        gap: 1.5rem;
    }

    .feature-card,
    .detail-card {
        padding: 1.5rem;
    }

    .cta {
        padding: 4rem 1rem;
    }

    .cta h2 {
        font-size: 2.25rem;
        letter-spacing: 1px;
    }

    .cta p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        gap: 2rem;
        padding: 2rem 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 0.75rem;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-logo span {
        font-size: 1.1rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-text {
        font-size: 0.75rem;
    }

    .scroll-arrow {
        font-size: 1.25rem;
    }

    .nav-menu {
        padding: 1rem;
    }

    .btn-link-account {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        max-width: 100%;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .info-card {
        min-width: 150px;
        padding: 1rem;
    }

    .info-card i {
        font-size: 1.5rem;
    }

    .info-card span {
        font-size: 1.25rem;
    }

    .info-card small {
        font-size: 0.8rem;
    }

    .container {
        padding: 2rem 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .features-grid,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card,
    .detail-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .detail-card i {
        font-size: 2.5rem;
    }

    .detail-card h4 {
        font-size: 1rem;
    }

    .detail-value {
        font-size: 1.25rem;
    }

    .cta {
        padding: 3rem 0.75rem;
    }

    .cta h2 {
        font-size: 1.75rem;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }

    .cta p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
        text-align: center;
    }

    .footer-logo img {
        height: 50px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }
}
