@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --gold: #c5a059;
    --dark-bg: #0a0a0a;
    --card-bg: #151515;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================= */
/* الهيدر — اللوجو شمال | الروابط في النص | زرار يمين */
/* ========================================= */
header.main-header {
    background-color: transparent;
    width: 100%;
    position: fixed;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}

.brand-tagline {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
}

.logo-img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

/* الروابط — في منتصف الهيدر */
.navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    /* تأكد إنها مش بتتأثر بالـ RTL */
    direction: rtl;
}

.navigation a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: 0.3s;
    white-space: nowrap;
}

.navigation a:hover {
    color: var(--gold);
    background: rgba(197, 160, 89, 0.08);
}

/* زرار التواصل — يمين الهيدر، نفس ستايل روابط الناف */
.btn-header-contact {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.3s;
}

.btn-header-contact:hover {
    color: var(--gold);
    background: rgba(197, 160, 89, 0.08);
}

.btn-header-contact i {
    display: none;
}

/* زرار الهامبرغر */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 1001;
}

/* ========================================= */
/* الموبايل */
/* ========================================= */
@media (max-width: 900px) {
    .navigation,
    .btn-header-contact {
        display: none;
    }

    .mobile-menu-btn { display: block; }

    .navigation.active {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        transform: none;
        transition: var(--transition);
        z-index: 999;
    }

    .navigation.active a {
        font-size: 1.5rem;
        padding: 12px 30px;
    }

    .logo-img { height: 45px; width: 45px; }
    .brand-name { font-size: 1.1rem; }
    .brand-tagline { font-size: 0.65rem; }
    header.main-header { padding: 15px 5%; }
}

.mobile-menu-btn.active i::before {
    content: "\f00d";
}

/* ========================================= */
/* قسم الهيرو */
/* ========================================= */
.main {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.bg-zoom {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    animation: zoomEffect 20s infinite alternate;
    z-index: -2;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.70) 100%
    );
    z-index: -1;
}

.main-content {
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 30px;
}

.hero-title { margin-bottom: 20px; }

.bronze-text {
    color: var(--gold);
    font-size: 4.5rem;
    font-weight: 800;
    display: block;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6);
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background-color: var(--gold);
    color: #000;
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid var(--white);
    transition: var(--transition);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .bronze-text { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; align-items: center; }
}

/* ========================================= */
/* قسم الخدمات */
/* ========================================= */
.services-advanced {
    padding: 100px 8%;
    background-color: var(--dark-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.title {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.luxury-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.luxury-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    background-color: #1a1a1a;
}

.luxury-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.luxury-card .card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.luxury-card:hover .card-bg { transform: scale(1.12); }

.luxury-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.2);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: 0.4s;
}

.icon-box i { color: var(--gold); font-size: 1.5rem; transition: 0.4s; }
.luxury-card:hover .icon-box { background: var(--gold); }
.luxury-card:hover .icon-box i { color: #000; }
.card-content h3 { color: #fff; font-size: 1.4rem; margin-bottom: 5px; }

.card-content p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    margin: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.luxury-card:hover .card-content {
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 80%, rgba(0,0,0,0.4) 100%);
    padding-bottom: 30px;
}

.luxury-card:hover h3 { color: var(--gold); }

.luxury-card:hover p {
    max-height: 100px;
    opacity: 1;
    transform: translateY(10px);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .luxury-services-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 30px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .luxury-services-grid::-webkit-scrollbar { height: 6px; }
    .luxury-services-grid::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 10px; }
    .luxury-services-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
    .luxury-card { flex: 0 0 280px; height: 350px; scroll-snap-align: start; }
    .card-content { background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.2) 100%); }
    .card-content p { max-height: 100px; opacity: 1; transform: translateY(0); margin-top: 5px; }
}

/* ========================================= */
/* معرض الأعمال */
/* ========================================= */
.projects-gallery {
    padding: 100px 8%;
    background-color: #050505;
}

.folders-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.folder-card {
    width: 280px;
    background: #111;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.folder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.folder-icon { font-size: 2.5rem; margin-bottom: 10px; }

.folder-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #1e1e1e;
}

