@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* متغيرات الألوان والسمات الأساسية */
:root {
    --primary-color: #4a3223;
    --secondary-color: #c4a484;
    --background-color: #f5f5f5;
    --text-color: #4a3223;
    --card-bg: rgba(255, 255, 255, 0.9);
}

/* نمط الوضع الداكن */
[data-theme="dark"] {
    --primary-color: #c4a484;
    --secondary-color: #4a3223;
    --background-color: #2c1810;
    --text-color: #C4A484;
    --card-bg: rgba(74, 50, 35, 0.9);
}

/* الأنماط الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    opacity: 1;
    visibility: visible;
}

/* قسم الملف الشخصي */
.profile-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-decoration {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 2s infinite;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--background-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-name {
    color: var(--background-color);
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0.5rem 0;
    font-weight: bold;
}

/* الحاوية الرئيسية */
.container {
    max-width: 1200px;
    margin: 180px auto 0;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

/* تحسينات التجاوب مع الشاشات المختلفة */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media screen and (max-width: 768px) {
    .container {
        margin-top: 150px;
        padding: 1rem;
    }
    
    .profile-section {
        padding: 0.5rem;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 2rem;
    }

    .bio {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-buttons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 1000;
    }

    .language-toggle, .theme-toggle {
        padding: 0.8rem;
        font-size: 1.2rem;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--primary-color);
        color: var(--background-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}

@media screen and (max-width: 480px) {
    .container {
        margin-top: 130px;
        padding: 0.8rem;
    }

    .profile-image {
        width: 70px;
        height: 70px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .services-title, .packages-title {
        font-size: 2rem;
    }

    .package-card {
        padding: 1.5rem;
    }

    .media-item img, .media-item video {
        height: 250px;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .header-buttons {
        bottom: 15px;
        right: 15px;
    }

    .language-toggle, .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* أقسام الباقات */
.packages-section {
    margin: 4rem 0;
    text-align: center;
}

.packages-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.package-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 164, 132, 0.2);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(196, 164, 132, 0.2);
}

.package-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.package-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-color);
}

.price-usd, .price-sar {
    font-size: 1.2rem;
    font-weight: bold;
}

/* شبكة الوسائط */
.media-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    direction: rtl;
}

.media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-color);
    transform-origin: center;
    perspective: 1000px;
}

.media-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.media-item img, .media-item video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

/* أزرار المشاركة */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.media-item:hover .share-buttons {
    opacity: 1;
    transform: translateY(0);
}

.share-buttons button {
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-buttons button:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* مشغل الفيديو */
.video-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

.play-button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.8rem;
}

.play-button i {
    color: white;
    font-size: 24px;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* محتوى الوسائط */
.media-content {
    padding: 1.5rem;
    color: var(--background-color);
    background: linear-gradient(to bottom, rgba(74, 50, 35, 0.9), var(--primary-color));
    transform: translateY(0);
    transition: transform 0.3s ease;
    text-align: right;
}

.media-item:hover .media-content {
    transform: translateY(-8px);
    background: linear-gradient(to bottom, rgba(74, 50, 35, 1), var(--primary-color));
}

.media-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: var(--background-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.media-description {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(229, 221, 213, 0.9);
    margin-bottom: 0.5rem;
}

/* الرأس */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.logo {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.mk-logo {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: -5px;
    font-family: 'Arial Black', sans-serif;
}

/* أزرار التبديل */
.language-toggle, .theme-toggle {
    background: var(--primary-color);
    color: var(--background-color);
    padding: 0.8rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.language-toggle:hover, .theme-toggle:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: scale(1.05);
}

.theme-toggle i, .language-toggle i {
    font-size: 1.2rem;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    flex-direction: column;
}

/* العنوان والسيرة الذاتية */
.title {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin: 2rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.bio {
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.8;
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0;
    padding: 0 1rem;
    transform: translateY(20px);
}

.bio.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* قسم الخدمات */
.services-section {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.services-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--background-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    color: var(--background-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--background-color);
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.6;
}

/* قسم الشكر */
.thank-you-section {
    text-align: center;
    margin: 1rem 0;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thank-you {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

/* روابط التواصل الاجتماعي */
.social-links p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 28px;
    margin: 0 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
}

.social-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-icon:hover::after {
    transform: scaleX(1);
}

/* النجوم */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #ffd700;
    border-radius: 50%;
    animation: twinkle 1.5s infinite;
}

/* الرسوم المتحركة */
@keyframes twinkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* التصميم المتجاوب */
@media screen and (max-width: 1200px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .packages-grid,
    .services-grid,
    #media-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    .profile-section {
        padding: 0.8rem;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .container {
        margin-top: 150px;
        padding: 1.5rem 1rem;
    }

    .title {
        font-size: 2.2rem;
    }

    .bio {
        font-size: 1.1rem;
        padding: 0 0.8rem;
    }

    .services-title,
    .packages-title {
        font-size: 2rem;
    }

    .service-card,
    .package-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title,
    .package-title {
        font-size: 1.3rem;
    }

    .header-buttons {
        gap: 0.5rem;
    }

    .theme-toggle,
    .language-toggle {
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .profile-section {
        padding: 0.6rem;
    }

    .profile-image {
        width: 70px;
        height: 70px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .container {
        margin-top: 130px;
        padding: 1rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .bio {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .services-title,
    .packages-title {
        font-size: 1.8rem;
    }

    .service-card,
    .package-card {
        padding: 1.2rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-title,
    .package-title {
        font-size: 1.2rem;
    }

    .service-description,
    .package-price {
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        font-size: 24px;
    }
}