 :root{
      --bg:#f3efe6;
      --panel:#f8f4eb;
      --panelStrong:#efe6d6;
      --text:#1b1f24;
      --muted:#5b6572;
      --line:rgba(27,31,36,0.12);
      --shadow:0 14px 40px rgba(0,0,0,0.12);
      --radius:18px;
      --btn:#2c3642;
      --btnText:#fff;
    }

    *{ box-sizing:border-box; }
    body{
      margin:0;
      font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
      color:var(--text);
      background:
        radial-gradient(1200px 600px at 25% 0%, rgba(239,230,214,0.75), transparent 55%),
        radial-gradient(900px 450px at 85% 35%, rgba(239,230,214,0.55), transparent 60%),
        var(--bg);
    }
    a{ color:inherit; text-decoration:none; }

    .container{ width:min(1100px, calc(100% - 32px)); margin:0 auto; }

    /* Topbar */
    .topbar{
      position:sticky; top:0; z-index:50;
      backdrop-filter: blur(8px);
      background: rgba(243,239,230,0.85);
      border-bottom:1px solid var(--line);
    }
    .topbar-inner{
      display:flex; align-items:center; justify-content:space-between;
      padding:14px 0;
    }
    .brand{ font-weight:900; letter-spacing:.2px; }
    .nav{ display:flex; gap:14px; }
    .nav a{
      color:var(--muted);
      font-weight:800;
      padding:8px 10px;
      border-radius:12px;
      transition:150ms ease;
    }
    .nav a:hover{
      color:var(--text);
      background: rgba(239,230,214,0.65);
    }

    /* Hero */
    .hero{
      margin-top:34px;
      padding:22px;
      background: rgba(248,244,235,0.65);
      border:1px solid var(--line);
      border-radius: calc(var(--radius) + 6px);
      box-shadow: var(--shadow);
      display:grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap:24px;
      align-items:center;
    }
    .title{
      margin:0 0 10px 0;
      font-size: clamp(34px, 4vw, 54px);
      line-height:1.05;
      letter-spacing:-.6px;
    }
    .subtitle{
      margin:0 0 18px 0;
      font-size: clamp(18px, 2vw, 21px);
      line-height:1.7;
      color:#3b4653;
      font-weight:900;
      max-width:56ch;
    }

    .actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:10px 18px;
      border-radius:999px;
      font-weight:900;
      border:1px solid rgba(27,31,36,0.15);
      background: rgba(255,255,255,0.7);
      transition:150ms ease;
      -webkit-tap-highlight-color: transparent;
      cursor:pointer;
    }
    .btn:hover{ transform: translateY(-1px); background: rgba(239,230,214,0.75); }
    .btn-primary{ background: var(--btn); color: var(--btnText); border:none; }
    .btn-primary:hover{ background:#1f2933; }

    /* Photo (NO CROP) */
    .hero-right{ display:flex; justify-content:center; }
    .photo-card{
      width: min(380px, 100%);
      padding:14px;
      border-radius: calc(var(--radius) + 8px);
      background: var(--panelStrong);
      border:1px solid rgba(27,31,36,0.18);
      box-shadow: 0 10px 30px rgba(27,31,36,0.12);
    }
    .photo-card img{
      width:100%;
      height:460px;
      object-fit: contain;       /* ✅ يمنع القص نهائياً */
      object-position: center;
      border-radius: calc(var(--radius) + 6px);
      border:1px solid rgba(27,31,36,0.12);
      background:#fff;           /* خلفية إذا بقي فراغ */
      display:block;
    }

    /* Sections */
    .section, .blog{
      margin-top:28px;
      padding:22px;
      border-radius: calc(var(--radius) + 6px);
      border:1px solid var(--line);
      background: rgba(248,244,235,0.55);
    }
    .section-head h2, .blog h2{
      margin:0;
      font-size:22px;
      letter-spacing:-.2px;
    }
    .section-head p, .blog-intro{
      margin:6px 0 0 0;
      color:var(--muted);
      font-weight:800;
      line-height:1.6;
      max-width:70ch;
    }

    .grid{
      margin-top:16px;
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:14px;
    }
    .card, .blog-card{
      padding:16px;
      border-radius: var(--radius);
      background: rgba(255,255,255,0.7);
      border:1px solid var(--line);
      transition:150ms ease;
      min-height:150px;
    }
    .card:hover, .blog-card:hover{
      transform: translateY(-2px);
      background: rgba(239,230,214,0.65);
    }
    .card h3, .blog-card h3{ margin:0 0 8px 0; font-size:16px; }
    .card p, .blog-card p{ margin:0; color:var(--muted); line-height:1.55; font-weight:800; }

    .tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
    .tags span{
      font-size:12px;
      font-weight:900;
      padding:6px 10px;
      border-radius:999px;
      background: rgba(239,230,214,0.85);
      border:1px solid rgba(27,31,36,0.10);
    }

    .blog-cards{
      margin-top:16px;
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:14px;
    }

    .contact-card{ margin-top:16px; display:grid; gap:10px; }
    .contact-item{
      display:flex; align-items:center; justify-content:space-between;
      gap:14px;
      padding:14px 16px;
      border-radius: var(--radius);
      background: rgba(255,255,255,0.7);
      border:1px solid var(--line);
      transition:150ms ease;
    }
    .contact-item:hover{ background: rgba(239,230,214,0.65); transform: translateY(-1px); }
    .label{ color:var(--muted); font-weight:900; }
    .value{ font-weight:900; word-break: break-word; }

    .footer{
      margin:22px 0 40px;
      text-align:center;
      color:var(--muted);
      font-weight:900;
    }

    /* Responsive */
    @media (max-width: 900px){
      .hero{ grid-template-columns: 1fr; }
      .photo-card{ width: min(420px, 100%); }
      .photo-card img{ height: 420px; }
      .grid{ grid-template-columns: 1fr; }
      .blog-cards{ grid-template-columns: 1fr; }
    }
    @media (max-width: 420px){
      .btn{ width:100%; }
      .photo-card img{ height: 380px; }
    }
    /* ===== CONTACT HARD RESET (INLINE STYLE FIX) ===== */
#contact,
#contact * {
  box-sizing: border-box;
}

