/*  Font from Google */


.open-sans-normal {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/*  Navigation Styles */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 130px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 50px; /* Better than using margin-right individually */
  padding: 0;
  margin: 0;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: #474747;
  font-size: 20px;
  transition: color 0.3s ease;
  
}

nav ul a:hover {
  color:#1a701b;
}

/*  Logo or Nav Title */
.nav-title {
  font-weight: 800;
  font-size: 45px;
  color: #000;
  
}

/*  Button Styles */
.btn {
  background-color: #108461;
  border-radius: 5px;
  padding: 10px 25px;
  font-weight: bold;
  font-size: 20px;
  color: rgb(255, 255, 255);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
    text-decoration: none;

}

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

/* Banner Section */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 35px 0 200px;
  width: auto;
}

.banner-content1 {
  font-weight: 600;
  font-size: 45px;
  color: #474747;
  
}

.banner-content2 {
  font-weight: 700;
  font-size: 60px;
  color: #000;
  width: 798px;
  height: auto;
  margin-top: -40px;
}

.banner-content3 {
  font-weight: 400;
  font-size: 18px;
  color: #474747;
  margin-top: -45px;
  max-width: 700px;
}

.banner-content4 {
  margin-top: 17px;
}

/*  Header Background */
header {

  background-repeat: no-repeat;
  background-position: top left, bottom right;
  background-size: auto;
  width: auto;
  
  
}
.about {
  background: #fff8f3;
  border-radius: 10px;
  margin-top: 130px;
  
}
.section-title {
  font-size: 35px;
  font-weight: bold;
  color: #181818;
  text-align: center; /*  This will center the text horizontally */
  margin-bottom: 20px;
  
}

.section-description {
  font-size: 18px;
  color: #000000;
  
}
.secondary-bg {
background-color: #bbcfc936;}

.about1 {
  padding: 90px 140px;
}
.aout-endline {
  font-weight: bold;
  font-size: 20px;
  color: black;
}
.about-info {
  display: flex;
  justify-content: space-around;
}
.aout-info-gap {
  margin-top: 40px;
}

/* main style */
main {
  max-width: 1340px;
  margin: 0 auto;
}
/* Skills Container */
.skillls-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 20px;
}

/* Skill Card */
.skill {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  background: #fff; /* اللون الأساسي للكارت */
  color: #333;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 10px 25px rgba(39, 138, 177, 0.512);
}

.skill:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #ff0080, #00d4ff, #ff8c00);
  background-size: 300% 300%;
  color: #000000;
  animation: skillGradient 4s linear infinite;
}

/* Gradient animation */
@keyframes skillGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.skill img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.skill-title {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-description {
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .skillls-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.education {
  height: 175px;
  width: 511px;
}
.education-title {
  font-weight: bold;
  font-size: 25px;
}
.education-dex {
  font-weight: 300;
  font-size: 16px;
}
.summary-flexss {
  display: flex;
  justify-content: space-around;
  justify-content: space-between;
}
.inp {
  border: none;
  padding: 20px;
  background-color: white;
  margin-top: 20px;
  width: 400px;
}
.footer-section {
  margin-left: 230px;
  margin-top: 130px;
  width: auto;
}
.massege {
  margin-top: 130px;
  margin-right: 386px;
}
#btnn {
  margin-top: 24px;
}
#footers {
  height: 780px;
}
.connect-dex {
  padding: 12px;
}
.icon {
  margin-left: 10px;
}
.home-img {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.home-img img {
  border-radius: 30px;
  width: 27vw;
  max-width: 350px;
  min-width: 200px;
  margin-right: 4em;
  box-shadow: 0 0 25px #00ff95e3;
  cursor: pointer;
  transition: 0.2s linear;
}

/* 📱 وضع الموبايل */
@media (max-width: 768px) {
  .home-img img {
    width: 80vw;       /* تخليها عريضة على قد الموبايل */
    margin: 20px auto; /* تخلّيها في النص */
    display: block;
  }

  .home-img {
    justify-content: center;
  }
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fd6e0a;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.social-btn i {
  font-size: 18px;
}

/* Hover Effects */
.social-btn:hover {
  transform: scale(1.05);
}

/* ألوان مختلفة لكل منصة */
.social-btn.linkedin {
  background-color: #0e76a8;
}

.social-btn.github {
  background-color: #333;
}

/* From Uiverse.io by marcelodolza */ 
.button {
  --primary: #ff5569;
  --neutral-1: #28859c;
  --neutral-2: #1bad84;
  --radius: 14px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 200px;
  padding: 20px;
  height: 68px;
  font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
}
.button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}
.button:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}
.button:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45))
      border-box;
  z-index: 0;
  transition: all 0.4s ease;
}
.button:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}
.button::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}
.state p {
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon svg {
  overflow: visible;
}

/* Outline */
.outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    white 80%,
    transparent 100%
  );
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.button:hover .outline {
  opacity: 1;
}
.button:hover .outline::before {
  animation-play-state: running;
}

/* Letters */
.state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.button:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.button:focus p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
    color: var(--primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
    filter: blur(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes disapear {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

/* Plane */
.state--default .icon svg {
  animation: land 0.6s ease forwards;
}
.button:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}
.button:focus .state--default svg {
  animation: takeOff 0.8s linear forwards;
}
.button:focus .state--default .icon {
  transform: rotate(0) scale(1.25);
}
@keyframes takeOff {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: translateX(70px) rotate(45deg) scale(2);
  }
  100% {
    opacity: 0;
    transform: translateX(160px) rotate(45deg) scale(0);
  }
}
@keyframes land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Contrail */
.state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}
.button:focus .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}
@keyframes contrail {
  0% {
    width: 0;
    opacity: 1;
  }
  8% {
    width: 15px;
  }
  60% {
    opacity: 0.7;
    width: 80px;
  }
  100% {
    opacity: 0;
    width: 160px;
  }
}

/* States */
.state {
  padding-left: 29px;
  z-index: 2;
  display: flex;
  position: relative;
}
.state--default span:nth-child(4) {
  margin-right: 5px;
}
.state--sent {
  display: none;
}
.state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}
.button:focus .state--default {
  position: absolute;
}
.button:focus .state--sent {
  display: flex;
}
.button:focus .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.button:focus .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }
  30% {
    opacity: 1;
    transform: scale(0.6);
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

