@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cinzel+Decorative:wght@400;700;900&family=Bebas+Neue&display=swap');

:root {
    --burgundy: #6B0F1A;
    --burgundy-dark: #4A0A12;
    --burgundy-light: #8B1A2A;
    --burgundy-mid: #C41E3A;
    --gold: #D4A843;
    --gold-light: #F0C060;
    --cream: #F5E6C8;
    --dark: #0D0D0D;
    --dark-2: #1A0A0A;
    --white: #FFFFFF;
    --gray-light: #F0E8D8;
    
    /* Tribe colors */
    --karizma: #8B1A1A;
    --ged3an: #1A4A1A;
    --bariq: #1A1A6B;
    --7arifa: #6B3A1A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--dark);
    color: var(--cream);
    direction: rtl;
    overflow-x: hidden;
    cursor: default;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    transition: opacity 0.8s, visibility 0.8s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 120px;
    animation: pulseLogo 1.5s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loader-pattern {
    display: flex;
    gap: 8px;
}

.loader-bar {
    width: 8px;
    height: 40px;
    background: var(--burgundy-mid);
    border-radius: 4px;
    animation: loaderBars 1s ease-in-out infinite;
}

.loader-bar:nth-child(2) { animation-delay: 0.15s; background: var(--gold); }
.loader-bar:nth-child(3) { animation-delay: 0.3s; }
.loader-bar:nth-child(4) { animation-delay: 0.45s; background: var(--gold); }
.loader-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes loaderBars {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(180, 30, 50, 0.3);
    transition: all 0.3s;
}

nav.scrolled {
    padding: 10px 40px;
    background: rgba(10, 5, 5, 0.98);
}

.nav-logo {
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s;
}

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

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

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

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

.btn-nav {
    background: var(--burgundy-mid);
    color: white !important;
    padding: 8px 22px;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s !important;
}

.btn-nav:hover {
    background: var(--gold) !important;
    color: var(--dark) !important;
    transform: translateY(-2px);
}

.btn-nav::after { display: none !important; }

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

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--cream);
    transition: all 0.3s;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/african-pattern.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transform: scale(1.1);
    animation: heroBgZoom 20s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107,15,26,0.95) 0%, rgba(10,5,5,0.85) 50%, rgba(0,0,0,0.9) 100%);
}

.hero-pattern-border {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to bottom, var(--gold), var(--burgundy-mid), var(--gold));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: slideInRight 1s ease forwards;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(212, 168, 67, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Cinzel Decorative', 'Tajawal', serif;
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 0 60px rgba(180, 30, 50, 0.5);
}

.hero-title span {
    color: var(--gold);
    display: block;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--cream);
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.hero-desc {
    font-size: 16px;
    color: rgba(245, 230, 200, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--burgundy-mid), var(--burgundy));
    color: white;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    padding: 16px 36px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

.hero-logo-display {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInLeft 1s ease 0.3s forwards;
    opacity: 0;
}

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

.hero-logo-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 3px solid rgba(212,168,67,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateBorder 20s linear infinite;
}

.hero-logo-circle::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 58, 0.3);
    animation: rotateBorder 15s linear infinite reverse;
}

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

.hero-logo-inner {
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: pulseLogo 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* SECTION STYLES */
section {
    padding: 90px 40px;
}

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

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

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--burgundy-mid));
    margin: 0 auto;
    border-radius: 2px;
}

/* TRIBES SECTION */
.tribes-section {
    background: var(--dark-2);
    position: relative;
    overflow: hidden;
}

.tribes-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--burgundy-mid), var(--gold));
}

.tribes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tribe-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s;
    cursor: pointer;
    text-decoration: none;
}

