:root {
    --primary-color: #0a0a0a;
    --secondary-color: #00ff88;
    --accent-color: #8a2be2;
    --light-color: #ffffff;
    --dark-color: #121212;
    --shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --gradient: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-reverse: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --saudi-green: #006c35;
    --saudi-white: #ffffff;
    --primary: #00cc66;
    --dark: #000000;
    --light: #FFFFFF;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --card-bg: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.1);
    --event-bg: rgba(255, 255, 255, 0.05);
    --card-bg-light: rgba(255, 255, 255, 0.95);
    --neon-glow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

.light-mode {
    --dark: #FFFFFF;
    --light: #000000;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: var(--dark);
    --input-bg: rgba(0, 0, 0, 0.05);
    --event-bg: rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--primary-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 0.9rem;
    position: relative;
}

/* شريط التنقل - أكبر حجماً */
header {
    background: var(--nav-bg);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 255, 136, 0.4);
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--light-color);
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
}

.logo i {
    margin-left: 12px;
    color: var(--secondary-color);
    font-size: 1.6rem;
}

.palestine-section {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #000000, #006400, #000000);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 8px #006400; }
    to { box-shadow: 0 0 20px #00ff00, 0 0 30px #006400; }
}

.palestine-flag {
    width: 24px;
    height: 16px;
    background: linear-gradient(180deg, #000000 33%, #ffffff 33%, #ffffff 66%, #009639 66%, #009639 100%);
    margin-left: 10px;
    border-radius: 3px;
    position: relative;
}

.palestine-flag::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33%;
    height: 100%;
    background: #ce1126;
    border-radius: 3px 0 0 3px;
}

.palestine-text {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px #00ff00;
}

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

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 12px 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: translateX(0);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.2) rotate(10deg);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 8px;
}

/* الأقسام الرئيسية */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding-bottom: 12px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--gradient);
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    border-radius: 3px;
}

/* قسم التعريف */
#intro {
    background: 
        radial-gradient(circle at 90% 30%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 70%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    margin-top: 80px;
    border-radius: 0 0 0 60px;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    border-right: 6px solid var(--secondary-color);
}

#intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 70%, rgba(0, 255, 136, 0.05) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><path d="M20,20 Q50,10 80,20 T80,80 Q50,90 20,80 T20,20 Z" fill="none" stroke="%2300ff88" stroke-width="2"/></svg>');
    background-size: cover, 200px 200px;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 100%;
    max-width: 800px;
    margin-right: 5%;
    position: relative;
    z-index: 2;
}

.intro-badge {
    background: var(--gradient);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    display: inline-block;
    animation: pulse 2s infinite;
}

.intro-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    line-height: 1.2;
    position: relative;
}

.intro-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 200px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
}

.intro-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.intro-description {
    background: rgba(18, 18, 18, 0.8);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 40px;
    border-right: 4px solid var(--secondary-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.intro-description::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient);
}

.intro-description p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.8;
    text-align: justify;
}

.intro-description p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.intro-features {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.feature-item {
    background: rgba(0, 255, 136, 0.15);
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 20px;
    padding: 20px 25px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    min-width: 150px;
}

.feature-item:hover {
    transform: translateY(-8px);
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 0 15px 25px rgba(0, 255, 136, 0.3);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.intro-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    font-size: 1.1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-reverse);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
}

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

/* تأثيرات النبض */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* قسم الملوك والدوقات - البطاقات المعدلة */
#about, #unions {
    background: radial-gradient(circle at top left, rgba(138, 43, 226, 0.15), transparent 40%),
                radial-gradient(circle at bottom right, rgba(0, 255, 136, 0.15), transparent 40%),
                var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

.feature-card {
    background: rgba(18, 18, 18, 0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(0, 255, 136, 0.4);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.king-card {
    min-height: 550px;
    grid-column: span 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    animation: cardShine 3s infinite;
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: var(--neon-glow);
    z-index: 10;
}

.feature-card i,
.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 2;
}

.feature-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--primary);
    box-shadow: 0 0 25px rgba(0, 204, 102, 0.6);
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

/* صور الملوك الكبيرة */
.king-card img {
    width: 180px;
    height: 180px;
    border: 6px solid var(--gold);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.9);
}

.feature-card:hover img {
    transform: scale(1.15) rotate(5deg);
    border-color: var(--light);
    box-shadow: 0 0 35px rgba(0, 204, 102, 0.9);
    filter: brightness(1.2);
}

.feature-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 204, 102, 0.6);
}

/* عناوين الملوك الكبيرة */
.king-card h3 {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

.feature-card p {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    color: #dddddd;
}

.feature-card i {
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary);
}

/* أيقونات الملوك الذهبية */
.king-card i {
    color: var(--gold);
    text-shadow: 0 0 18px var(--gold);
    font-size: 2.8rem;
}

