* {
  box-sizing: border-box;
  margin: 0;
}

body{
  background-color: rgb(48, 55, 64);
  
}

html {
  scroll-behavior: smooth;
}
/* style for my navigation bar */
.topnav {
  background-color: rgb(57, 97, 97);
  overflow: hidden;
  

}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  font-size:  1.2rem; 
  transition: all 0.3s ease-in-out;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
  transform: scale(1.02);
  border-radius: 1vw;
  text-shadow: 0.5rem 0.5rem 1.5rem rgb(22, 1, 1);
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 700px) {

  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav a:first-child {
    background-color: rgb(39, 63, 63);
    color: rgb(250, 250, 250);
    transition: background-color 1s, color 1s ease-in-out; 
  }
}

@media screen and (max-width: 700px) {
  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Style for my Main */

.Container {
  position: relative;
  text-align: center;
}

.Container img {
  width: 100%; 
  height: 30rem;
  opacity: 0.5;
  z-index: -1;
  box-shadow: 0 0.5rem 1.4rem   rgb(93, 102, 114);

}

.Container h1 {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(218, 215, 215);
  text-shadow: 0.5rem 0.5rem 1.5rem rgb(22, 1, 1);         
  font-size: 2.7rem;     
  z-index: 1;             
}

main section{
  margin: 0;
}

/* this is the divider */
.divider {
  height: 0.2rem;
  background-color: #989cb662;
  margin: 3rem auto;
  width: 98%;
}


/* info boxes */
.info-boxes {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem; 
  box-sizing: border-box;
  
}

.box {
  flex: 10 10 250px;  
  max-width: 300px;
  background-color: rgb(65, 75, 90);
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.box p {
  font-size: 1.1rem;
  color: #dbd1d1;
  text-align: justify;
}

.box h2 {
  margin-bottom: 0.5rem;
  color:  #dbd1d1;
  text-align: center;

}

/* this is the design for my projects */

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

.project h1 {
  margin-bottom: 1rem;
  margin-right: 2rem; 
  font-size: 2rem; 
  color: #ffffff; 
  text-shadow: 1.2rem 2rem 10rem rgba(194, 191, 191, 0.63);
}

.project div {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project a {
  display: inline-block;
  width: 100%;
  max-width: 350px; 
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; 

}

.project img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .project h1 {
    text-align: center;
    float: none; /* Center title for smaller screens */
  }

  .project div {
    justify-content: center;
    gap: 15px;
  }

  .project a {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .project a {
    max-width: 100%;
  }
}

/* this is the start of my footer */

.footer {
  background-color: rgb(93, 107, 129);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1rem;
  margin-top: 5rem;
  position: relative;
}


.footer p {
  margin: 0.5rem 0;
}


.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #ddd;
  transform: scale(1.1);
}

.footer-link i {
  font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-link {
    font-size: 1.1rem;
  }
}

/* contact me style */
.contact-form {
  background-color: #f4f4f4e5;
  padding: 2rem;
  margin: 3rem auto;
  width: 80%;
  max-width: 40rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  width: 100%;
  padding: 0.8rem;
  background-color: #81a0c9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

.contact-form button:hover {
  background-color: #7fc0c0;
}


#home {
  position: relative;
  background-attachment: fixed; /* Remove this if you don't want fixed background */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Remove any transform properties */
}

.topnav a {
  transition: none !important;
}
.topnav a:hover {
  transform: none !important;
  background: none !important;
  color: inherit !important;
}