/* ====== Reset and Base Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* ====== Header ====== */
header {
  background: #111;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid #1ed5db;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1ed5db;
  text-decoration: none;
}
.logo:hover {
  color: #fff;
}

.subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-top: 5px;
  margin-left: 5px;
}

.navigation a {
  color: #f0f0f0;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navigation a:hover {
  color: #1ed5db;
}

/* ====== Social Links ====== */
.social-links {
  text-align: center;
  margin: 15px 0;
}
.social-links a {
  color: #1ed5db;
  font-size: 22px;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.2s ease;
}
.social-links a:hover {
  color: #fff;
  transform: scale(1.2);
}
.header-links {
  margin-left: 20px;
}

/* ====== Main Content ====== */
main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

/* ====== Sections ====== */
section {
  margin: 60px 0;
  padding: 20px 0;
  scroll-margin-top: 100px;
}

section h2 {
  font-size: 2rem;
  color: #1ed5db;
  margin-bottom: 30px;
  border-left: 5px solid #1ed5db;
  padding-left: 15px;
}

/* ====== About Section ====== */
#about {
  text-align: center;
}
.profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 20px auto;
  border: 4px solid #1ed5db;
  display: block;
}
#about p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
}

/* ====== Cards & Boxes ====== */
.card {
  margin: 60px 0;
  padding: 20px 0;
}

.box {
  background-color: #262626;
  padding: 25px 30px;
  margin: 15px 0;
  border-left: 5px solid #1ed5db;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(30, 213, 219, 0.4);
  background: #2a2a2a;
}

.box h3 {
  margin-bottom: 15px;
  color: #1ed5db;
}

.box p {
  margin-bottom: 10px;
  color: #ddd;
  line-height: 1.7;
}

.box ul {
  list-style: none;
  padding-left: 0;
}

.box ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: #eee;
  line-height: 1.6;
}

.box ul li::before {
  content: "•";
  color: #1ed5db;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* ====== Project Links ====== */
.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #1ed5db;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.project-link:hover {
  background-color: #0bb3ba;
  color: #fff;
  transform: scale(1.05);
}

/* ====== Contact Form ====== */
#contact form {
  display: flex;
  flex-direction: column;
  background-color: #262626;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#contact form:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(30, 213, 219, 0.4);
}
#contact label {
  margin: 10px 0 5px;
  font-weight: bold;
}
#contact input,
#contact textarea {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1rem;
  background: #1a1a1a;
  color: #fff;
}
#contact textarea {
  min-height: 120px;
  resize: vertical;
}
#contact button {
  margin-top: 20px;
  padding: 12px;
  background-color: #1ed5db;
  color: black;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
#contact button:hover {
  background-color: #0bb3ba;
  color: #fff;
}

/* ====== Footer ====== */
footer {
  background-color: #111;
  color: #f0f0f0;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  margin-top: 40px;
  border-top: 2px solid #1ed5db;
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
  }

  .logo {
    font-size: 1.5em;
    margin-bottom: 5px; /* 👈 قللنا المسافة تحت الاسم */
    text-align: center;
  }

  .navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px; /* 👈 قللنا المسافة بين الروابط */
  }

  .navigation a {
    font-size: 0.9em;
    padding: 3px 8px; /* 👈 مسافة داخلية أقل */
  }
    .title{
        font-size: 1.8em;
    }


    section{
        padding: 20px 15px;
        
    }

    .main-content h2{
        font-size: 1em;
    }

    .main-content h3{
        font-size: 1.6em;
    }

    .content{
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width:641px){
    body{
        font-size: 12px;
    }

    .main-content h2{
        font-size: 0.8em;
    }

    .main-content h3{
        font-size: 1.4em;
    }
}

@media (max-width:300px){
    body{
        font-size: 10px;
     
    }
}


   