/* Reset */
html{
  scroll-behavior: smooth;
  scrollbar-color: #6a5272 #F3E2D4 ;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  color: #F3E2D4;
  background-color: #17313E;
  line-height: 1.6;
}

/* Navbar */
nav {
  background: #415E72;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav h2 {
  font-size: 24px;
  font-weight: bold;

}

nav h2 span {
  color: #C5B0CD;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #C5B0CD;
}

/* Home Section */
.Home {
  display: flex;
  justify-content: space-between;
  align-items:center;
  padding: 80px 50px;
  background: #F3E2D4;
  width: 100%;
}

.MyInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
}

.MyInfo h1 {
  font-size: 52px;
  margin-bottom: 15px;
  text-align: left;
  color: #415E72;
}

.MyInfo h1 span {
  color: #415E72;
  
}
.MyInfo h2{
font-size: 45x;
 color: #415E72;
}
.MyInfo h2 span {
  color: #6a5272;
  
}

.MyInfo p {
  margin-top: 10px;
  font-size: 25px;
  max-width: 700px;
  color: #415E72;
}

/* Circle Photo */
.photo-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: #C5B0CD;
  background-size: cover;
  background-position: center;
  border: 5px solid #415E72;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  /*margin-right: 30px;
 */

}

/* Social Links */
.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start; /* يخلي العناصر على الشمال */
  gap: 15px;
  padding: 5px; /* شيل أي padding مش محتاجاه */
}


.social-links a {
  font-size: 55px;     
  color: #415E72;
  transition: 0.3s;
}

.social-links a:hover {
  color: #C5B0CD;   
}

/* Buttons */
.buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  
}

.btn, .btn-outline {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn {
  background: #415E72;
  color: #fff;
}

.btn:hover {
  background: #17313E;
}

.btn-outline {
  border: 2px solid #415E72;
  color: #415E72;
}

.btn-outline:hover {
  background: #415E72;
  color: #fff;
}

/* ========== General Sections ========== */
/* Skills Section */
.Skills {
  padding: 60px 20px;
}

.Skills h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  color: #d5c1dc;
  position: relative;
}

.Skills h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #d5c1dc;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* 👇 ده الجديد */
.Skills .categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* صفين */
  gap: 30px; /* مسافة بين الصناديق */
}

.Skills .category {
  background: #65abcf; /* box background */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.Skills .category h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #F3E2D4;
  border-left: 5px solid #415E72;
  padding-left: 10px;
}

.Skills .skill-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start; /* skills تبقى شمال */
}

.Skills .skill-item {
  background: #C5B0CD;
  color: #17313E;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: 0.3s ease-in-out;
}

.Skills .skill-item:hover {
  background: #415E72;
  color: #F3E2D4;
  transform: translateY(-3px);
}

/* Experience Section */
.Experience {
  padding: 5px 10px 50px;
   display: flex;
  justify-content: center; /* يوسّط أفقياً */
  align-items: center;

}

.Experience .container {
  max-width: 1000px;
  margin: left;
  display: grid;
  grid-template-columns: 1fr; 
  gap: 20px; 

}
.Experience h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  color: #d5c1dc;
  position: relative;
  
  
}

.Experience h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #C5B0CD;
  margin: 10px auto 0;
  border-radius: 2px;
}
.Experience .exp-box {
  background: #F3E2D4;
  border-left: 6px solid #C5B0CD;
  
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
}

.Experience .exp-box:hover {
  transform: translateY(-5px);
}

.Experience h3 {
  color: #17313E;
  margin-bottom: 10px;
  align-items: start;
}

.Experience ul {
  margin-left: 20px;
  list-style: disc;
  color: #415E72;
}
.Experience.exp-box ul p{
    font-size: 40px;
    font: bold;
    color: #415E72;
}

.exp-box {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}

.exp-box.show {
  opacity: 1;
  transform: translateX(0);
}


/* Projects Section */
/* Projects Section */
.Projects {
  padding: 80px 20px;
  background: #F3E2D4; /* خلفية فاتحة */
}

.Projects h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  color: #17313E;
  position: relative;
  
}

.Projects h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #C5B0CD;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Projects Section */
.Projects {
  padding: 80px 20px;
  background: #F3E2D4; 
}

.Projects h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  color: #17313E;
  position: relative;
}

.Projects h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #C5B0CD;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Project Card */
.project-card {
  background: #fff;
  border: 2px solid #C5B0CD;
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;              
  flex-direction: column; 
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: #415E72;
}

.project-card h3 {
  color: #415E72;
  font-size: 24px;
  margin-bottom: 15px;
}

.project-card p {
  color: #17313E;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Button */
.project-card .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #415E72;
  color: #fff;
  border-radius: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;

  width: 50%;
  margin-top: auto;
  margin-left: 25%;
  
}

.project-card .btn:hover {
  background: #C5B0CD;
  color: #17313E;
}


/* Certificates Section */
.Certificates {
  padding: 60px 20px;
  background: #F3E2D4;
}

.Certificates h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
  color: #17313E;
}
.Certificates h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #C5B0CD;
  margin: 10px auto 0;
  border-radius: 2px;
}
/* Grid */
.Certificates .certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  justify-items: center;
}

.certificate-card {
  width: 400px;
  height: 380px;
  background: #fff;
  border: 2px solid #C5B0CD;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: 0.3s;
}

.certificate-card img {
  width: 100%;
  height: 220px;
  object-fit: cover; 
  border-radius: 10px;
  margin-bottom: 10px;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.certificate-card h3,.certificate-card p{
  color:#17313E;
}
.certificate-card h3{
  font-size: 22px;
}
/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .Certificates .certificates-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .Certificates .certificates-grid {
    grid-template-columns: 1fr; /
  }
}


/* Contact Section */
.Contact{
  padding: 20px 60px;
}
.Contact h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
  color: #C5B0CD;
}
.Contact h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #C5B0CD;
  margin: 10px auto 0;
  border-radius: 2px;
}
.Contact .contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
  font-size: 20px;
}

.Contact a {
  text-decoration: none;
  color: #a7b2ba;
  font-weight: bold;
  transition: 0.3s;
  text-align: center;
}

.Contact a:hover {
  color: #C5B0CD;
}

/* Footer */
footer {
  background: #17313E;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