/* إضافات جديدة للبطاقات */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.feature-card:hover .card-glow {
    opacity: 0.25;
}

/* توهج ذهبي لبطاقات الملوك */
.king-card .card-glow {
    background: radial-gradient(circle at center, var(--gold) 0%, transparent 70%);
}

.card-neon-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(90deg, var(--primary), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* حدود ذهبية لبطاقات الملوك */
.king-card .card-neon-border {
    background: linear-gradient(90deg, var(--gold), transparent) border-box;
}

.feature-card:hover .card-neon-border {
    opacity: 1;
}

.card-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid var(--primary);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* زوايا ذهبية لبطاقات الملوك */
.king-card .card-corner {
    border-color: var(--gold);
    width: 30px;
    height: 30px;
}

.corner-top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
    border-radius: 15px 0 0 0;
}

.corner-top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 15px 0 0;
}

.corner-bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 15px;
}

.corner-bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 15px 0;
}

.feature-card:hover .card-corner {
    opacity: 1;
}

/* شارات جديدة بديلة */
.rank-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    width: 140px;
    height: 35px;
    background: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 0 15px var(--primary);
    z-index: 3;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* شارات الملوك الذهبية */
.king-card .rank-ribbon {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 0 20px var(--gold);
    height: 40px;
    right: -40px;
    font-size: 1rem;
}

/* قسم الرتب */
#ranks {
    background: radial-gradient(circle at top left, rgba(138, 43, 226, 0.15), transparent 40%),
                radial-gradient(circle at bottom right, rgba(0, 255, 136, 0.15), transparent 40%),
                var(--primary-color);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    perspective: 1000px;
    height: 350px;
    position: relative;
    margin: 0 auto;
    width: 85%;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-item {
    position: absolute;
    width: 240px;
    height: 300px;
    left: calc(50% - 120px);
    top: 15px;
    background: rgba(18, 18, 18, 0.95);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s, opacity 0.5s, box-shadow 0.5s;
    color: var(--light-color);
    text-align: center;
    padding: 20px;
    border: 2px solid rgba(0, 255, 136, 0.4);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: -1;
}

.carousel-item:hover {
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.5);
    transform: translateY(-10px) scale(1.06);
}

.rank-image {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    position: relative;
    transition: var(--transition);
}

.carousel-item:hover .rank-image {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.rank-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.8rem;
    border: 2px solid var(--dark-color);
}

.carousel-item h3 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    color: var(--light-color);
    position: relative;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rank-level {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.carousel-item p {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.5;
    margin-top: 8px;
}

.rank-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: #aaaaaa;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
}

.carousel-nav button.active {
    opacity: 1;
    transform: scale(1.3);
    background: var(--secondary-color);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

/* قسم مميزات المملكة */
#kingdom {
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.15) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(0, 108, 53, 0.15) 100%),
                radial-gradient(circle at 20% 80%, rgba(0, 108, 53, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 108, 53, 0.25) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--saudi-green);
    border-bottom: 3px solid var(--saudi-green);
}

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

.kingdom-feature-card {
    background: linear-gradient(145deg, rgba(0, 108, 53, 0.2), rgba(0, 0, 0, 0.85));
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(0, 108, 53, 0.4);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.kingdom-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--saudi-green), #ffffff, var(--saudi-green));
}

.kingdom-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 108, 53, 0.5);
    border-color: rgba(0, 108, 53, 0.7);
}

.kingdom-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--saudi-green), #00a859);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 108, 53, 0.6);
    transition: var(--transition);
}

.kingdom-feature-card:hover .kingdom-feature-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 0 30px rgba(0, 108, 53, 0.8);
}

.kingdom-feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--saudi-white);
    position: relative;
}

.kingdom-feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 3px;
    background: var(--saudi-green);
    border-radius: 2px;
}

.kingdom-feature-card p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 1rem;
}

.kingdom-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 108, 53, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(0, 108, 53, 0.4);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--saudi-green);
    text-shadow: 0 0 12px rgba(0, 108, 53, 0.6);
    margin-bottom: 10px;
}

.stat-text {
    color: var(--saudi-white);
    font-size: 1.1rem;
}

/* تأثيرات إضافية */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.particles {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: float linear infinite;
}

@keyframes float {
    to {
        transform: translateY(-1000px) rotate(360deg);
    }
}

/* تأثيرات الخلفية المتحركة */
.neon-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.neon-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary), 0 0 24px var(--primary);
    opacity: 0.7;
    animation: floatDot linear infinite;
}

@keyframes floatDot {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(20vw);
        opacity: 0;
    }
}

.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--dark) 70%);
    z-index: -2;
}

.dynamic-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulseParticle 3s infinite alternate;
}

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

