* {
  margin: 0;
  padding: 0;
  transition: all 0.5s ease-in-out;
}
body,
html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #0836efa3, #0834e2, #133ad8, #040d35);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: sans-serif;
  color: white;
  scroll-behavior: smooth;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.main {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: space-around;
  top: 0;
  padding: 0.8rem 1rem;
  background-color: rgb(0, 28, 111);
  width: 100%;
  z-index: 1001;
}

.logo-text{
  font-size: 1.4em;
  color: #d0c9f7;
  background-color: #1703f3;
  font-weight: bold;
 border-radius: 10px;
  padding: 0.1rem 0.2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin:  10px 0;
}


.logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  color: #d6d5dc;
}

ul {
  display: flex;
  flex-direction: row;
  margin: 15px;
  padding: 10px;
}

.li {
  color: #fff;
  list-style: none;
  margin: 10px;
}

a {
  padding: 0.2rem 0.5rem;
  text-decoration: none;
  color: #d7d9e2;
  font-weight: 600;
}


li a:hover {
  color: #02278b;
  font-weight: 600;
  background-color: #ffffffe6;
  padding: 0.2rem 0.5rem ;
  border-radius: 5px;
  transition: all 1s ease-in-out;
  
}

.ham-menu {
  height: 50px;
  width: 40px;
  margin-left: auto;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  display: none;
}

.ham-menu span {
  display: flex;
  flex-direction: column;
  height: 5px;
  width: 100%;
  background-color: #fcf7f7;
  border-radius: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}

.ham-menu span:nth-child(1) {
  top: 25%;
}

.ham-menu span:nth-child(3) {
  top: 75%;
}

.ham-menu.active span {
  background-color: white;
}

.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
  opacity: 0;
}

.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.off-screen-menu {
  background-color: rgba(34, 37, 49, 0.945);
  height: 100vh;
  width: 100%;
  max-width: 450px;
  position: fixed;
  top: 0;
  right: -450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 3rem;
  transition: 0.3s ease;
  z-index: 1000;
}

.off-screen-menu.active {
  right: 0;
}

.ul-off-screen {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.ul-off-screen li {
  list-style: none;
  margin: 1rem 0;
}

.ul-off-screen li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  display: block;
}

.form-container form input,
.form-container form button,
.form-container form textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #fcf4f4;
  border-radius: 4px;
  background-color: black;
  border: none;
}

.form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 15px;
  background-image: url(images/portfolio-contact-bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: 10px auto;
}

.form-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 8px;
  width: 350px;
}

.form-container form input,
.form-container form textarea {
  color: #171515;
}

.form-container form input,
.form-container form button,
.form-container form textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #fcf4f4;
  border-radius: 4px;
  background-color: rgb(212, 230, 245);
  border: none;
}

.form-container form button {
  background-color: #0323a390;
  color: rgb(165, 161, 161);
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  font-size: 20px;
  padding: 0.5rem;
  margin: 0.5rem 0;
  width: 12rem;
  font-weight: 600;
}

.form-container form button:hover {
  background-color: #0f1a4a;
  color: #fff;
}

.form a {
  color: #f4f4f7;
  font-weight: 600;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  padding: 15px;
  box-sizing: border-box;
  background-color: #cccccc28;
  border-radius: 15px;
}

.hero-container .h1 {
  margin-bottom: 0.1rem;
  color: #fff;
  padding: 0.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-container .DownloadResume {
  margin-top: 2rem;
  color: #fff;
  font-size: 1.5rem;
  background-color: #1a523518;
  width: 16rem;
  min-height: 5vh;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-container .DownloadResume:hover {
  background-color: #6f85f1;
  transform: translateY(-2px);
}

.hero-container .hero-p {
  max-width: 600px;
  color: #fffafa;
  font-weight: 200;
  font-family: Arial, Helvetica, sans-serif;
}

.stack {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background-color: #ccc;
  border-radius: 10px;
  margin: 8px;
  flex-wrap: wrap;
}

.stack svg {
  font-size: 2.3rem;
  transition: transform 0.2s;
  background-color: rgba(0, 0, 128, 0.18);
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  margin: 0.5rem;
}

.about-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  padding: 20px;
  box-sizing: border-box;
  background-color: #a39e9e52;
  border-radius: 15px;
}

.about-container img {
  width: 15rem;
  height: 20rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.about-container .h1 {
  margin-bottom: 1rem;
  color: #fff;
}
 .h1 {
  margin-top: 6rem;
}

.abiut-h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

p{
  color: #ccc8efdd;
  font-size: 1rem;
  font-weight: 600;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(195, 172, 249, 0.055);
  border-radius: 15px;
  background-color: #131214;
  padding: 10px;
  box-shadow: 0px 4px 6px rgba(16, 2, 2, 0.984);
  transition: background-color 1s ease, transform 2s ease;
  border: #0834e252 4px solid;
}

.project-card:hover {
  background-color: #131214;
  transform: translateY(-5px);
  box-shadow: 0px 4px 6px rgba(16, 2, 2, 0.984);
}

.projects-grid .project-card .card-image img {
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  height: 200px;
  border: #0834e252 4px solid;
}

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.card-image img {
  height: 100%;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.card-content h3 {
  color: white;
  font-size: 1.2rem;
}

.card-content p {
  color: #ddd;
  font-size: 0.9rem;
}

.view-project {
  display: flex;
  justify-content: center;
  padding: 8px 16px;
  margin: 8px;
  background: #1703f3;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  max-width: 10rem;
}

.view-project:hover {
  background: #ccc;
  color: #050238;
  transform: translateY(2px) scale(1.1);
  transition: all 0.3s ease;
}

.footer {
  text-align: center;
  padding: 2rem;
  background: #2c3e50;
  color: white;
  border-radius: 8px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.icon {
  color: white;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: translateY(-5px);
  color: #3498db;
}

@media (max-width: 1024px) {
  .header nav ul {
    display: none;
  }

  .ham-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .off-screen-menu {
    max-width: 100%;
    right: -100%;
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main {
    padding: 15px;
    width: 90%;
    max-width: none;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-container .h1 {
    font-size: 2rem;
  }

  .hero-container .hero-p {
    width: 100%;
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 10px;
    width: 90%;
    max-width: none;
    margin: 0 auto;
  }

  .stack svg {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .off-screen-menu {
    font-size: 2rem;
  }

  .ham-menu {
    height: 40px;
    width: 35px;
  }

  .stack svg {
    font-size: 1.5rem;
  }

  .about-container img {
    width: 12rem;
    height: 16rem;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

.off-screen-menu {
  z-index: 1000; 
}

.header {
  z-index: 1001;
}
.FeaturedProjects{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: #02065552;
  border-radius: 15px;
  margin: 10px auto ;
}