*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  color: black;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}
/* style for navBar*/
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: #1d3c31;
  border-radius: 30px;
  margin:2rem auto;
  width:85%;
  opacity: 0.9;
  max-width: 1200px;

}
.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
}
.logo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  position: absolute;
  left: 9%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1d3c31;
  background: hsl(49, 97%, 46%);
}
.navbar li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s ease;
}

.navbar li a:hover,
.navbar .active {
  color: rgb(167, 167, 3);
  border-bottom: 2px solid rgb(167, 167, 3);
}
.contact-button {
    position: absolute;
    background-color: white;
    right: 9%;
    width: 8rem;
    background: white;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
  }
.contact-button a{
  color: #1d3c31;
  font-weight: 700;
  text-decoration: none;
}
.contact-button:hover{
  background: #BA8E23;
}
/* style for Home page*/
#Home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 4rem;
  width: 85%;
}
.Home-text {
  max-width: 600px;
  width: 60%;
  flex-wrap: wrap;
}
#Home i{
  color:#BA8E23;
  text-decoration: underline;
}
.Home-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  opacity: 1;

  animation: typingFadeLoop 18s steps(25) infinite;
}

@keyframes typingFadeLoop {
  0%   { width: 0; opacity: 1; }
  28%  { width: 100%; opacity: 1; }  
  78%  { width: 100%; opacity: 1; }  
  100% { width: 0; opacity: 0; }
}

.Home-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgb(45, 45, 45);
}

.Home-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.Home-buttons button {
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.Home-buttons .primary {
  background-color:#1d3c31;
  border: 2px solid #BA8E23;
}
.primary a{
  text-decoration: none;
  color: white;
}
.Home-buttons .secondary {
  background-color: transparent;
  border: 2px solid #1d3c31;
  color:#1d3c31
}
.animation {
  position: relative;
  width: 90%;
  height: 50px; 
  background: linear-gradient(to right, #BA8E23, #1d3c31);
  overflow: hidden;
  margin: 2rem 0;
  align-items: center;
  justify-content: center;
  justify-self: center;
  
}

.scroll-text {
  position: absolute;
  top: 0.9rem;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  animation: scrollLeft 20s linear infinite;
}

@keyframes scrollLeft {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.profilImage{
  border-radius: 50%;
  
}
.Home-image img {
  max-width: 400px;
  border-radius: 50%;
}
#Services{
  padding: 2rem;
  align-items: center;
  justify-content: center;
}
.service-cards{
    display: flex;
    gap: 10px;
    margin: auto 10rem;
}
.card{
    justify-content: center;
    text-align: center;
    align-items: center;
    background-color: rgb(245, 236, 236);
    border-radius: 20px;
    padding: 1rem;
    margin: 2rem 1rem;
    color: #1d3c31;
    border: 2px solid #1d3c31;
}
.card img{
    width: 35%;
    margin-top: 2rem;
}
.intro h1{
  font-size: 3rem;
  color: #BA8E23;
}
.frame1{
      position: relative;
      width: 410px;
      height: 390px;
      border: px solid #BA8E23;
      border-radius: 50%;
      padding: 10px;
      background:#BA8E23;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }
    .pp1{
    border-radius: 50%;
}
.intro{
  justify-items: center;
  padding: auto 2rem 2rem 2rem;
}
hr {
  margin: 2rem auto;
  width: 70%;
  height: 3px;
  border: none;
  background: linear-gradient(to right, #1d3c31, #BA8E23);
  border-radius: 2px;
}
#About{
    background-color: #1d3c31;
    width: 100%;
    padding: 1.2rem 3rem;
    margin: 6rem auto;
    max-width: 1200px;
    color: #BA8E23;
    border-radius: 20px;
}
#About .content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5rem;
}
#About .frame{
    border-radius: 50%;
    background-color: white;
}

#About p{
    line-height: 2;
    margin-bottom: 30px;
}
.skills-img{
  margin-top: 2rem;
    width: 100px;
}
/*style for projects*/
#my-projects {
  padding: 4rem 2rem;
  font-family: 'Segoe UI', sans-serif;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  animation: fadeIn 2s ease-in-out;
  color: #BA8E23;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgb(36, 34, 34);
  animation: fadeIn 3s ease-in-out;
  padding-bottom: 1rem;
}

.projects-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  padding: 1rem;
  scroll-snap-align: start;
  transition: transform 0.4s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.project-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.project-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1d3c31;
}

.project-card p {
  font-size: 0.95rem;
  color: #353232;
  line-height: 1.4;
}
/*style for Contacts*/
#Contact {
  padding: 4rem 2rem;
  background: #f9f9fb;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

#Contact h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #555;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label p {
  text-align: left;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1d3c31;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.contact-submit {
  padding: 0.9rem 1.2rem;
  background-color: #1d3c31;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-submit:hover {
  background-color: #BA8E23;
}
.footer {
  background-color: #1d3c31;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-links,
.social-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a,
.social-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover,
.social-links a:hover {
  color: #f9d421;
}
/*style for small screens to make the website responsive*/

@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    padding: 1rem;
    width: 100%;
    border-radius: 0%;
    gap: 1rem;
    opacity: 0.8;
  }

  .logo {
    position: static;
    margin-bottom: 1rem;
  }

  .contact-button {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  #Home {
  display: flex;
  flex-direction: column-reverse;
  text-align: center;
  gap: 2rem;
  }
  #Home .profilImage{
    width: 250px;
    height: 250%;
  }
  .Home-text h1 {
    font-size: 1.3rem;
    white-space: normal;
    flex-wrap: wrap;
    animation: none;
    width: auto;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    opacity: 1;

  animation: typingFadeLoop 18s steps(25) infinite;
}

@keyframes typingFadeLoop {
  0%   { width: 0; opacity: 1; }
  28%  { width: 100%; opacity: 1; } 
  78%  { width: 100%; opacity: 1; } 
  100% { width: 0; opacity: 0; }
}

  .Home-buttons {
    justify-content: center;
    align-items: center;
  }
.animation{
  width: 90%;
  justify-self: center;
}
  #Services{
    text-align: center;
  }
  .service-cards {
    flex-direction: column;
    margin: 0 2rem;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .Contact-right {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }
  #About{
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #About .content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  #About h1{
    text-align: center;
  }
  .about-explain {
  display: flex;
  flex-direction: column;
}
  .about-explain .skills-img{
    align-self: center;
  }
  .frame img{
    width: 200px;
  }
  }
  #Contact input {
    width: 90%;
  }

  .submit {
    width: 60%;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
/* Very large screens (desktops > 1440px) */
@media (min-width: 1440px) {
  .logo,
  .contact-button {
    display: none;
  }
  #my-projects {
    align-items: center;
    justify-self: center;
  }
}