.floating-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    width: 35px;
    height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300cc66"><path d="M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17 1.02.3 1.58.3C19 20 22 3 22 3c-1 2-4 5-17 5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: floatLeaf linear infinite;
    filter: drop-shadow(0 0 8px var(--primary));
}

@keyframes floatLeaf {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* التذييل */
footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--light-color);
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
    margin-bottom: 15px;
}

.footer-logo i {
    margin-left: 8px;
    color: var(--secondary-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.4);
}

.social-links a i {
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
    gap: 15px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 5px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.copyright {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* Loader CSS */
.pyramid-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(-20deg);
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    z-index: 10000;
}

.pyramid-loader .loading-text {
    color: #2BDEAC;
    font-size: 1.7rem;
    margin-top: 1.2rem;
    font-family: 'Tajawal', sans-serif;
    text-shadow: 0 0 12px #2BDEAC, 0 0 24px #2BDEAC;
}

.loading-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: spin 4s linear infinite;
}

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

.pyramid-loader .wrapper .side {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    transform-origin: center top;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.pyramid-loader .wrapper .side1 {
    transform: rotateZ(-30deg) rotateY(90deg);
    background: conic-gradient(#2BDEAC, #F028FD, #D8CCE6, #2F2585);
}

.pyramid-loader .wrapper .side2 {
    transform: rotateZ(30deg) rotateY(90deg);
    background: conic-gradient(#2F2585, #D8CCE6, #F028FD, #2BDEAC);
}

.pyramid-loader .wrapper .side3 {
    transform: rotateX(30deg);
    background: conic-gradient(#2F2585, #D8CCE6, #F028FD, #2BDEAC);
}

.pyramid-loader .wrapper .side4 {
    transform: rotateX(-30deg);
    background: conic-gradient(#2BDEAC, #F028FD, #D8CCE6, #2F2585);
}

.pyramid-loader .wrapper .shadow {
    width: 50px;
    height: 50px;
    background: #8B5AD5;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    transform: rotateX(90deg) translateZ(-35px);
    filter: blur(10px);
}

/* Hide loader when page is loaded */
body.loaded .pyramid-loader {
    display: none;
}

/* Theme and Sound Controls */
.theme-switch {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.theme-switch i {
    font-size: 1.5rem;
}

.sound-button {
    position: fixed;
    top: 1.5rem;
    right: 7rem;
    background: var(--card-bg);
    color: var(--light);
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.sound-button i {
    font-size: 1.5rem;
}

.sound-button:hover,
.theme-switch:hover {
    transform: scale(1.2);
    box-shadow: var(--neon-glow);
    background: var(--primary);
    color: var(--dark);
}

.scroll-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: var(--primary);
    color: var(--light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 1.5rem;
    box-shadow: 0 0 15px var(--primary);
}

.scroll-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--neon-glow);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cardShine {
    100% {
        left: 150%;
    }
}

/* تصميم متجاوب */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 10px 16px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        padding: 20px 0;
        gap: 0;
    }

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

    .nav-links li {
        margin: 0;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
    }

    .nav-links a {
        justify-content: center;
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .palestine-section {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .carousel-container {
        width: 90%;
        height: 320px;
    }

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

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .kingdom-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-content {
        margin-right: 0;
        align-items: center;
        text-align: center;
    }

    .intro-title {
        font-size: 2.8rem;
    }

    .intro-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .intro-features {
        justify-content: center;
    }

    .intro-actions {
        justify-content: center;
    }
    
    .king-card {
        min-height: 500px;
    }
    
    .king-card img {
        width: 150px;
        height: 150px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 1.7rem;
    }

    .intro-title {
        font-size: 2.3rem;
    }

    .intro-subtitle {
        font-size: 1.3rem;
    }

    .intro-description {
        padding: 25px;
    }

    .intro-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .feature-item {
        width: 100%;
        max-width: 280px;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-item {
        width: 200px;
        height: 260px;
        left: calc(50% - 100px);
        padding: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .kingdom-stats {
        grid-template-columns: 1fr;
    }
    
    .king-card {
        min-height: 450px;
    }
    
    .king-card img {
        width: 130px;
        height: 130px;
    }
    
    .sound-button {
        right: 5rem;
    }
    
    .nav-container {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.2rem;
        margin-left: 8px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .theme-switch,
    .sound-button {
        width: 50px;
        height: 50px;
    }
    
    .sound-button {
        right: 4.5rem;
    }
    
    .feature-card {
        min-height: 380px;
        padding: 20px;
    }
    
    .feature-card img {
        width: 100px;
        height: 100px;
    }
    
    .king-card {
        min-height: 400px;
    }
    
    .king-card img {
        width: 120px;
        height: 120px;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-description {
        padding: 20px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}