@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

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

body {
  background-color: #120c1c;
  min-height: 100vh;
  color: #f3f3f3;
  text-align: center;
  transition: background-color 0.5s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 2rem 1rem;
  margin: 0 auto;
  text-align: left;
  animation: fadeIn 1s ease forwards;
}

.logo {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  height: auto;
  font-size: 1.5rem;
}

.navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navigation a {
  text-decoration: none;
  color: #f3f3f3;
  font-weight: bold;
  transition: color 0.3s;
  position: relative;
}

.navigation a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #0bc4ff;
  transition: 0.3s;
}

.navigation a:hover::after {
  width: 100%;
}

.navigation a:hover {
  color: #0bc4ff;
}

hr {
  opacity: 0.1;
  margin: 1rem auto;
  width: 90%;
}

.fullscreen-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 3rem 1rem;
  scroll-margin-top: 100px;
  text-align: center;
}

.hero {
  max-width: 1000px;
  margin: auto;
  gap: 3rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease forwards;
}

.heroSub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.name {
  font-size: 3rem;
  color: #8ac2c2;
}

.title {
  font-size: 1.8rem;
  color: #aaa;
}

.hireMe {
  background-color: #8ac2c2;
  color: #222;
  border-radius: 24px;
  text-decoration: none;
  padding: 0.6rem 2rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.hireMe:hover {
  background-color: #0bc4ff;
  color: white;
}

.heroImg {
  max-width: 300px;
  filter: drop-shadow(0 0 20px #0bc4ff44);
  animation: float 4s ease-in-out infinite;
}

.aboutMe {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
  text-align: left;
  min-height: 100vh;
}

.aboutMeImg {
  width: 300px;
  filter: drop-shadow(0 0 10px #0bc4ff44);
}

.textcontainer {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.textTitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
}

.About {
  color: #0bc4ff;
}

.Me {
  color: #f3f3f3;
}

.Aboutmepar {
  text-align: justify;
  color: #ddd;
  line-height: 1.6;
}

.worksContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: left;
  margin: 5rem auto;
  max-width: 1200px;
}

.projectTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-size: 2rem;
  width: 100%;
}

.works ul {
  display: flex;
  list-style-type: none;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px;
  padding: 0.6rem 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.works li {
  border-radius: 16px;
  background-color: rgba(137, 43, 226, 0.26);
  backdrop-filter: blur(4px);
  padding: 1rem 4rem;
  transition: transform 0.3s ease;
}

.works li img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  transition: transform 0.3s;
}

.works li :hover {
  transform: scale(1.1);
}

.contactcontainer {
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contactTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.emailAndPhone {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.emailAndPhone h3,
.emailAndPhone a {
  color: #f3f3f3;
  text-decoration: none;
}

.socialMedia {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.socialMedia a {
  background-color: #1b1b2f;
  border-radius: 50%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.3s ease;
}

.socialMedia a:hover {
  background-color: #0bc4ff;
  transform: rotate(10deg) scale(1.1);
}

.socialMedia img {
  width: 24px;
  height: 24px;
}

footer {
  color: #f3f3f3;
  padding: 2rem;
  text-align: center;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
  scroll-behavior: smooth !important;
  transition: all 0.3s ease-in-out;
}
/* لإصلاح التمركز العام */
section,
header,
footer,
.hero,
.aboutMe,
.works,
.contactcontainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

/* إصلاح مشاكل العرض في الشاشات الصغيرة */
@media (max-width: 1023px) {
  header {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .heroImg {
    width: 400px;
  }
  .name,
  .title {
    font-size: 2rem;
  }
  .arrow {
    display: none;
  }
  .aboutMe {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
  }
  .textContainer {
    align-items: center;
    margin: 0rem 5rem;
    gap: 1rem;
  }
  .aboutName,
  .aboutTitle {
    font-size: 2rem;
  }
  .light {
    width: 60px;
  }
  .aboutMeImg {
    width: 400px;
  }
  .works {
    padding: 0;
  }
  .worksContainer {
    padding: 5rem 0rem;
    gap: 3rem;
  }
  .projectTitle {
    margin-left: 1rem;
  }
  .works ul {
    flex-direction: column;
    gap: 1rem;
  }
  .contactContainer {
    margin: 10rem 5rem;
    gap: 2rem;
  }
  .contact {
    flex-direction: column;
    gap: 1rem;
    margin-right: 0;
  }
}


