/* css/style.css - Modern clean RTL */

:root{--bg:#071024;--card:#071826;--accent:#06b6d4;--glass:rgba(255,255,255,0.04);--muted:#9fb6c0}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Tajawal',sans-serif;background:linear-gradient(135deg,#041028 0%,#062a31 100%);color:#e6eef6;direction:rtl}
.container{width:92%;max-width:1100px;margin:0 auto;padding:20px}
.site-header{backdrop-filter:blur(8px);background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-bottom:1px solid rgba(255,255,255,0.03)}
.site-header .container{display:flex;align-items:center;justify-content:space-between}
.logo img{height:54px}
.main-nav{display:flex;gap:14px;align-items:center}
.main-nav a{color:var(--muted);text-decoration:none;font-weight:600}
.main-nav a.active{color:#fff}
.cart-btn{background:transparent;border:1px solid rgba(255,255,255,0.04);padding:8px 12px;border-radius:10px;color:#e6eef6;cursor:pointer}

/* hero */
.hero{padding:48px 0;text-align:right}
.hero h1{font-size:36px;margin:0 0 10px}
.btn{display:inline-block;background:linear-gradient(90deg,var(--accent),#3b82f6);padding:10px 18px;border-radius:12px;color:#021022;text-decoration:none;font-weight:700}

/* grid */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:18px}
.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:20px;border-radius:14px;box-shadow:0 6px 30px rgba(2,6,23,0.6)}

/* store */
.store-page h1{font-size:32px;margin-bottom:20px}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.product-card{background:var(--card);padding:16px;border-radius:12px;text-align:center}
.product-card img{width:100%;height:160px;object-fit:cover;border-radius:8px;margin-bottom:12px}
.product-card h3{margin:8px 0;color:#fff}
.product-card .price{color:#cbeff3;margin-bottom:12px}
.product-card button{padding:10px 14px;border-radius:10px;border:none;background:var(--accent);cursor:pointer;font-weight:700}

/* team */
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.team-card{background:var(--card);padding:16px;border-radius:12px;text-align:center}
.team-card img{width:100%;height:140px;object-fit:cover;border-radius:8px;margin-bottom:10px}

/* contact */
.contact-page .contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}

/* footer */
.site-footer{padding:24px;text-align:center;opacity:0.8;margin-top:40px}

/* cart side panel */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:none;z-index:40}
.overlay.show{display:block}
.cart-panel{position:fixed;top:0;right:0;height:100%;width:380px;background:linear-gradient(180deg,#051426,#072433);box-shadow:-10px 0 30px rgba(2,6,23,0.6);transform:translateX(110%);transition:0.36s;z-index:50;padding:18px;color:#e6eef6;display:flex;flex-direction:column}
.cart-panel.open{transform:translateX(0)}
.cart-items{flex:1;overflow:auto;margin-top:10px}
.cart-item{display:flex;justify-content:space-between;align-items:center;padding:10px;border-radius:8px;background:rgba(255,255,255,0.02);margin-bottom:8px}
.cart-footer{padding-top:12px;border-top:1px dashed rgba(255,255,255,0.03)}

/* responsive */
@media(max-width:768px){.site-header .container{flex-direction:column;gap:12px}.cart-panel{width:100%}.contact-page .contact-grid{grid-template-columns:1fr}}
/* صندوق */
.contact-box {
    background: #ffffff10;
    padding: 25px;
    border-radius: 18px;
    backdrop-filter: blur(6px);
    border: 1px solid #ffffff20;
    box-shadow: 0 5px 20px #00000020;
    transition: 0.3s;
}
.contact-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px #00000030;
}

/* شبكة */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* عناوين */
.contact-box h2 {
    margin-bottom: 15px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon { font-size: 24px; }

/* روابط */
.colored { color: #00aaff; }
.colored:hover { text-decoration: underline; }

/* واتساب */
.wa-btn {
    background: #25d366;
    color: #fff !important;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: bold;
}
.wa-btn:hover { background: #17a94c; }

/* سوشيال */
.social-list {
    list-style: none;
    padding: 0;
}
.social-list li {
    margin-bottom: 5px;
}
.so {
    color: #00c8ff;
    font-weight: bold;
}
.so.fb { color: #1877f2; }
.so.ig { color: #e1306c; }
.so.tk { color: #000; }

/* نموذج */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    background: #ffffffcc;
}
.contact-form textarea { height: 120px; }

/* زر */
.btn-primary {
    width: 100%;
    background: #007bff;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}
.btn-primary:hover { background: #005fcc; }

/* خريطة */
.map-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #ffffff30;
    box-shadow: 0 5px 20px #00000030;
}
.map-frame iframe {
    width: 100%;
    height: 350px;
}

/* أنميشن */
.fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}
.fade.delay { animation-delay: 0.25s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* الشريط الجانبي الملون */
.team-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: var(--color);
    border-radius: 0 14px 14px 0;
}

/* أزرار التواصل */
.social {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social a {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.social .fb { background: #1877f2; }
.social .in { background: #0a66c2; }

/* تأثير دخول البطاقات (Fade + Slide Up) */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeSlide 0.8s ease forwards;
}

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

/* ظهور متتالي */
.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.25s; }
.team-card:nth-child(3) { animation-delay: 0.4s; }
.team-card:nth-child(4) { animation-delay: 0.55s; }
/* Popup Background */
.cv-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Popup Box */
.cv-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Close Button */
#cv-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #eee;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}

/* Popup Image */
.cv-content img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Links */
.cv-links a {
    display: inline-block;
    margin: 6px;
    padding: 8px 14px;
    background: #f3f3f3;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: 0.25s;
}

.cv-links a:hover {
    background: #ddd;
}

/* ---- Layout for hero ---- */
.hero { padding:60px 0; overflow:hidden; }
.hero-grid { display:flex; gap:30px; align-items:center; flex-wrap:wrap; }
.hero-content { flex:1 1 420px; min-width:280px; }
.hero-media { flex:1 1 420px; display:flex; justify-content:center; align-items:center; }

/* Hero typography + subtle entrance */
.hero-title {
  font-size:clamp(28px, 4vw, 44px);
  margin:0 0 12px;
  line-height:1.05;
  transform:translateY(8px);
  opacity:0;
  animation: heroIn 700ms cubic-bezier(.2,.9,.2,1) forwards 150ms;
}
.hero-sub {
  margin:0 0 18px;
  color: #555;
  transform:translateY(8px); opacity:0;
  animation: heroIn 700ms cubic-bezier(.2,.9,.2,1) forwards 250ms;
}
@keyframes heroIn {
  to { transform:none; opacity:1; }
}

/* responsive embed (maintain aspect ratio) */
.embed-responsive {
  width:100%;
  max-width:720px;
  aspect-ratio:16/9;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(0,0,0,0.12);
  background:#000;
  transform:translateY(10px); opacity:0;
  animation: mediaIn 700ms cubic-bezier(.2,.9,.2,1) forwards 350ms;
}
.embed-responsive iframe{
  width:100%; height:100%; border:0;
}

/* media entrance */
@keyframes mediaIn {
  to { transform:none; opacity:1; }
}

/* grid for services */
.services .grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:18px; margin-top:18px}
.card{ background:#fff;border-radius:10px;padding:22px;box-shadow:0 6px 20px rgba(12,12,12,0.05); text-align:center; font-weight:600}

/* small screens tweaks */
@media (max-width:860px){
  .hero-grid{ flex-direction:column-reverse; }
  .embed-responsive{ max-width:100% }
}
.services-swiper {
    margin-top: 35px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.services-swiper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* حجم الأسهم */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    text-shadow: 0 0 8px #000;
}

/* النقاط */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #ffcc00;
    opacity: 1;
}
/* ===== Animation on Scroll (Cards) ===== */
.fade-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-card.show {
    opacity: 1;
    transform: translateY(0);
}

