@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

/* ===== متغيرات الألوان ===== */
:root {
    --primary-color: #062d33;
    --accent-color: #0cf6a9;
    --secondary-color: #0c8a97;
    --text-color: #ffffff;
    --dark-bg: #021f23;
    --darker-bg: #01171a;
    --card-bg: rgba(12, 138, 151, 0.1);
    --border-color: rgba(12, 246, 169, 0.2);
    --hover-color: rgba(12, 246, 169, 0.05);
}

/* ===== إعدادات عامة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.CodeMirror-indentguideline, .CodeMirror-linenumber, .line-numbers {
  display: none !important;
}
/* ===== القائمة العلوية ===== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(1, 23, 26, 0.9) 70%, transparent);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 80px;
    width: auto;
}

.nav-logo span {
    font-weight: 700;
    font-size: 1.8rem;
    margin-right: 10px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    margin-left: 10px;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--accent-color);
    color: var(--dark-bg);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== البنر الرئيسي ===== */
.banner-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    margin-top: 60px;
}

.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(12, 246, 169, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    padding: 0 20px;
}

.logo-container {
    position: relative;
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    box-shadow: 0 0 30px rgba(12, 246, 169, 0.6);
}

.logo-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 246, 169, 0.2) 0%, transparent 70%);
    filter: blur(10px);
}

.logo {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    object-fit: cover;
}

.info-container {
    width: 45%;
    text-align: right;
}

.title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(12, 246, 169, 0.6);
}

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-bg);
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(12, 246, 169, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(12, 246, 169, 0.8);
}

.btn span {
    margin-left: 10px;
}

/* ===== قسم الاشتراكات ===== */
.plans-section {
    padding: 100px 0;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.plans-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.plan-card {
    position: relative;
    width: 320px;
    background-color: rgba(1, 23, 26, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-bg);
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(12, 246, 169, 0.4);
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--accent-color);
}

.plan-title {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-color);
}

.plan-features {
    margin-bottom: 25px;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.plan-feature svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

.plan-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 1rem;
}

.plan-btn:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-bg);
    border-color: transparent;
}

/* ===== قسم الفيديو التوضيحي ===== */
.video-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.section-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--dark-bg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

.bottom-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--dark-bg);
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(12, 246, 169, 0.3);
    position: relative;
    display: inline-block;
    left: 40%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(12, 246, 169, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 23, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.video-overlay:hover {
    background: rgba(1, 23, 26, 0.3);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(12, 246, 169, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 30px rgba(12, 246, 169, 0.6);
}

.play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

.video-overlay:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(12, 246, 169, 0.8);
}

.video-info {
    padding: 20px;
    text-align: right;
}

.video-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.video-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===== تذييل الصفحة ===== */
.footer {
    background-color: var(--darker-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(12, 246, 169, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== إشعار إضافة المنتج للسلة ===== */
.cart-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(12, 246, 169, 0.5);
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* ===== الأشكال الخلفية ===== */
.bg-shape {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    opacity: 0.03;
    filter: blur(50px);
    z-index: 0;
}

.shape1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    border-radius: 40%;
    animation: float 20s infinite ease-in-out;
}

.shape2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    border-radius: 30%;
    animation: float 25s infinite ease-in-out reverse;
}

.shape3 {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 10%;
    border-radius: 50%;
    animation: float 18s infinite ease-in-out 5s;
}

/* ===== التحريكات ===== */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 30px) rotate(5deg);
    }
    50% {
        transform: translate(20px, 60px) rotate(10deg);
    }
    75% {
        transform: translate(-30px, 40px) rotate(5deg);
    }
}

/* ===== تنسيقات الشاشات المختلفة ===== */
@media (max-width: 991px) {
    .content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .logo-container, .info-container {
        width: 100%;
    }
    
    .title {
        font-size: 2.8rem;
    }
    
    .logo-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .logo {
        width: 170px;
        height: 170px;
    }
    
    .plans-container {
        gap: 20px;
    }
    
    .plan-card {
        width: 100%;
        max-width: 320px;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 767px) {
    .title {
        font-size: 2.3rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .video-title {
        font-size: 1.3rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
    
    .footer-links {
        gap: 15px;
        flex-direction: column;
    }
}
/* ===== زر البرغر للجوال ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
    position: relative;
}

.burger-menu .bar {
    height: 3px;
    width: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== تحريك شرائح البرغر عند النقر ===== */
.burger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== زر البرغر للجوال ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
    position: relative;
}

.burger-menu .bar {
    height: 3px;
    width: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== تحريك شرائح البرغر عند النقر ===== */
.burger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== تعديلات القائمة للجوال ===== */
@media (max-width: 991px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--darker-bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 0;
        transition: right 0.5s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        border-left: 1px solid var(--border-color);
        gap: 40px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.4rem;
    }
    
    .cart-icon {
        margin-top: 20px;
        margin-left: 0;
    }
    
    /* إضافة طبقة داكنة خلف القائمة عند فتحها */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 99;
        display: none;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    .overlay.active {
        display: block;
        opacity: 1;
    }
}

/* ===== تنسيقات شاشة التحميل ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
}

.loading-logo-container {
    margin-bottom: 45px;
}

.loading-logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: rotate 8s linear infinite, pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(12, 246, 169, 0.6);
}

.loading-logo-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 246, 169, 0.3) 0%, transparent 70%);
    filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    object-fit: cover;
    animation: pulse-small 2s ease-in-out infinite;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(12, 246, 169, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(12, 246, 169, 0.2);
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    animation: progress 3s ease forwards;
}

.loading-text {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(12, 246, 169, 0.6);
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    20% {
        width: 20%;
    }
    50% {
        width: 50%;
    }
    80% {
        width: 80%;
    }
    100% {
        width: 100%;
    }
}

@keyframes pulse-small {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}