* {
    padding:0;
    margin:0;
    box-sizing: border-box;
}

   body {
      font-family: 'Segoe UI', sans-serif;
      background-color: #111;
      color: white;
      overflow-x: hidden;
    }


/* Style the navigation menu */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  z-index: 10;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;

}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding:10px;
  transition: color 0.3s;
}  
 
    /* Hero Section */
    .hero-container {
      height: 100vh;
      background-color: #000;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      position: relative;
      flex-direction:column;
      clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
      overflow: hidden;
    }

    .hero-item-words {
      max-width: 800px;
      z-index: 2;
    }

    .hero-item-words h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1s ease-out forwards;
    }

    .typing {
      display: inline-block;
      width: 35ch;
      white-space: nowrap;
      overflow: hidden;
      border-right: 2px solid white;
      font-size: 1.2rem;
      animation: typing 3s steps(28), blink 0.75s step-end infinite;
    }

    .cta-button {
      display: inline-block;
      margin-top: 2rem;
      padding: 1rem 2rem;
      border: 2px solid white;
      color: white;
      background-color: transparent;
      font-size: 1rem;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .cta-button:hover {
      background-color: white;
      color: black;
      transform: scale(1.05);
    }

    .floating-icon {
      font-size: 2rem;
      animation: float 3s ease-in-out infinite;
      opacity: 0.3;
      padding-top:30px;
    }


.navbar a:hover {
  color: #ccc;
}





/* projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; 
  justify-items: center; 
  padding: 1rem 0;
  
}

.project-card img:hover{
  cursor: pointer;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s;
  text-align:center;
  margin-top:100px;
  margin-bottom:100px;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-card img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 1rem;
  background-color: #111;
  color: white;
}

.buttons a {
  color:white;
  text-decoration: none ;
}

.project-card img {
  width:100%;
}

.project-card a:hover {
  text-decoration: underline;
  cursor: pointer;

}



/* about  */

.about-section {
  background-image: url('/assets/about-background.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 100px 20px;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  width: 100%;
}

.about-text {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.8;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.cv {
  margin-top: 10px;
}

.cv .btn {
  display: inline-block;
  background-color: #007b5e;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cv .btn:hover {
  background-color: #005f47;
}

/* Contact form  */


.contact button {
  background-color: green;
  color: white;
  width: 100%;
  max-width: 500px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.contact button:hover {
  background-color: darkgreen;
}
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; 
  padding: 60px 20px;
  background: #f8f9fa;
  text-align: center;
  flex-direction: column;
}
.contact-container {
width:50%;
height:500px;
margin: auto;
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

/* Form Inputs */
.contact form {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 15px;
}


.error-message {
color: red;
font-size: 12px;
margin-top: 5px;
}

.contact label {
font-weight: bold;
text-align: left;
display: block;
font-size: 14px;
color: #333;
}

.contact input,
.contact textarea {
width: 90%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
transition: all 0.3s ease;
}

/* Focus effect */
.contact input:focus,
.contact textarea:focus {
border-color: #15bb23;
outline: none;
box-shadow: 0 0 5px rgba(21, 187, 35, 0.5);
}

/* footer styling  */


.site-footer {
  background-color: #111;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1000px;
  margin: auto;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #bbb;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}



/* Styling rules for pop-up iframe */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 80%;
  height: 80%;
  max-width: 960px;
  background-color: #fff;
  border-radius: 10px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  background-color:black;
  border-radius: 50%;
  cursor: pointer;
}




/* Responsive design styling  */

  @media (max-width: 1000px) {

  .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem; 
  justify-items: center; 
  padding: 1rem 0;
  
}


  }


@media (max-width: 768px) {
      .hero-item-words h1 {
        font-size: 1.8rem;
      }
      .typing {
        font-size: 1rem;
        width: 22ch;
      }
    }


  @media (max-width: 500px) {

  .projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem; 
  justify-items: center; 
  padding: 1rem 0;
  
}

  body, .about-text, .contact-container {
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
  }

   .hero-item-words {
    padding: 0 1rem;
  }

  .project-card {
    margin-top: 40px;
    margin-bottom: 40px;
  }

    .hero-item-words h1 {
    font-size: 1.5rem;
  }

    .typing {
    font-size: 0.9rem;
    width: 20ch;
  }


  .about-text p {
    font-size: 1rem;
    line-height: 1.5;
  }

    .contact label,
  .contact input,
  .contact textarea {
    font-size: 14px;
  }


  .navbar a {
    padding: 15px 10px;
    font-size: 1.1rem;
    flex-grow: 1;
    text-align: center;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .cta-button,
  .btn {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
    display: block;
    text-align: center;
  }

  .contact button {
    width: 100%;
  }
 
   .modal-content {
    width: 95%;
    height: 70%;
  }

   .contact-container {
    width: 90%;
    height: auto;
    padding: 20px;
  }

  .contact form {
    width: 100%;
  }

  .contact input,
  .contact textarea {
    width: 100%;
  }

   .project-card {
    box-shadow: none;
    transform: none !important;
  }

   }



  /* Animations */
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes typing {
      from { width: 0 }
      to { width: 28ch }
    }

    @keyframes blink {
      50% { border-color: transparent; }
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