.tribe-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.tribe-card-pattern {
    height: 180px;
    background-image: url('../assets/african-pattern.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.tribe-card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.85;
}

.tribe-card[data-tribe="karizma"] .tribe-card-overlay { background: linear-gradient(135deg, #8B1A1A, #5A0A0A); }
.tribe-card[data-tribe="ged3an"] .tribe-card-overlay { background: linear-gradient(135deg, #1A5A1A, #0A3A0A); }
.tribe-card[data-tribe="bariq"] .tribe-card-overlay { background: linear-gradient(135deg, #1A1A8B, #0A0A5A); }
.tribe-card[data-tribe="7arifa"] .tribe-card-overlay { background: linear-gradient(135deg, #6B3A1A, #3A1A0A); }

.tribe-card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    z-index: 2;
}

.tribe-card-body {
    padding: 25px;
}

.tribe-en {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

.tribe-ar {
    font-size: 28px;
    font-weight: 900;
    color: white;
    display: block;
    margin-bottom: 12px;
}

.tribe-desc {
    font-size: 14px;
    color: rgba(245, 230, 200, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tribe-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.tribe-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

/* EVENTS SECTION */
.events-section {
    background: var(--dark);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.event-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,168,67,0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.event-body {
    padding: 20px;
}

.event-date {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.event-location {
    font-size: 14px;
    color: rgba(245,230,200,0.6);
    margin-bottom: 15px;
}

.event-price {
    display: inline-block;
    background: rgba(212,168,67,0.15);
    border: 1px solid rgba(212,168,67,0.4);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

/* PRODUCTS SECTION */
.products-section {
    background: var(--dark-2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,168,67,0.5);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--burgundy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.product-body {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.product-price {
    color: var(--gold);
    font-size: 20px;
    font-weight: 900;
}

/* BUNDLES SECTION */
.bundles-section {
    background: var(--dark);
    position: relative;
}

.bundles-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/african-pattern.jpg');
    background-size: cover;
    opacity: 0.04;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.bundle-card {
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}

.bundle-card.featured {
    background: linear-gradient(135deg, rgba(107,15,26,0.9), rgba(180,30,50,0.6));
    border-color: var(--gold);
    transform: scale(1.05);
}

.bundle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

.bundle-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.bundle-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--dark);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.bundle-name {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
}

.bundle-name-en {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--gold);
    display: block;
    margin-bottom: 25px;
}

.bundle-price {
    margin-bottom: 10px;
}

.bundle-price .amount {
    font-size: 60px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.bundle-price .currency {
    font-size: 20px;
    color: var(--gold);
    font-weight: 700;
}

.bundle-price .period {
    display: block;
    font-size: 14px;
    color: rgba(245,230,200,0.6);
    margin-top: 5px;
}

.bundle-monthly {
    font-size: 15px;
    color: rgba(245,230,200,0.7);
    margin-bottom: 5px;
}

.bundle-free {
    display: inline-block;
    background: rgba(100,200,100,0.2);
    color: #90EE90;
    border: 1px solid #90EE90;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
}

.bundle-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 0;
}

.bundle-features {
    list-style: none;
    text-align: right;
    margin-bottom: 30px;
}

.bundle-features li {
    padding: 8px 0;
    color: rgba(245,230,200,0.8);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bundle-features li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 900;
    flex-shrink: 0;
}

.btn-bundle {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    border: none;
}

.btn-bundle-primary {
    background: linear-gradient(135deg, var(--gold), #B8860B);
    color: var(--dark);
}

.btn-bundle-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,168,67,0.4);
}

.btn-bundle-outline {
    background: transparent;
    border: 2px solid var(--burgundy-mid);
    color: var(--cream);
}

.btn-bundle-outline:hover {
    background: var(--burgundy-mid);
    color: white;
}

/* FAQ SECTION */
.faq-section {
    background: var(--dark-2);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.open {
    border-color: rgba(212,168,67,0.4);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: white;
    user-select: none;
}

.faq-question span {
    color: var(--gold);
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 25px;
    color: rgba(245,230,200,0.75);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

/* CONTACT SECTION */
.contact-section {
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(245,230,200,0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--cream);
    font-size: 16px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(196,30,58,0.2);
    border: 1px solid rgba(196,30,58,0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--cream);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    transition: border-color 0.3s;
    outline: none;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
}

.form-group select option {
    background: #1a0a0a;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* FOOTER */
footer {
    background: var(--dark-2);
    border-top: 2px solid rgba(212,168,67,0.3);
    padding: 60px 40px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(245,230,200,0.6);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(245,230,200,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(245,230,200,0.4);
    font-size: 14px;
}

/* AFRICAN PATTERN DECORATIONS */
.pattern-strip {
    height: 8px;
    background-image: url('../assets/african-pattern.jpg');
    background-size: auto 100%;
    opacity: 0.6;
}

/* SCROLL ANIMATIONS */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* REGISTRATION MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--dark-2);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: rgba(245,230,200,0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.modal-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    color: rgba(245,230,200,0.6);
    margin-bottom: 30px;
    font-size: 15px;
}

/* SUCCESS MESSAGE */
.success-box {
    background: rgba(50,200,100,0.1);
    border: 1px solid rgba(50,200,100,0.4);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #90EE90;
    font-size: 16px;
    line-height: 1.8;
}

.member-id-display {
    font-family: 'Bebas Neue', monospace;
    font-size: 36px;
    color: var(--gold);
    display: block;
    margin: 10px 0;
    letter-spacing: 4px;
}

/* MOBILE */
@media (max-width: 1024px) {
    .tribes-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(10,5,5,0.98);
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 999;
        font-size: 20px;
    }
    
    .hero-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero-logo-display { order: -1; }
    .hero-logo-circle { width: 220px; height: 220px; }
    .hero-logo-inner { width: 130px; height: 130px; }
    .hero-cta-group { justify-content: center; }
    
    section { padding: 60px 20px; }
    
    .tribes-grid, .products-grid, .events-grid { grid-template-columns: 1fr; }
    .bundles-grid { grid-template-columns: 1fr; }
    .bundle-card.featured { transform: scale(1); }
    .bundle-card.featured:hover { transform: translateY(-8px); }
    
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    .hero-title { font-size: 42px; }
}

/* TRIBE PAGE SPECIFIC */
.tribe-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tribe-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/african-pattern.jpg');
    background-size: cover;
    opacity: 0.12;
}

.tribe-hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.tribe-badge-large {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    letter-spacing: 8px;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.tribe-name-large {
    font-size: clamp(50px, 8vw, 90px);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.tribe-content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.tribe-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.tribe-feature-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.tribe-feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

/* QUIZ PAGE */
.quiz-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 40px 60px;
    background: var(--dark);
    position: relative;
}

.quiz-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/african-pattern.jpg');
    background-size: cover;
    opacity: 0.05;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.quiz-header {
    text-align: center;
    margin-bottom: 50px;
}

.quiz-progress {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold), var(--burgundy-mid));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.quiz-question-num {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-align: center;
}

.quiz-question-text {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.4;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quiz-option {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: right;
    color: var(--cream);
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.5;
}

.quiz-option:hover {
    border-color: var(--gold);
    background: rgba(212,168,67,0.1);
    transform: scale(1.02);
}

.quiz-option.selected {
    border-color: var(--burgundy-mid);
    background: rgba(196,30,58,0.2);
}

.quiz-result {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.04);
    border: 2px solid var(--gold);
    border-radius: 24px;
    display: none;
}

.quiz-result.show {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.result-tribe-name {
    font-size: 60px;
    font-weight: 900;
    margin: 15px 0;
}

.result-tribe-en {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    letter-spacing: 5px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}
