/* ===========================
VARIABLES & RESET
=========================== */
:root{
--bg: #ffffff; --card:#ffffff; --muted:#6b7280; --text:#111827;
--accent:#0077B6; --accent-2:#f0c040; --radius:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
font-family: "Cairo", "Poppins", system-ui, Arial, sans-serif;
background:var(--bg);
color:var(--text);
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
line-height:1.6;
transition: background .25s, color .25s;
}

/* Container */
.container{width:90%;max-width:1200px;margin:0 auto}

/* Header */
nav#globalnav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1280px;        /* ثابت على 1280px */
  height: 44px;          /* ارتفاع صغير */
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav#globalnav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav#globalnav .brand-logo {
  height: 30px;          /* صغير زي Apple */
}

nav#globalnav .nav-links {
  display: flex;
  list-style: none;
  gap: 44px;
}

nav#globalnav .nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

nav#globalnav .controls {
  display: flex;
  gap: 8px;
}

/* HERO */
.hero{padding:60px 0}
.hero-grid{display:grid;grid-template-columns:1fr 420px;gap:40px;align-items:center}
.hero-left h1{font-size:2.2rem;margin-bottom:12px}
.accent{color:var(--accent)}
.hero-left p{color:var(--muted);margin-bottom:18px}
.hero-ctas{display:flex;gap:12px;margin-bottom:18px}
.btn{display:inline-block;padding:10px 18px;border-radius:10px;text-decoration:none;font-weight:700;cursor:pointer}
.primary{background:var(--accent);color:#fff}
.outline{background:transparent;border:2px solid var(--accent);color:var(--accent)}
.hero-social{display:flex;gap:12px;margin-top:10px}
.hero-social img{width:34px;opacity:0.95}

/* hero card */
.hero-card{background:linear-gradient(180deg,#fff,#f7f9fc);padding:14px;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,0.08)}
.hero-card img{width:100%;height:300px;object-fit:cover;border-radius:10px}

/* SECTIONS */
.section{padding:60px 0}
.section .muted{color:var(--muted);margin-bottom:20px}
h2{text-align:center;margin-bottom:18px}

/* ABOUT */
.about-grid{display:flex;gap:30px;align-items:center;flex-wrap:wrap}
.about-image img{width:220px;height:220px;object-fit:cover;border-radius:50%;border:5px solid var(--card);box-shadow:0 10px 30px rgba(0,0,0,0.08)}
.about-content h2{font-size:1.9rem;margin-bottom:12px}
.about-list{list-style:none;margin:12px 0;padding-left:0}
.about-list li{color:var(--muted);margin-bottom:8px}
.about-actions{margin-top:14px;display:flex;gap:12px}

/* CARDS GRID */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:18px}
.service-card{background:var(--card);border-radius:12px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,0.06);display:flex;flex-direction:column}
.service-card img{width:100%;height:160px;object-fit:cover}
.card-body{padding:16px;flex:1;display:flex;flex-direction:column}
.card-body h3{margin-bottom:8px}
.card-body p{color:var(--muted);flex:1}
.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.price{font-weight:800;color:var(--accent)}

/* PROJECTS */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:20px}
.project-card{background:linear-gradient(180deg,#fff,#fbfdff);border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(2,6,23,0.04)}
.project-card img{width:100%;height:200px;object-fit:cover}
.proj-info{padding:12px}
.project-card .btn.small{padding:8px 12px;font-size:0.95rem;background:var(--accent);color:#fff;border-radius:8px}

/* TESTIMONIALS */
.testimonials-slider{position:relative;max-width:800px;margin:0 auto}
.testimonial{display:none;padding:20px;background:linear-gradient(180deg,#fff,#f7f8fb);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,0.06);text-align:center}
.testimonial.active{display:block}
.slider-controls{display:flex;justify-content:center;gap:12px;margin-top:12px}
.slider-prev,.slider-next{background:#eee;border:0;padding:8px 12px;border-radius:8px;cursor:pointer}

/* ORDER / PAYMENT */
.order-section { 
    background: #ffffff; /* light mode background */
    padding: 60px 20px; 
    transition: background 0.25s, color 0.25s;
}
.order-form { max-width: 800px; margin: 0 auto; }
.form-row { margin-bottom: 16px; display:block; text-align:left; }
.form-row label { display:block; margin-bottom:6px; font-weight:600; color:var(--muted); }
.form-row input, .form-row select, .form-row textarea {
    width:100%; padding:10px; border:1px solid #e5e7eb; border-radius:8px; font-size:15px; box-sizing:border-box;
    background: var(--card);
    color: var(--text);
    transition: background 0.25s, color 0.25s;
}
.payment-info { 
    background: var(--card); 
    border:1px solid #e6e9ef; 
    padding:12px; border-radius:8px; margin-top:12px;
    transition: background 0.25s, color 0.25s;
}

/* DARK THEME for Order Section */
body.dark .order-section { background: var(--bg); color: var(--text); }
body.dark .order-section input,
body.dark .order-section select,
body.dark .order-section textarea { background: var(--card); color: var(--text); border:1px solid #334155; }
body.dark .order-section .payment-info { background: var(--card); border:1px solid #334155; color: var(--text); }

/* FOOTER */
footer.site-footer {
  background: rgba(255,255,255,0.95); /* نفس لون الـ header */
  backdrop-filter: blur(6px);          /* نفس تأثير الـ header */
  color: var(--text);                  /* لون النص مطابق لموقعك */
  padding: 8px 0;
}

footer .footer-inner {
  max-width: 980px;   
  height: 26px;       
  margin: 0 auto;
  display: flex;
  justify-content: center; /* وضع المحتوى في المنتصف */
  align-items: center;
  gap: 20px; /* مسافة بين النص والروابط */
  font-size: 12px;
  font-weight: 400;
  flex-wrap: wrap; /* مناسب للشاشات الصغيرة */
  text-align: center;
}

footer .footer-inner div,
footer .footer-inner ul {
  display: flex;
  align-items: center;
}

footer .footer-inner ul.footer-links {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-inner ul.footer-links li a {
  color: var(--text); /* لون النص الرئيسي */
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

footer .footer-inner ul.footer-links li a:hover {
  opacity: 1;
}

/* VIDEO MODAL */
.video-modal{display:none;position:fixed;z-index:10000;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.8);justify-content:center;align-items:center;padding:20px}
.video-modal-content{background:#fff;padding:14px;border-radius:12px;max-width:1000px;width:100%;box-shadow:0 20px 60px rgba(2,6,23,0.6);position:relative}
.video-modal video{width:100%;height:auto;border-radius:8px}
.video-modal .close{position:absolute;top:8px;right:12px;font-size:26px;background:transparent;border:none;cursor:pointer}

/* ANIMATION / REVEAL */
.reveal-up{opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s ease}
.reveal-up.visible{opacity:1;transform:translateY(0)}

/* RESPONSIVE */
@media (max-width:980px){
.hero-grid{grid-template-columns:1fr;gap:22px}
.contact-grid{grid-template-columns:1fr}
.about-grid{flex-direction:column;align-items:center;text-align:center}
.about-content{text-align:center}
.controls{gap:6px}
.hero-card img{height:220px}
.main-nav{display:none}
}

/* DARK THEME */
body.dark{
--bg:#050609;--card:#0f1720;--muted:#9aa3ad;--text:#e6eef8;--accent:#49a3ff;
background: #050609;color:var(--text)
}
body.dark .site-header{background: linear-gradient(180deg, rgba(10,12,14,0.9), rgba(10,12,14,0.7))}
body.dark .main-nav a{color:var(--text)}
body.dark .hero-card{background: linear-gradient(180deg,#0d1320,#0b1220)}
body.dark .service-card, body.dark .project-card, body.dark .contact-card, body.dark .testimonial{background:var(--card)}
/* CONTACT SECTION */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  transition: background 0.3s, color 0.3s;
}

.contact-container {
  max-width: 600px;
  width: 100%;
}

.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-container p {
  color: var(--muted);
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  background: var(--card);
  color: var(--text);
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--primary, #000);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* DARK MODE */
body.dark .contact-section {
  background: var(--bg);
  color: var(--text);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: var(--card);
  border: 1px solid #334155;
  color: var(--text);
}
/* DARK MODE HEADER */
body.dark nav#globalnav {
    background: rgba(10,12,14,0.9); /* خلفية داكنة */
}
body.dark nav#globalnav .nav-links li a,
body.dark nav#globalnav .controls button {
    color: var(--text); /* النص يظهر فاتح */
}

/* DARK MODE FOOTER */
body.dark footer.site-footer {
    background: rgba(10,12,14,0.9);
    color: var(--text);
}
body.dark footer .footer-inner ul.footer-links li a,
body.dark footer .lang-btn {
    color: var(--text);
}	
#about {
  padding: 60px 0;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.about-image img {
  max-width: 250px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.about-content {
  flex: 1;
  min-width: 280px;
  text-align: left; /* مهم علشان العنوان والنص يبقوا شمال */
}

#about-title {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: left;
}

#about-text {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
#services h2 {
  text-align: left; /* محاذاة لليسار */
  margin-left: 0;   /* تأكد إنها مش في المنتصف */
}
#Selected Projects h2 {
  text-align: left; /* محاذاة لليسار */
  margin-left: 0;   /* تأكد إنها مش في المنتصف */
}
.submit-btn {
  display: block;
  margin: 20px auto 0 auto; /* من فوق 20px، وباقي الجوانب auto */
}
/* ====== Skills Popup ====== */
.skills-item {
  position: relative;
}

.skills-popup {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  color: #000;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: none;
  min-width: 180px;
  z-index: 999;
}

.skills-popup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-popup li {
  font-size: 14px;
  padding: 5px 0;
}

.skills-item:hover .skills-popup {
  display: block;
}

/* Dark mode support */
.dark-mode .skills-popup {
  background: #1c1c1c;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

  border-bottom: 3px solid #b74b4b;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 5rem;
}

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

.feature {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.feature h3 {
  font-size: 2rem;
  color: #b74b4b;
  margin-bottom: 1rem;
}

.feature p {
  font-size: 1.4rem;
  color: #ccc;
}
/* زر البحث */
.globalnav-link-search {
  cursor: pointer;
  font-size: 18px;
  padding: 0 10px;
  display: flex;
  align-items: center;
}

/* الخلفية عند فتح البحث */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* مربع البحث */
.search-box {
  background: white;
  padding: 15px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  width: 80%;
  max-width: 500px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px;
}

.search-box button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

  font-size: 1.8rem;
  color: white;
  margin-left: 2rem;
  transition: color 0.3s ease;
}

#search-button:hover {
  color: #b74b4b;
}
/* زر البحث */
.globalnav-link-search {
  font-size: 2rem;
  margin-left: 2rem;
  cursor: pointer;
}

/* مربع البحث */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.search-box {
  display: flex;
  gap: 1rem;
  background: #161616;
  padding: 1rem 2rem;
  border-radius: 2rem;
  width: 80%;
  max-width: 600px;
}

#search-input {
  flex: 1;
  padding: 1rem;
  border-radius: 2rem;
  font-size: 1.6rem;
  border: none;
  outline: none;
}

#close-search {
  background: #b74b4b;
  color: black;
  padding: 0 1rem;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
}

/* اللغة */
.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 2rem;
}

.lang-switch button {
  background: #b74b4b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  border: none;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service {
  background: #161616;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: white;
  font-weight: 500;
}
/* 🟦 قواعد عامة للـ Responsive */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 🟨 الحاويات */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 🟧 الأقسام الشبكية (لو بتستخدم Grid) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* 🟩 Media Queries لتوافق الشاشات */

/* للموبايل */
@media (max-width: 600px) {
  header nav {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    font-size: 1.8rem;
  }
}

/* للتابلت */
@media (min-width: 601px) and (max-width: 1024px) {
  .service {
    padding: 15px;
  }
}

/* للشاشات الكبيرة */
@media (min-width: 1025px) {
  .service {
    padding: 25px;
  }
}