.folder-card h3 { color: #fff; font-size: 1.3rem; }

@media (max-width: 768px) {
    .folders-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 20px 5% 40px !important;
        scroll-snap-type: x mandatory !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .folders-grid::-webkit-scrollbar { display: none !important; }
    .folder-card { flex: 0 0 85% !important; max-width: 320px !important; scroll-snap-align: center !important; }
}

/* ========================================= */
/* مودال الصور */
/* ========================================= */
.folder-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 20px; right: 30px;
    color: #000;
    background: var(--gold);
    padding: 8px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s;
}

.close-modal:hover { background: #fff; }
.modal-title { color: var(--gold); margin-bottom: 20px; font-size: 2rem; }

.modal-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
}

#modal-main-img {
    max-width: 80%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 3px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
    transition: opacity 0.3s ease;
    background-color: #000;
}

.modal-arrow {
    background: transparent;
    color: var(--gold);
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 20px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-arrow:hover { color: #fff; transform: scale(1.2); }
.image-counter { color: #fff; margin-top: 20px; font-size: 1.2rem; letter-spacing: 2px; }

/* ========================================= */
/* قسم الفيديوهات */
/* ========================================= */
.video-gallery {
    padding: 100px 8%;
    background-color: #050505;
}

.video-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    margin-top: 50px;
    padding-bottom: 25px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.video-grid::-webkit-scrollbar { height: 8px; }
.video-grid::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 10px; }
.video-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.video-grid::-webkit-scrollbar-thumb:hover { background: #fff; }

.video-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.15);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
    background-color: #1a1a1a;
}

.video-card:hover .video-thumbnail img { transform: scale(1.08); }

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    padding-left: 5px;
    transition: var(--transition);
    animation: pulse-play 2s infinite;
    z-index: 2;
}

.video-card:hover .play-btn {
    background: #fff;
    color: var(--gold);
    transform: translate(-50%, -50%) scale(1.15);
}

@keyframes pulse-play {
    0%   { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70%  { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.video-info { padding: 25px; text-align: right; }
.video-info h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 10px; }
.video-info p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.modal-video-container {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal-video-container video { width: 100%; height: 100%; display: block; outline: none; }

@media (max-width: 768px) {
    .video-gallery { padding: 60px 5%; }
    .video-card { flex: 0 0 280px; }
    .modal-video-container { width: 95%; }
}

/* ========================================= */
/* قسم التواصل */
/* ========================================= */
.contact-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.info-card {
    background: #111;
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.15);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: 0.4s ease;
}

.info-card:hover .info-icon { background: var(--gold); color: #000; transform: scale(1.1); }
.info-text h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.info-text p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 0; }

@media (max-width: 768px) {
    .contact-cards-grid { grid-template-columns: 1fr; }
}

/* ========================================= */
/* الفوتر */
/* ========================================= */
.main-footer {
    background: #050505;
    padding: 60px 8% 20px;
    margin: 20px;
    border-top: 1px solid #111;
    direction: rtl;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p { color: #888; margin-top: 15px; max-width: 350px; line-height: 1.6; }

.footer-links h3,
.footer-social h3 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }

.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 15px 35px; padding: 0; }

.footer-links ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
    display: inline-block;
}

.footer-links ul li a:hover { color: var(--gold); transform: translateY(-4px); }

.social-btns { display: flex; gap: 12px; }

.social-btns a {
    width: 40px; height: 40px;
    background: #151515; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; border: 1px solid #222;
    text-decoration: none; transition: 0.3s; font-size: 1.1rem;
}

.social-btns a:hover { background: var(--gold); color: #000; transform: translateY(-5px); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #111;
    color: #555;
    font-size: 0.9rem;
}

.gold-text { color: var(--gold); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-about p { margin: 15px auto; }
    .footer-links ul, .social-btns { justify-content: center; }
}

/* ========================================= */
/* زرار الواتساب العائم */
/* ========================================= */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-fixed:hover {
    background: #20b858;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-wa {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-fixed {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}