html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #0b0f17;
  --bg-2: #0f1724;
  --accent: #250446;
  --accent-2: #080b48;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(170, 85, 85, 0.12), transparent),
              radial-gradient(900px 400px at 90% 80%, rgba(255,127,127,0.08), transparent),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: #e6eef6;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

/* Background shapes */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  filter: blur(40px);
  opacity: 0.6;
  mix-blend-mode: screen;
  transform-origin: center;
  animation: float 12s linear infinite;
}
.shape.s1 {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 10%;
  background: linear-gradient(135deg, var(--accent), rgba(80, 46, 46, 0.8));
  animation-duration: 16s;
}
.shape.s2 {
  width: 260px;
  height: 260px;
  right: -60px;
  top: 40%;
  background: linear-gradient(135deg, rgba(98, 61, 61, 0.9), rgba(74, 39, 39, 0.9));
  animation-duration: 18s;
}
.shape.s3 {
  width: 180px;
  height: 180px;
  left: 10%;
  bottom: -40px;
  background: linear-gradient(135deg, rgba(38, 16, 16, 0.9), rgba(255,127,127,0.6));
  animation-duration: 14s;
}

@keyframes float {
  ansform: translateY(0) rotate(0deg) }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
 background: rgba(0, 0, 0, 0.3); /* أسود شفاف 30% */
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 25px;
  font-weight: bold;
  color: #f90000;
}
.logr {
  color: #c5b0b0;
  font-size: 25px;
  font-weight: bold;
  
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #f90000;
}


/* ////////// */


.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90vh;
  padding: 0 80px;
padding-bottom: 0px;
  z-index: 1;
}
.hero-text {
  max-width: 50%;
}
.hero-text h1 {
  font-size: 48px;
  margin-bottom: 15px;
}
.hero-text h1 span {
  color: #f90000;
}
.hero-text h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #cd1f1ff4;
}
.hero-text p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #bbb;
}
.btn {
  padding: 12px 25px;
  background: #f50303;
  border: none;
  border-radius: 25px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover {
  background: #f95f00;
}

.hero-img img {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 5px solid #e40d0d;
  object-fit: cover;
}


/* /////////// */








.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px;
}
.about-container {
  display: flex;
  max-width: 1000px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content {
  flex: 2;
  padding: 40px;
  padding-bottom: 0px;
}
.about-content h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ff2e63;
}
.about{
  color: #eee6e8;
}
.about-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.btnn {
  padding: 12px 25px;
  background: #f80441;
  border: none;
  border-radius: 25px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}



@media (max-width: 768px) {
  .about-content {
    padding: 20px;         /* يقلل المسافات عشان المحتوى يظهر كله */
    text-align: center;    /* يوسّط النص والزرار */
  }

  .about-content h1 {
    font-size: 24px;       /* يصغر العنوان شوية */
  }

  .about-content p {
    font-size: 14px;       /* يقلل حجم النص */
  }

  .btnn {
    display: inline-block;
    width: 70%;            /* يخلي الزرار ياخد عرض مريح على الموبايل */
    max-width: 250px;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
  }
}








/* ////////////////////////////// */
.my{
  color: #ebe5e6;
}
.skills {
  padding: 50px;
  background: #252222;
  color: #fff;
  padding-bottom: 90px;
}
.skills h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #d01d1d;
}
.skill {
  margin-bottom: 20px;
}
.skill p {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}
.progress {
  width: 100%;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #82121f, #f5081c);
  width: 0;
  transition: width 2s ease;
}


















/* ////////////////////////////////////*/
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 40px 0;
  color: #c71832;
  padding-bottom: 10px;
}
.projects-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #000;
  color: #fff;
}
.projects-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: nowrap;
  max-width: 1100px;
  margin: 0 auto;
}
.project-card {
  flex: 1;
  max-width: 265px;
  background: #111;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 182, 193, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgb(232, 13, 46);
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #d8102e;
}
.project-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.project-card a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff2e35;
  color: #000;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.project-card a:hover {
  background-color: #decdd1;
  transform: scale(1.05);
}




@media (max-width: 768px) {
  .projects-row {
    flex-direction: column; /* يخلي الكروت تحت بعض */
    align-items: center; /* يوسّطهم في النص */
  }

  .project-card {
    max-width: 90%; /* تخلي عرض الكارت مناسب للموبايل */
  }
}






