* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #0f1115;
  color: #f3f3f3;
  line-height: 1.6;
  text-align: center;
}
nav {
  background: #1a1c22;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  text-decoration: none;
  color: #f3f3f3;
  font-weight: 500;
  transition: 0.3s;
}
nav ul li a:hover {
  color: #00bcd4;
}
.hero {
  padding: 60px 20px;
}
.hero img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid #00bcd4;
  margin-bottom: 15px;
}
.hero h1 {
  font-size: 2em;
  margin-bottom: 5px;
}
.hero h3 {
  color: #aaa;
  margin-bottom: 10px;
}
.hero p {
  color: #ccc;
  margin-bottom: 20px;
}
.links a {
  display: inline-block;
  color: #00bcd4;
  text-decoration: none;
  margin: 0 10px;
}
.projects {
  padding: 40px 20px;
}
.projects h2 {
  margin-bottom: 30px;
  font-size: 1.8em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.card {
  background: #1c1f26;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  background: #232731;
}
.actions {
  background: #181a1f;
  padding: 40px 20px;
}
.actions h2 {
  margin-bottom: 20px;
}
.buttons .btn {
  display: inline-block;
  background: #00bcd4;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  margin: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}
.buttons .btn:hover {
  background: #00a0b5;
}
.contact {
  padding: 40px 20px;
}
form {
  max-width: 500px;
  margin: auto;
}
input, textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1a1c22;
  color: #fff;
}
button {
  background: #00bcd4;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: #0099aa;
}
footer {
  background: #1a1c22;
  padding: 20px;
  font-size: 0.9em;
  color: #999;
  margin-top: 40px;
}

.projects {
  padding: 50px 0;
  overflow: hidden;
  position: relative;
}

.projects h2 {
  margin-bottom: 25px;
  font-size: 1.8em;
}

.scroll-container {
  display: flex;
  animation: scroll-left 25s linear infinite;
}

.scroll-container:hover {
  animation-play-state: paused; /* توقف عند تمرير الماوس */
}

.card {
  min-width: 250px;
  background: #1c1f26;
  padding: 20px;
  border-radius: 10px;
  margin: 0 15px;
  flex-shrink: 0;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  background: #232731;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
