/* ==================== CSS Variables & Reset ==================== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --bg-dark: #0a0a14;
    --bg-darker: #06060e;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6c6c80;
    --border-color: #1e1e33;
    --discord: #5865F2;
    --success: #00e676;
    --danger: #ff4757;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --radius-lg: 20px;
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

/* ==================== Preloader ==================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 1.2rem;
    color: var(--primary-light);
    letter-spacing: 3px;
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-svg {
    width: 45px;
    height: 45px;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--discord);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.nav-cta:hover {
    background: #4752c4;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== Hero ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text {
    color: var(--primary-light);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

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

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

.btn-discord {
    background: var(--discord);
    color: #fff;
}

.btn-discord:hover {
    background: #4752c4;
}

.btn-glow:hover {
    box-shadow: var(--shadow-glow);
}

.btn-glitch {
    position: relative;
    overflow: hidden;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.btn-lg {
    padding: 16px 35px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-light);
}

.stat-plus, .stat-percent {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 8px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 25%;
    display: none;
}

.hero-card-3d {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ==================== Sections General ==================== */
section {
    padding: 80px 20px;
    position: relative;
}

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

.section-subtitle {
    display: inline-block;
    background: var(--bg-card);
    color: var(--primary-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
    text-align: center;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: right;
    margin-bottom: 20px;
    padding: 0 10px;
    display: inline-block;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.service-features i.fa-check {
    color: var(--success);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.featured-service {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ==================== Pricing & Tabs ==================== */
.pricing {
    padding: 80px 20px;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

.pricing-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.pricing-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.plan-icon {
    font-size: 2rem;
    color: var(--primary);
}

.popular {
    border-color: var(--primary);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.ultimate {
    border-color: var(--accent);
}

.pricing-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-price {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.currency {
    font-size: 1.2rem;
    vertical-align: super;
}

.amount {
    font-size: 3.5rem;
    margin: 0 5px;
}

.period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
}

.dollar-price .currency {
    font-size: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: auto;
    padding: 0;
}

.plan-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.plan-features i.fa-check-circle {
    color: var(--success);
}

.plan-features i.fa-times-circle {
    color: var(--danger);
}

.plan-features i.fa-star {
    color: #ffc048;
}

.text-green {
    color: var(--success) !important;
    font-weight: bold;
}

.text-red {
    color: var(--danger) !important;
    font-weight: bold;
}

/* Add-ons */
.addons {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.addons h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-light);
}

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

.addon-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.addon-item:hover {
    border-color: var(--primary);
}

.addon-icon {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.addon-info h4 {
    margin-bottom: 5px;
}

.addon-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.addon-price {
    margin-right: auto;
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Bot Showcase */
.bot-showcase {
    max-width: 800px;
    margin: 0 auto;
}

.bot-card-premium {
    background: var(--bg-card);
    border-radius: 25px;
    padding: 50px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bot-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.bot-card-content {
    position: relative;
    z-index: 1;
}

.bot-premium-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.bot-card-premium h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.bot-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.bot-features-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.feature-item i {
    color: var(--primary);
}

.bot-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.price-usd, .price-sar {
    text-align: center;
}

.big-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
}

.price-currency {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-divider {
    font-size: 2rem;
    color: var(--border-color);
}

.api-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ==================== Stats ==================== */
.stats {
    background: var(--bg-darker);
    position: relative;
    padding: 60px 20px;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108,92,231,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.stat-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-info {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-light);
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-info span {
    font-size: 2.2rem;
}

.stat-box p {
    color: var(--text-secondary);
}

.counter, .stat-number {
    display: inline-block;
}

/* ==================== Discord CTA ==================== */
.discord-cta {
    text-align: center;
    padding: 60px 20px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 3rem;
    color: var(--discord);
    margin-bottom: 20px;
}

.discord-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.discord-cta p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-arrow {
    margin-right: 5px;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-darker);
    padding: 60px 20px 20px;
    border-top: 1px solid var(--border-color);
}

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

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo i {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: 0.3s;
}

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

.footer-links h4, .footer-contact h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-links a, .footer-contact a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

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

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-made i {
    color: var(--accent);
}

/* ==================== Music Player ==================== */
.music-player {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.music-player button {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-player button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.7);
}

.music-player button.playing {
    animation: musicPulse 1.5s infinite;
}

@keyframes musicPulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(108, 92, 231, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

/* ==================== Scroll to Top ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: 0.3s;
}

.scroll-top:hover {
    background: var(--primary-dark);
}

/* ==================== Particles ==================== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 15px;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
}