/* <!-- /////////////////////////////////////////////////////////////////// --> */
.contact-container {
  width: 500px;
  padding: 20px;
  margin: 50px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 10px;
}
.contact-container h2 {
  font-size: 28px;
  font-weight: bold;
}
.underline {
  width: 80px;
  height: 2px;
  background: red;
  margin: 10px auto;
  position: relative;
}
.underline::before,
.underline::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background: red;
  left: 25%;
  top: 5px;
}
form {
  margin-top: 20px;
}
input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}
.row {
  display: flex;
  gap: 10px;
}
.row input {
  flex: 1;
}
button {
  background: #f94949;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background: #e62e5c;
}





.contact-container h2 {
  font-size: 28px;
  font-weight: bold;
  text-align: center; /* يخليه في النص */
  margin: 0; /* يشيل المارجن القديم */
}












/* <!-- /////////////////////////////////////////////////////////////////// --> */

footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.footer-container {
  max-width: 900px;
  margin: auto;
}
.social-icons {
  margin-bottom: 20px;
}
.social-icons a {
  display: inline-block;
  margin: 0 10px;
  color: #e3b6bd;
  font-size: 22px;
  border: 2px solid #d25373;
  border-radius: 50%;
  padding: 10px;
  transition: 0.3s;
}
.social-icons a:hover {
  background: #a11a2e;
  color: #111;
}
.footer-links {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.footer-links li {
  display: inline-block;
  margin: 0 15px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.footer-links a:hover {
  color: #ce1c37;
}
footer p {
  margin-top: 20px;
  font-size: 14px;
  color: #bbb;
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

/* ================= Responsive Design ================= */

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 15px;
  }
  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    height: auto;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-img img {
    width: 200px;
    height: 200px;
    margin-top: 20px;
  }
  .about-container {
    flex-direction: column;
  }
  .projects-row {
    flex-wrap: wrap;
  }
  .project-card {
    max-width: 100%;
  }
  .contact-container {
    width: 100%;
    margin: 20px auto;
  }
}































/* زرار المنيو (الهامبرجر) */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  
}

/* للموبايل */
@media (max-width: 768px) {
  .nav-links {
  display: flex;
  flex-direction: column;
  background: #111;
  position: fixed;
  top: 0;
  right: -250px; /* مخفي برة الشاشة */
  height: 100%;
  width: 250px;
  padding: 60px 20px;
  transition: 0.3s ease-in-out;
  z-index: 999;
}


  .nav-links.show {
  right: 0; /* يبان من الجنب */
}

  .menu-toggle {
    display: block; /* زرار 3 شرط يظهر */
  }
}
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: rgb(238, 223, 223);
  position: absolute;
  top: 20px;
  right: 20px; /* يخلي التلت شرايط في أقصى اليمين */
  z-index: 1000;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* يظهر في الموبايل */
  }
}

.nav-links {
  display: flex;
  gap: 15px;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 10px;
    border-radius: 10px;
  }
  .nav-links.active {
    display: flex;
  }
}

  .navbar {
    height:60px;
    display:flex;
    align-items:center;
    padding:0 20px;
    background:#222;
    color:#fff;
    position:relative;
  }
  .brand { font-size:18px; font-weight:600; }

  /* زرار الهامبرجر (مخفي على الديسكتوب) */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1100;
  }
  .menu-toggle .bar {
    display:block;
    width:26px;
    height:3px;
    margin:5px 0;
    background:#ffffff;
    border-radius:2px;
  }

  /* روابط الناف بار (ديسكتوب) */
  .nav-links {
    margin-left:auto;
    display:flex;
    gap:15px;
    list-style:none;
    padding:0;
  }
  .nav-links li a {
    color:#fff;
    text-decoration:none;
    padding:8px 12px;
    display:block;
  }

  /* -------- mobile styles -------- */
  @media (max-width: 768px) {
    .menu-toggle { display:block; }

    /* خلي الروابط في sidebar ثابتة على اليمين و مختفية افتراضياً عن طريق transform */
    .nav-links {
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: 250px;
      padding: 60px 20px;
      background: #111;
      transform: translateX(100%); /* مخفية خارج الشاشة على اليمين */
      transition: transform 0.3s ease-in-out;
      display: flex;
      flex-direction: column;
      gap: 18px;
      z-index: 1050;
    }

    /* لما نضيف الكلاس show تظهر */
    .nav-links.show {
      transform: translateX(0);
    }

    /* اخفاء روابط الديسكتوب لو لسه موجودة */
    .nav-links li a { font-size:18px; color:#fff; }
  }