@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary: #211b1b;
    --primary-light: #ffffff;
    --primary-dark: #000000;
    --white: #ffffff;
    --bg-dark: #000000;
    --bg-purple: #000000;
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    --glass-purple: rgba(255, 255, 255, 0.15);
    --border-soft: rgba(0, 0, 0, 0.2);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.7;
}

/* Elegant Purple Background */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at top right, s#000000, #000000);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: moveBlob 25s infinite alternate ease-in-out;
    opacity: 0.4;
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: #000000;
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #000000;
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(80px, 40px) scale(1.1) rotate(15deg); }
}

/* Header - Modern & Floating Glass */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

@media (min-width: 769px) {
    nav {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        flex-direction: row;
        padding: 0;
        border: none;
        box-shadow: none;
        gap: 25px;
        z-index: auto;
    }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-light);
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: var(--primary);
}

/* Dropdown Menu Style */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-purple);
    min-width: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 10px;
    z-index: 1;
    margin-top: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-light);
    display: block;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
}

.dropdown-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* Global Section Background */
section {
    display: none;
    padding-top: 100px;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(15, 23, 42, 0.9)), url('banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

section.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section Styles */
#home {
    padding-top: 0;
    align-items: center;
    justify-content: center;
}

#home.active {
    display: flex;
}

.banner-section {
    text-align: center;
    padding: 120px 20px;
    color: var(--white);
    width: 100%;
    max-width: 1000px;
}

.hero-logo {
    width: 200px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.banner-content h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.dsc-btn {
    background: var(--primary);
    padding: 18px 45px;
    border-radius: 50px;
    color: var(--white) !important;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    border: 2px solid var(--primary-light);
}

.dsc-btn:hover {
    background: var(--white);
    color: var(--primary) !important;
    transform: translateY(-5px);
}

.x-btn {
    background: #000000;
    border-color: #333;
    margin-right: 15px;
}

.x-btn:hover {
    background: #222;
    color: var(--white) !important;
}

.dsc-icon {
    width: 28px;
    height: 28px;
}

/* Store & Jobs Coming Soon Card */
.coming-soon-card {
    background: var(--bg-purple);
    max-width: 700px;
    margin: 40px auto;
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-soft);
}

.coming-soon-card h2 {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 25px;
    font-weight: 900;
}

.coming-soon-card p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.job-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.job-btn {
    background: var(--glass-purple);
    padding: 20px;
    border-radius: 20px;
    font-weight: 800;
    color: var(--primary-light);
    border: 1px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.job-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.job-status {
    margin-top: 30px;
    background: rgba(41, 243, 0, 0.397);
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
}

/* Members Section */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.member-card {
    background: var(--bg-purple);
    padding: 50px 30px;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-light);
}

.member-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 5px solid var(--primary);
    padding: 5px;
    background: var(--bg-dark);
    object-fit: cover;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.section-icon-img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.member-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-light);
    font-weight: 800;
}

.member-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Rules Section Redesign */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-light);
}

.title-line {
    width: 100px;
    height: 6px;
    background: var(--primary);
    margin: 15px auto;
    border-radius: 10px;
}

.rule-card {
    margin-bottom: 40px;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.rule-header:hover {
    background: var(--primary-dark);
}

.rule-icon-img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.rule-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
}

.rule-body {
    display: none;
    animation: slideDown 0.4s ease forwards;
}

.rule-card.active .rule-body {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rule-item {
    margin-bottom: 15px;
    background: var(--bg-purple);
    border-radius: 25px;
    border: 2px solid var(--border-soft);
    overflow: hidden;
    transition: var(--transition);
}

.rule-item:hover {
    border-color: var(--primary-light);
}

.rule-title {
    padding: 25px 35px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rule-title h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-light);
}

.rule-desc {
    display: none;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.rule-item.active .rule-desc {
    display: block;
}

.rule-item.active {
    border-color: var(--primary);
}

.arrow {
    transition: transform 0.3s ease;
    color: var(--primary-light);
}

.rule-item.active .arrow {
    transform: rotate(180deg);
}

/* Activation Section Styles */
.activation-card {
    background: var(--bg-purple);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.terms-content h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.terms-content ul {
    margin-bottom: 30px;
    padding-right: 20px;
}

.terms-content li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.activation-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.terms-content {
    margin-bottom: 30px;
}

.terms-list {
    list-style: none;
    padding: 0;
}

.terms-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.terms-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-light);
    font-weight: bold;
}

.activation-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.activation-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    width: 200px;
}

.option-image-wrapper {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.activation-option:hover .option-image-wrapper {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3);
}

.option-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.option-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hide original buttons */
.btn-agree, .btn-disagree {
    display: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.form-part {
    margin-bottom: 40px;
}

.form-part h3 {
    color: var(--primary-light);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
}

.form-note {
    background: rgba(147, 51, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--primary-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-light);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    header { 
        width: 90%; 
        left: 5%; 
        right: 5%; 
        top: 20px; 
        padding: 15px 5%;
        flex-direction: row;
        justify-content: space-between;
        display: flex !important;
        box-sizing: border-box;
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 5px;
        z-index: 10001;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }

    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 4px;
        background-color: var(--primary);
        border-radius: 4px;
        transition: var(--transition);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    nav { 
        display: none; 
        position: fixed;
        top: 85px;
        left: 5%;
        right: 5%;
        width: 90%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        border: 1px solid var(--border-soft);
        gap: 10px;
        z-index: 9999;
        box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    }

    nav.mobile-active {
        display: flex !important;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        background: transparent;
    }
    
    .nav-link:hover, .nav-link.active {
        background: var(--primary);
        color: var(--white);
    }

    .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
    }

    .banner-content h1 { font-size: 2.8rem; }
    .banner-content p { font-size: 1.2rem; }
    .job-btns { grid-template-columns: 1fr; }
    .hero-logo { width: 150px; }
}