#contact button,
#contact .btn,
#contact input,
#contact textarea {
  position: static !important;
  transform: none !important;
  writing-mode: horizontal-tb !important;
  float: none !important;
  rotate: 0deg !important;
}

#contact .form {
  display: grid !important;
  gap: 14px !important;
}
#contact form > *:last-child {
  margin-bottom: 0 !important;
}
#contact form {
  grid-auto-rows: min-content !important;
}

#contact .grid2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

#contact input,
#contact textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px !important;
}

#contact button {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  #contact .grid2 {
    grid-template-columns: 1fr !important;
  }
}
/* ===== CONTACT: Premium Highlight (paste at END of <style>) ===== */
#contact{
  padding: 88px 0;
  border-radius: 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* لمسة خلفية خفيفة جداً (Glow) */
#contact::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 60%);
  filter: blur(2px);
  pointer-events:none;
  opacity: .6;
}

#contact::after{
  content:"";
  position:absolute;
  inset:auto auto -140px -140px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 62%);
  pointer-events:none;
  opacity: .45;
}

/* عنوان الكونتكت يبرز */
#contact h2{
  letter-spacing: .2px;
  margin-bottom: 10px;
}

/* بطاقات الروابط (Email/LinkedIn/GitHub...) */
#contact .contact-card{
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
#contact .contact-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
}

/* الفورم يصير أنعم */
#contact .contact-form{
  border-color: rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.10);
}

#contact input,
#contact textarea{
  border-color: rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.14);
  transition: border-color .18s ease, background .18s ease;
}
#contact input:focus,
#contact textarea:focus{
  border-color: rgba(255,255,255,0.30);
  background: rgba(0,0,0,0.20);
}

/* زر الإرسال يطلع أفخم */
#contact button,
#contact .btn{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
#contact button:hover,
#contact .btn:hover{
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.26);
}

/* موبايل: نخلي البادينغ أقل */
@media (max-width: 768px){
  #contact{
    padding: 64px 0;
    border-radius: 20px;
  }
}
#contact {
  background: rgba(255,255,255,0.05);
}

