* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f4f4f4;
  line-height: 1.6;
}

header {
  background-color: #282c34;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

nav a {
  color: #61dafb;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 10px;
  transition: color 0.3s ease-in-out;
}

nav a:hover, nav a:focus {
  color: #fff;
  transition: color 0.3s ease-in-out;
}

main {
  padding: 20px;
  max-width: 960px;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
}

img.profile-pic {
  float: left;
  border-radius: 50%;
  width: 200px;
  margin-right: 20px;
  border: 5px solid #61dafb;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

section {
  clear: both;
  padding: 20px;
  margin-top: 20px;
  transition: transform 0.3s ease-in-out;
}

section:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
}

footer {
  background-color: #282c34;
  color: #61dafb;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  img.profile-pic {
    display: block;
    float: none;
    margin: 20px auto;
  }

  section {
    padding: 20px;
  }
}

.fadeIn {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Portfolio Projects Styles */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.project {
  background: #e3e3e3;
  border-radius: 8px;
  padding: 20px;
  margin: 10px;
  width: calc(50% - 40px);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease-in-out;
}

.project:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .project {
    width: calc(100% - 20px);
  }

  .modal-content {
    width: 90%;
    margin: 10% auto;
  }
}




.fadeIn {
  animation: fadeIn 1s ease-in-out;
}

