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

:root {
    --purple: #a855f7;
    --pink: #ec4899;
    --orange: #f97316;
    --blue: #3b82f6;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --light: #f8f9fa;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--pink), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

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

/* Header */
header {
    padding: 20px 0;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-nex {
    color: var(--purple);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5),
                 0 0 30px rgba(168, 85, 247, 0.3);
    animation: glow-purple 3s ease-in-out infinite;
}

.logo-card {
    color: var(--pink);
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.5),
                 0 0 30px rgba(236, 72, 153, 0.3);
    animation: glow-pink 3s ease-in-out infinite;
    animation-delay: 1s;
}

.logo-pro {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4),
                 0 0 25px rgba(255, 255, 255, 0.2);
    animation: glow-white 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes glow-purple {
    0%, 100% {
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.5),
                     0 0 30px rgba(168, 85, 247, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(168, 85, 247, 0.8),
                     0 0 50px rgba(168, 85, 247, 0.5),
                     0 0 70px rgba(168, 85, 247, 0.3);
    }
}

@keyframes glow-pink {
    0%, 100% {
        text-shadow: 0 0 20px rgba(236, 72, 153, 0.5),
                     0 0 30px rgba(236, 72, 153, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(236, 72, 153, 0.8),
                     0 0 50px rgba(236, 72, 153, 0.5),
                     0 0 70px rgba(236, 72, 153, 0.3);
    }
}

@keyframes glow-white {
    0%, 100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4),
                     0 0 25px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.6),
                     0 0 40px rgba(255, 255, 255, 0.4),
                     0 0 60px rgba(255, 255, 255, 0.2);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    transition: width 0.3s;
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero */
.hero {
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange), var(--blue));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-move 8s ease infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 22px;
    color: rgba(248, 249, 250, 0.8);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
}

.btn-primary::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;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Countdown Section */
.countdown-section {
    padding: 80px 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.countdown-item:hover {
    transform: scale(1.05);
    border-color: rgba(168, 85, 247, 0.5);
}

.countdown-value {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 16px;
    color: rgba(248, 249, 250, 0.7);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.soon-badge {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 50px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
}

/* Features */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card[onclick] {
    cursor: pointer;
}

.feature-card[onclick]:active {
    transform: translateY(-8px) scale(0.98);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: rgba(248, 249, 250, 0.7);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Steps Section */
.steps {
    padding: 80px 0;
    background: rgba(168, 85, 247, 0.05);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--purple);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.step-card p {
    color: rgba(248, 249, 250, 0.7);
    line-height: 1.8;
}

/* Stats */
.stats {
    padding: 80px 0;
}

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

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: rgba(168, 85, 247, 0.5);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(248, 249, 250, 0.7);
    font-size: 16px;
}

/* CTA */
.cta {
    padding: 100px 0;
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
    border-radius: 30px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(248, 249, 250, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(248, 249, 250, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li a {
        display: block;
        padding: 18px 10px;
        font-size: 18px;
    }

    .nav-links li a::before {
        display: none;
    }

    .nav-links li a:hover {
        background: rgba(168, 85, 247, 0.1);
        padding-right: 20px;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

    /* Sections */
    .section-title {
        font-size: 28px;
        padding: 0 15px;
    }

    .glass-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    /* Countdown */
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .countdown-item {
        padding: 20px 10px;
    }

    .countdown-value {
        font-size: 32px;
    }

    .countdown-label {
        font-size: 13px;
    }

    .soon-badge {
        font-size: 18px;
        padding: 12px 32px;
    }

    /* Features Grid */
    .features-grid,
    .steps-container,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .step-card {
        padding: 30px 25px;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 16px;
    }

    .cta-card {
        padding: 50px 25px;
        border-radius: 20px;
    }
}

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

    .hero p {
        font-size: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
    }

    .glass-card {
        padding: 25px 15px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 15px 8px;
    }

    .countdown-value {
        font-size: 28px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .soon-badge {
        font-size: 16px;
        padding: 10px 24px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .cta h2 {
        font-size: 26px;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .btn {
        font-size: 15px;
        padding: 12px 25px;
    }

    /* Reduce orb sizes for better mobile performance */
    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 350px;
        height: 350px;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}