#contact::before,
#contact::after {
  opacity: 0.25;
}
#contact button,
#contact .btn {
  font-weight: 600;        /* أثقل شوية */
  letter-spacing: 0.4px;  /* تباعد بسيط */
  color: #000;             /* أو خليها inherit إذا تحبين */
}

#contact button:hover,
#contact .btn:hover {
  filter: brightness(1.05);
}
#contact button { font-weight: 700; }
.brand {
  display: flex;
  align-items: center;
}
/* LOGO */
.brand img {
  height: 64px;        /* كبر اللوگو */
  width: auto;         /* يحافظ على النسبة */
  display: block;
}
/* =========================
   BRAND / LOGO (FINAL FIX)
========================= */

.brand {
  display: flex;
  align-items: center;
  background: none !important;
  box-shadow: none !important;
}

.brand img {
  height: 88px;
  width: auto;
  display: block;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  .brand img {
    height: 64px;
  }
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* =========================
   Footer (Final Version)
   ========================= */

.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 4rem;
  font-size: 14px;
  border-top: 1px solid #1e293b;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.35);
}

/* Layout */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

/* Headings */
.site-footer h3,
.site-footer h4 {
  color: #ffffff;
  margin-bottom: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Text */
.site-footer p {
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
}

/* Links list */
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.6rem;
}

/* Links */
.site-footer a {
  color: #c7d2fe;
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: #38bdf8;
}

/* Social icons (text for now) */
.footer-social {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-social a {
  border: 1px solid #334155;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #e5e7eb;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 1rem 1rem;
  font-size: 13px;
  color: #94a3b8;
}

/* Mobile */
@media (max-width: 600px) {
  .footer-container {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 16px;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
  transform: translateY(-2px);
}
/* ===== Gradient Social Icons ===== */
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Facebook */
.footer-social a[aria-label="Facebook"] {
  background: linear-gradient(135deg, #1877f2, #0a58ca);
}

/* Instagram */
.footer-social a[aria-label="Instagram"] {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

/* YouTube */
.footer-social a[aria-label="YouTube"] {
  background: linear-gradient(135deg, #ff0000, #b91c1c);
}

/* TikTok */
.footer-social a[aria-label="TikTok"] {
  background: linear-gradient(135deg, #25f4ee, #000000, #fe2c55);
}

/* Telegram */
.footer-social a[aria-label="Telegram"] {
  background: linear-gradient(135deg, #2aabee, #229ed9);
}

/* Hover */
.footer-social a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.blog-readmore {
  text-align: center;
  margin-top: 30px;
}

.read-more-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.read-more-btn:hover {
  background: #333;
}
/* ===== BLOG PAGE ===== */

.blog-page {
  max-width: 760px;
  margin: 80px auto;
  padding: 0 20px;
  padding-top: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
}

.back-link:hover {
  background: #f5f5f5;
}

.blog-page h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.blog-intro {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 50px;
}

.post {
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.post h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
}

.post p {
  line-height: 1.75;
  margin-bottom: 18px;
}
.sticky-back {
  position: sticky;
  top: 20px;
  z-index: 10;

  display: inline-block;
  padding: 6px 10px;
  background: #fff;

  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;

  border-radius: 6px;
  opacity: 0.85;
}

.sticky-back:hover {
  opacity: 1;
  text-decoration: underline;
}
/* ===== FIX CONTACT BOTTOM SPACE ===== */

#contact,
#contact .contact-wrap,
#contact .contact-card {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: auto !important;
  height: auto !important;
}

#contact .contact-card {
  display: flex !important;
  align-items: flex-start !important;
}

#contact form {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#contact form > *:last-child {
  margin-bottom: 0 !important;
}
/
@media (max-width: 900px){
  #contact .contact-wrap{
    grid-template-columns: 1fr !important;
  }
}
/* FORCE SPACE BETWEEN BLOG AND CONTACT - SAFE */
.blog-page {
  margin-bottom: 80px !important;
}

section + section {
  margin-top: 60px !important;
}
