/* ===============================
   Base / Reset
=================================*/
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background-color: #fff;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  scroll-behavior: smooth;
}

html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
ul { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: var(--text-color, #222222); }

/* ===============================
   Wrapper / Background Helpers
=================================*/
.wrapper2{
  position: absolute; top: 0; left: 0; width: 100%; min-height: 100%;
  z-index: -1; display: flex;
}
.wrapper {
  position: relative; width: 100%; height: 100vh;
  display: flex; justify-content: center; align-items: center;
  background-attachment: fixed; background-repeat: no-repeat; background-size: cover;
}
.wrapper1 {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0;
  z-index: -1; pointer-events: none;
  background-attachment: fixed; background-repeat: no-repeat; background-size: cover;
}
.left-half, .right-half {
  height: 100vh; position: fixed; top: 0; bottom: 0; z-index: -1; width: 50%;
  background-attachment: fixed; background-repeat: no-repeat; background-size: cover;
}
.left-half { background-color: rgb(217, 234, 253); left: 0; }
.right-half { background-color: rgb(248, 250, 252); right: 0; }
.one_color {
  position: fixed; top: 0; bottom: 0; z-index: -1; width: 50%; height: 100vh;
  background-color: rgb(217, 234, 253); background-attachment: fixed;
}

/* ===============================
   CSS Variables
=================================*/
:root {
  --primary-color: rgb(216, 233, 253);
  --secondary-color: rgb(140, 181, 222);
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: rgb(216, 233, 253);
  --card-background: rgb(140, 181, 222);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;
}

/* ===============================
   NAVBAR (New – replaces old rules)
   HTML expects:
   <nav class="navbar1"> <div class="container"> <a class="brand">...</a> <ul class="nav-menu1">...</ul> <div class="nav-actions"> <button class="theme-toggle">...</button> <button class="hamburger">...</button></div></div></nav>
=================================*/
.navbar1{
  position: relative; top: 0; z-index: 1000;
  background: transparent; /* شفاف */
  border-bottom: 0px solid transparent;
    
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.navbar1 .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns:  auto ; /* يسار | وسط | يمين */
  align-items: center;
  gap: 10px;
}
.nav-menu1{
  justify-self: center; /* يخلّي القائمة في المنتصف بالعرض */
}

.nav-menu1{
  display: flex !important; align-items: center; justify-content: center; gap: 30px;
  /* cancel any old positioning rules */
  position: static !important; left: auto !important; top: auto !important; transform: none !important;
}
.nav-link{
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px; color: #9ca3af; position: relative; transition: color .2s ease;
}
.nav-link:hover{ color:#374151; }
.nav-link.active{ color:#111827; font-weight:600; }
.nav-link::after{
  content:""; position:absolute; left:0; right:0; bottom:-10px; height:2px; background:#111827;
  transform: scaleX(0); transform-origin: center; transition: transform .22s ease; opacity:.9;
}
.nav-menu1 .nav-link.active {
  position: relative;
  font-weight: 600;
}

.nav-menu1 .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* المسافة تحت النص */
  width: 100%;
  height: 2px; /* سمك الخط */
  background-color: #000; /* لون الخط */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* هنا الظل */
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after{ transform: scaleX(1); }
.nav-actions{ display:flex; align-items:center; gap:12px; justify-self:end; }

.hamburger{
  display:none; width:36px; height:36px; border:1px solid #e5e7eb; background:#fff; border-radius:999px;
  align-items:center; justify-content:center; gap:4px; flex-direction:column; cursor:pointer;
}
.hamburger .bar{ width:18px; height:2px; background:#111827; }

/* Mobile menu */
@media (max-width: 900px){
  .navbar1 .container{ grid-template-columns: auto 1fr auto; }
  .hamburger{ display:flex; }
  .nav-menu1{
    position: fixed !important; left:0; right:0; top:58px;
    background: rgba(255,255,255,.98); border-bottom:1px solid #eee;
    display: grid !important; grid-auto-rows: 48px; justify-items: center; gap:0;
    transform: translateY(-120%) !important; transition: transform .25s ease; padding: 10px 0 16px;
  }
  .nav-menu1.open{ transform: translateY(0) !important; }
  .nav-link::after{ bottom: -6px; }
}

/* 🔒 Remove legacy rules that used to hide menus on small screens */
.nav-menu, .nav-menu1 { display: initial; }

/* ===============================
   Buttons
=================================*/
.btn {
  display: inline-block; padding: 0.75rem 1.9rem; border-radius: 30px;
  text-transform: uppercase; font-size: 0.82rem; transition: 0.3s;
}
.btn-primary { background: var(--primary-color); color: #111; }
.btn-primary:hover { background: var(--secondary-color); color:#fff; }
.btn-secondary{ margin: 5px 0; background-color: var(--bg-secondary); color: #111; }
.btn-secondary:hover{ background: var(--secondary-color); color: var(--text-color-two); }

/* ===============================
   Header content (hero texts)
=================================*/
.header-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-top: 8rem; padding: 1rem; text-shadow: none; overflow: visible !important; flex-wrap: wrap;
}
.content-text { text-align: left; margin: 1.5rem 0; height: auto; overflow: visible; text-shadow:#ccc; }
h1::selection, h2::selection, p::selection { color: black; background: var(--primary-color); text-shadow: none; }
.content-text h1 { font-size: 1.2rem; line-height: 1; transition: .2s; text-align: left; font-style: italic; text-shadow: none; }
.content-text h2 { font-size: 3rem; line-height: 1.2; transition: .2s; text-align: left; font-style: italic; }
.content-text p  { font-size: 2rem; line-height: 1.2; transition: .2s; text-align: left; font-style: italic; text-shadow: none; }

/* ===============================
   Projects (cards/list)
=================================*/
.project-grid {
  padding: 4rem 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; padding: 2rem;
}
.project-card {
  background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(140, 181, 222, 0.2);
  overflow: hidden; transition: transform 0.3s ease;
}
.project-card:hover { transform: translateY(-8px); }
.project-img { height: 180px; width: 100%; background-size: cover; background-position: center; border-bottom: 1px solid #eee; border-radius: 20px 20px 0 0; }
.project-content { padding: 1rem 1.2rem 1.5rem; background-color: white; border-radius: 0 0 20px 20px; }
.project-sub{ color:#777; font-size:.9rem; margin-bottom:1rem; }
.project-links{ display:flex; justify-content:space-between; align-items:center; }
.project-links i{ font-size:1.5rem; color:#88a8d8; transition: color .3s; }
.project-links i:hover{ color:#5d8ac6; }
.read-more{ background-color:#eef4fb; color:#444; border:none; padding:.5rem 1rem; border-radius:8px; cursor:pointer; transition: background .3s; }
.read-more:hover{ background-color:#dbe9f7; }
.projects-header{ padding-top:6rem; margin-bottom:1.5rem; }
.projects-header h2{
  text-align:center;   font-family: 'Playfair Display', serif;
      font-size: 2.5rem;
      margin-bottom: 10px;;
}

/* ===== Modern Projects Slider ===== */
.projects-slider{
  position: relative;
  padding: 2.5rem 3.5rem;
  margin-inline: auto;
  max-width: 1200px;
}

/* تلاشي الأطراف (مودرن) */
.proj-viewport{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.proj-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 28px;
  transition: transform .35s ease;
  will-change: transform;
}

/* ===== Project card (glass + border) ===== */
.project-card{
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(2, 8, 23, .08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(2, 8, 23, .12);
  border-color: rgba(17,24,39,.12);
}

/* صورة بنسبة 16:9 مع تكبير خفيف عند الهوفر */
.project-img{
  aspect-ratio: 16 / 9;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(17,24,39,.06);
  transition: transform .5s ease;
}
.project-card:hover .project-img{ transform: scale(1.03); }

.project-content{
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
  background: transparent;
}
.project-content h3{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.project-sub{
  margin: 0;
  color: #6b7280;
  font-size: .92rem;
}

/* روابط الحداثة */
.project-links{
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-links i{
  font-size: 1.25rem;
  color: #475569;
  transition: color .2s ease, transform .2s ease;
}
.project-links i:hover{ color:#111827; transform: translateY(-2px); }

/* زر خفيف */
.read-more{
  background: #f4f6fb;
  color: #111827;
  border: 1px solid rgba(17,24,39,.08);
  padding: .45rem .8rem;
  border-radius: 10px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.read-more:hover{ background:#e9eef9; box-shadow: 0 6px 18px rgba(2,8,23,.08); }

/* ===== Arrows: أزرار زجاجية ===== */
.proj-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(140, 181, 222); /* اللون الأساسي */
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(140, 181, 222, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.proj-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 20px rgba(140, 181, 222, 0.5);
  background: rgb(160, 195, 230); /* لون أفتح عند الهوفر */
}

.proj-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.proj-btn.prev {
  left: -20px;
}

.proj-btn.next {
  right: -20px;
}


/* ===== Dots كمؤشر حديث (pill) ===== */
.proj-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.proj-dots button{
  height: 6px; width: 22px;
  border-radius: 999px; border: 0;
  background: #e5e7eb;
  transition: width .25s ease, background .25s ease;
}
.proj-dots button.active{
  width: 40px;
  background: #111827;
}

/* بطاقة نشِطة (تكبير بسيط) */
.project-card.is-active{
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(2,8,23,.14);
}

/* Responsive */
@media (max-width: 900px){
  .projects-slider{ padding: 1.5rem 1.25rem; }
  .proj-viewport{
    -webkit-mask-image: none;
            mask-image: none;
  }
}
.read-more {
  background-color: #eef4fb;
  color: #444;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.read-more:hover {
  background-color: #dbe9f7;
}
/* ===============================
   Footer (two-color)
=================================*/

#footer .container{
  padding-bottom: -20rem; display: flex; flex-direction: column; align-items: right; justify-content: right;
  color: black; min-height: 160px; text-align: center; 
}
#footer a{ font-size:.8rem; color:black; }
#footer a:hover{ opacity:.6; }
#footer .social{ margin:10rem 0; position:absolute; bottom:3rem; padding:1rem; }
#footer .social img{ width:35px; height:35px; }
#footer .social a{ margin:0 .5rem; transition:.3s; }
#footer p{ font-size:.8rem; position:absolute; bottom:1.5rem; }
/* Slider container */
.projects-slider{
  position: relative;
  padding: 2rem 2.5rem;
  margin-inline: auto;
  max-width: 1100px;
}


/* ===============================
   Skills (new circular cards + percentages)
=================================*/
body {
  font-family: 'Open Sans', sans-serif;
      background: #f7f7f7;
      margin: 0;
    }

    /* Skills Section */
    .skills-container {
      max-width: 1100px;
      margin: 2px auto;
      padding: 20px;
      text-align: center;
    }

    .skills-container h2 {
      font-family: 'Playfair Display', serif;
      font-size: 2.5rem;
      margin-bottom: 10px;
    }

    .skills-sub {
      color: #666;
      margin-bottom: 50px;
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
    }

    .skill-category {
      background: #fff;
      padding: 20px;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

    .skill-category h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      margin-bottom: 20px;
    }

    /* Skill Item */
    .skill {
      margin: 20px 0;
    }

    .progress-circle {
      position: relative;
      width: 100px;
      height: 100px;
      margin: 0 auto 10px;
    }

    .progress-circle svg {
      transform: rotate(-90deg);
    }

    .progress-circle circle {
      fill: none;
      stroke-width: 10;
      stroke-linecap: round;
    }

    .progress-bg {
      stroke: #eee;
    }
.skill-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
}

    .progress-value {
      stroke: rgb(140, 181, 222);
      stroke-dasharray: 200;
      stroke-dashoffset: calc(283 - (283 * var(--percent)) / 100);
      transition: stroke-dashoffset 1s ease;
    }
.progress-value1 {
      stroke: rgb(140, 181, 222);
      stroke-dasharray: 250;
      stroke-dashoffset: calc(283 - (283 * var(--percent)) / 100);
      transition: stroke-dashoffset 1s ease;
    }
    .progress-value2 {
      stroke: rgb(140, 181, 222);
      stroke-dasharray: 320;
      stroke-dashoffset: calc(283 - (283 * var(--percent)) / 100);
      transition: stroke-dashoffset 1s ease;
    }
    .progress-value3 {
      stroke: rgb(140, 181, 222);
      stroke-dasharray: 199;
      stroke-dashoffset: calc(283 - (283 * var(--percent)) / 100);
      transition: stroke-dashoffset 1s ease;
    }
    .progress-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-weight: bold;
    }

    .skill-name {
      margin-top: 5px;
      font-size: 1rem;
    }
/* ===============================
   Cursor trail (kept)
=================================*/
.trail-dot {
  position: absolute; width: 8px; height: 8px; background-color: rgba(140, 181, 222, 0.8);
  border-radius: 50%; pointer-events: none; z-index: 9999; animation: fadeOut 1s forwards;
}
@keyframes fadeOut { to { opacity: 0; transform: scale(1.5); } }

/* ===============================
   About page
=================================*/
.about-section { padding: 2rem 1rem; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.about-title { color: black; font-style: italic; font-size: 2rem; margin-bottom: 1rem; }
.about-description { font-size: 1.1rem; font-family: 'Poppins', sans-serif; color: #333; max-width: 700px; line-height: 1.6; margin: 0 auto; padding: 1rem; text-align: justify; }
.about-wrapper { display:flex; flex-direction: row; justify-content: space-between; align-items:flex-start; gap:3rem; padding:3rem; flex-wrap:wrap; }
.about-section { flex:2; min-width:300px; }
.about-section h2 { font-style: italic; font-size: 2rem; margin-bottom: 1rem; }
.about-section p { font-size: 1.1rem; line-height: 1.6; text-align: justify; color: #333; }
.education-box { flex:1; order:2; min-width:280px; max-width:300px; text-align:left; }
.education-box h2 { font-size:1.8rem; font-style: italic; margin-bottom:1rem; }
.education-card{
  background-color:white; padding:15px; border-radius:10px;
  box-shadow:5px 5px 15px rgb(217, 234, 253); border:1px solid rgb(217, 234, 253);
  font-size:1rem; font-weight:bold; transition: transform .3s ease, box-shadow .3s ease;
}
.education-card:hover { transform: scale(1.05); box-shadow: 8px 8px 20px rgba(0,0,0,.3); }

/* ===============================
   Responsive
=================================*/
@media (max-width: 1000px) {
  .project { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-container { margin-top: 7rem; text-align: center; }
  .content-text h2 { font-size: 2.5rem; }

  /* About fixes */
  .about-title { position: static; text-align: center; margin: 1rem 0; font-size: 1.5rem; }
  .about-description { position: static; width: 90%; margin: 1rem auto; font-size: 1rem; padding: 1rem; text-align: justify; }
  .education-box { position: static; margin: 2rem auto; width: 90%; text-align: center; }

  .about-wrapper { flex-direction: column; align-items: center; padding: 1.5rem; }
  .about-section, .education-box { max-width: 90%; text-align: center; order: initial; }
  .about-section p { font-size: 1rem; }
}
@media (max-width: 600px) {
  .project { display: grid; grid-template-columns: 1fr; }
  .card { max-width: 100%; padding: 40px; }
  .header-container .btn { border-radius: 5px; width: 80%; }
}
/* Contact *//* ===== Contact ===== */
/* =============== Contact (Clean Minimal) =============== */
:root{
  --ink:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent: rgb(255, 255, 255);
  --bg:#fff;
}


.contact-title{
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  letter-spacing: .2px;
  text-align: center;
  margin: 0;
}

.contact-sub{
  text-align: center;
  color: var(--muted);
  margin: 8px 0 48px;
  font-size: .95rem;
}

/* Section wrapper */
.contact-section{
  max-width: 1080px;
  margin: 70px auto 96px;
  padding: 0 24px;
  color: var(--ink);
}

/* ===== Card like the mock ===== */
.contact-card{
  border: 2px solid var(--ink);
  background: transparent; /* beige */
  padding: 28px;
  position: relative;
}
.contact-card::before{
  content:"";
  position:absolute;
  left: 28px; right: 28px; top: 24px;
  height: 2px;
}

/* Grid: form (left) + info (right) */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== Form: underline inputs ===== */
.contact-form{ display: grid; gap: 20px; }

.form-group{ display: grid; gap: 8px; margin: 0; }

.form-group label{
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.form-group input,
.form-group textarea{
  border: none;
  border-bottom: 2px solid var(--ink); /* ثابت ومطابق للصورة */
  border-radius: 0;
  padding: 10px 4px;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.form-group textarea{
  min-height: 64px;   /* ارتفاع بسيط مثل المثال */
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus{
  border-bottom-color: var(--accent);
  box-shadow: none;
}

/* ===== Button (black pill) ===== */
.send-btn{
  margin-top: 8px;
  justify-self: start;
  padding: 12px 26px;
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
.send-btn:hover{ filter: brightness(1.08); }
.send-btn:active{ transform: translateY(1px); }

/* ===== Right column info ===== */
.contact-info{ display: grid; gap: 22px; }
.info-block h4{ margin: 0 0 0px; font-weight: 600; color: var(--ink); }
.info-block p{ margin: 0px; color: var(--ink); line-height: 1.7; }
.info-block a{ color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.info-block a:hover{ border-bottom-color: var(--ink); }
.socials{ display: flex; gap: 0px;padding-bottom: 100px; }

/* ===== Responsive ===== */
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; gap: 28px; }
  .contact-card{ padding: 22px; }
  .contact-card::before{ left: 22px; right: 22px; top: 20px; }
  .send-btn{ width: 100%; justify-self: stretch; }
}
