@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  font-family: 'Poppins', 'sans-serif';
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

header {
  background-color: #253246;
  border-top: 2px solid #020617;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
}

.logo {
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  color: #38bdf8;
}

.nav a {
  text-decoration: none;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 500px;
  margin-left: 15px;
  /*scroll-behavior: smooth;*/

}

.nav a:hover {
  color: #38bdf8;
}

/* --------The End of header --------*/


/* -----Main Section-------*/
section {
  padding: 100px 5%;
}

.main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: #020617;
  padding: 120px 5% 50px 5%;

}

.main h2 {
  color: #fff;
  font-size: 1.4em;
  font-weight: 500;
}

.main h2 span {
  display: inline-block;
  margin-top: 10px;
  color: #4e9eff;
  font-size: 1.8em;
  font-weight: 700;
}

.main h3 {
  color: #fff;
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  /* margin-top: 20px; */
}

.main-btn {
  text-decoration: none;
  color: #fff;
  background-color: #3a6cf4;
  /*display: inline-block;*/
  padding: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid #4e9eff;
  border-radius: 5px;
  transition: 0.7s ease;
}

.main-btn:hover {
  background-color: #4e9eff;
  transform: scale(1.1);
}

.social a {
  color: #fff;
  padding-right: 20px;
  font-size: 20px;
  margin-top: 20px;
}

/*------------ About Section -------------*/

.about {
  padding: 10px 20px;
  text-align: start;
  background-color: #fff;
  /* نفس لون الخلفية الداكنة لتوحيد الثيم */
}

.about .title {
  color: #3a6cf4;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  color: #000;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 18px;
  text-align: justify;
}


/* ------- Skills Section ------*/

.skills {
  padding: 60px 20px;
  text-align: center;
}

.title {
  /*display: flex;
    justify-content: center;*/
  color: #3a6cf4;
  font-size: 2em;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.skill-card {
  background-color: #fff;
  box-shadow: 0 5px 25px rgba(1, 1, 1, 20%);
  width: 12em;
  padding: 30px;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.1);
}

.skill-card i {
  font-size: 80px;
  text-align: center;
}

.html-icon {
  color: #E34F26;
}

.css-icon {
  color: #1572B6;
}

.js-icon {
  color: #f7df1e;
}

.git-item {
  color: #253246;
}


.skill-card h3 {
  color: #3a6cf4;
  font-size: 30px;
  font-weight: 500;
  margin: 10px;
}

.skill-card p {
  margin-bottom: 20px;
}



/* تنسيق قسم المشاريع */

.projects {
  background-color: #000016;
  padding: 60px 20px;
  text-align: center;
}

.projects .title {
  color: #3a6cf4;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* تنسيقات بطاقات المشاريع */
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0d1527;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 25px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(58, 108, 244, 0.25);
  border-color: #3a6cf4;
}

.project-icon {
  font-size: 2.5rem;
  color: #3a6cf4;
  margin-bottom: 15px;
}

.project-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.project-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.project-tags span {
  background-color: rgba(58, 108, 244, 0.15);
  color: #3a6cf4;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* تنسيق روابط المشاريع */
.project-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.project-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* زر الكود (GitHub) */
.project-links .btn-code {
  background-color: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
}

.project-links .btn-code:hover {
  color: #ffffff;
  border-color: #64748b;
  background-color: #1e293b;
}

/* زر المعاينة المباشرة (Demo) */
.project-links .btn-demo {
  background-color: #3a6cf4;
  color: #ffffff;
  border: 1px solid #3a6cf4;
}

.project-links .btn-demo:hover {
  background-color: #2557d6;
  border-color: #2557d6;
  box-shadow: 0 4px 12px rgba(58, 108, 244, 0.3);
}

/* Contact Section */

.contact-section {
  padding: 4rem 2rem;
  background-color: #f9fafb;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info p {
  margin-bottom: 10px;
}

/* ==========================================
   Quick Contact Cards Styling
   ========================================== */
.quick-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contact-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.whatsapp-icon {
  background-color: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.phone-icon {
  background-color: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.card-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.submit-btn {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #1d4ed8;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Footer Section Styling
   ========================================== */
.footer {
  background-color: #0b0f19;
  border-top: 1px solid #1e293b;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-text span {
  color: #ffffff;
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #00abf0;
  transform: translateY(-3px);
}



@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
  }

  .nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .main {
    padding-top: 250px;
  }

  .main h3,
  .main h2 {
    font-size: 1.2rem;
  }

  .about .title {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
  }

  .skill-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .content {
    flex-direction: column;
    align-items: center;
  }

  .projects {
    padding: 60px 15px;
    overflow-x: hidden;
  }

  .projects .content {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .projects .skill-card,
  .projects .project-card {
    width: 90%;
    max-width: 100%;
    margin: 0 auto 20px auto;
  }

  .contact-section {
    padding: 50px 15px;
    text-align: center;
  }

  .contact-section h2,
  .contact-section .title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .contact-section p,
  .about p {
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-word;
  }

}