/* style.css */
:root {
    --gold: #D4AF37;
    --gold-light: #F4E4A6;
    --gold-dark: #B8860B;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-lighter: #2A2A2A;
    --white: #F5F5F5;
    --gray: #888;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --radius: 10px;
}

/* شاشة التحميل المبسطة */
#preloader {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.preloader-logo .logo-icon {
    font-size: 4rem;
    color: var(--gold);
}

@keyframes diamondPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        text-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    }
}

.preloader-logo h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.preloader-logo span {
    color: var(--gold);
}

/* دائرة التحميل */
.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* صفحة المحتوى */
.page-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-content.loaded {
    opacity: 1;
}

/* إخفاء التمرير أثناء التحميل */
body.loading {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.02);
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation: float 20s infinite linear;
}

.circle-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation: float 25s infinite linear reverse;
}

.circle-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation: float 18s infinite linear;
}

.circle-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 10%;
    animation: float 22s infinite linear reverse;
}

.circle-5 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 5%;
    animation: float 30s infinite linear;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-20px);
    }
    75% {
        transform: translateY(-10px) translateX(-10px);
    }
}

/* الترويسة */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--gold);
}

@keyframes diamondRotateReverse {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-90deg) scale(1.1);
    }
    50% {
        transform: rotate(-180deg) scale(1);
    }
    75% {
        transform: rotate(-270deg) scale(1.1);
    }
    100% {
        transform: rotate(-360deg) scale(1);
    }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo span {
    color: var(--gold);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav a.terms-link {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--gold);
}

/* القسم الرئيسي */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gold-text {
    color: var(--gold);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray);
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn, .btn-outline {
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: 2px solid var(--gold);
    font-family: 'Cairo', sans-serif;
}

.btn {
    background-color: var(--gold);
    color: var(--black);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--gold);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    width: 300px;
    height: 300px;
    background-color: var(--black-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-icon i {
    font-size: 8rem;
    color: var(--gold);
}

/* أقسام الخدمات */
.services {
    padding: 80px 0;
}

.service-section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section-icon {
    width: 70px;
    height: 70px;
    background-color: var(--black-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 2px solid var(--gold);
}

.section-icon i {
    font-size: 1.8rem;
    color: var(--gold);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--black-light);
    border-radius: var(--radius);
    padding: 0 0 25px 0;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
}

.service-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* أنماط الفيديو في البطاقات */
.video-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.video-title-container {
    background: rgba(10, 10, 10, 0.85);
    padding: 15px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(5px);
    text-align: center;
    width: 90%;
}

.video-title-container h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-align: center;
}

.video-price {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    animation: priceGlow 2s infinite alternate;
}

@keyframes priceGlow {
    0% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    }
}

.video-price span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* إخفاء العنوان الأصلي */
.service-card .card-header {
    display: none;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 20px;
}

.buy-btn {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    margin: 0 20px;
}

.buy-btn:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

/* نافذة الشراء */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background-color: var(--black-light);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--gold);
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform 0.5s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-header h3 {
    color: var(--gold);
}

.close-modal {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--gold);
}

.modal-body {
    padding: 20px;
}

.selected-service {
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.selected-service h4 {
    margin-bottom: 5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* التذييل */
.footer {
    background-color: var(--black-light);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

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

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    color: var(--gray);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-link:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-contact h3,
.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--gold);
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--gold);
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray);
}

.footer-contact li i {
    color: var(--gold);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 5px;
}

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

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text p {
        max-width: 100%;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-icon {
        width: 250px;
        height: 250px;
    }
    
    .hero-icon i {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--black-light);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .nav.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn, .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .video-container {
        height: 160px;
    }
    
    .preloader-logo {
        gap: 15px;
    }
    
    .preloader-logo .logo-icon {
        font-size: 3rem;
    }
    
    .preloader-logo h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        height: 140px;
    }
    
    .video-title-container {
        padding: 10px 15px;
    }
    
    .video-title-container h3 {
        font-size: 1.2rem;
    }
    
    .video-price {
        font-size: 1.4rem;
    }
    
    .preloader-logo .logo-icon {
        font-size: 2.5rem;
    }
    
    .preloader-logo h1 {
        font-size: 2rem;
    }
}