* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8fbff;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #e6f2ff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  color: #007bff;
  font-size: 1.4rem;
}

/* NAV */
nav {
  display: flex;
  gap: 15px;
}

nav a {
  color: #007bff;
  text-decoration: none;
  font-weight: 650;
}

nav a:hover {
  color: #080808;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #007bff;
  margin: 4px 0;
  transition: 0.3s;
}

/* Hamburger Animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #007bff;
  display: none; 
}


.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
}


.photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #cfe8ff;
  margin: 20px auto;
  background-size: cover;
  background-position: center;
  background-image: url('nidal.jpg');
}

h2 {
  color: #007bff;
  margin-top: 20px;
}


.skills, .projects, .contact {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 30px;
  padding: 20px;
  text-align: left;
}

.skills:hover {
  transition: 0.3s;
  transform: translateY(-5px);
}

ul {
  list-style-type: square;
  margin-top: 10px;
  margin-left: 20px;
}


.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

  .projects:hover{
  transition: transform 0.3s ease;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

.card {
  background-color: #e7e7ee;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.445);
}

.card h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  margin-top: 35px;
  padding: 8px 15px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: #005fcc;
}

#contact {
  text-align: center;
}
.contact:hover{
  transition: transform 0.3s ease;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

footer {
  background-color: #e6f2ff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  color: #555;
  font-size: 0.95rem;
  font-weight: 530;
}

.links {
  color: #080808;
  text-decoration: none;
}

/* telphone */
@media (max-width: 600px) {

  .hamburger {
    display: flex;
  }

  nav {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 64vh;
    width: 88%;            /* HALF SCREEN */
    background: #e6f2ff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    font-size: 1.5rem;
    z-index: 999;
    transition: 0.3s;
  }

  nav.active {
    display: flex !important;
  }

  nav a {
    font-size: 1.4rem;
  }

  .close-btn {
    display: block;
  }
}

