/* Global Styles */

.fira-code-regular {
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

body {
  font-family: "Fira Code", monospace;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #333;
  background-color: #f8f8f8;
}

h1,
h2,
h3 {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 60px 20px;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f5f5, #eaeaea);
  text-align: center;
}

#hero1 {
  height: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f5f5, #eaeaea);
  text-align: center;
}

/* Typing effect only on the second text */
.typing-text1 {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 5px;

  width: 38ch; /* Set width to exactly the width of the text */
  white-space: nowrap;
  overflow: hidden;
  border-right: 5px solid;
  animation: typing2 4s steps(28) forwards, cursor 1s step-end infinite;
}

/* Cursor animation */
@keyframes cursor {
  50% {
    border-color: transparent;
  }
}

/* Typing animation for the second text */
@keyframes typing2 {
  from {
    width: 0;
  }
  to {
    width: 38ch; /* The element will expand to the width of the text */
  }
}

#hero h1 {
  font-size: 3rem;
  color: #333;
}

#hero p {
  font-size: 1.5rem;
  color: #777;
  margin: 10px 0;
}

.cta-button {
  padding: 10px 30px;
  border: 2px solid #333;
  border-radius: 5px;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background: #333;
  color: #fff;
}

/* About Me Section */
#about {
  background-color: #fff;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  width: 50%;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-image img {
  width: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 15px auto;
}

/* Portfolio Section */
#portfolio {
  background-color: #f8f8f8;
  text-align: center;
}

#portfolio h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  display: block;
  /* width: 300px; */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
  border-radius: 10px;
}

.portfolio-item:hover .overlay {
  opacity: 1.5;
}

/* photography section */
#photography {
  background-color: #ffff;
  text-align: center;
}

#photography h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.photography-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.photography-item {
  position: relative;
  overflow: hidden;
}

.photography-item img {
  width: 100%;
  display: block;
  /* width: 300px; */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
  border-radius: 10px;
}

.photography-item:hover .overlay {
  opacity: 1.5;
}

/* Skills Section */
#skills {
  background-color:  #f8f8f8;
  text-align: center;
}

#skills h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.skills-grid {
  display: flex;
  justify-content: space-evenly;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-item {
  font-size: 1.5rem;
  color: #333;
}

/* Contact Section */
#contact {
  background-color: #ffff;
  text-align: center;
}

#contact h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

#contact form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
}

#contact input,
#contact textarea {
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

#contact textarea {
  height: 200px;
}

#contact button {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

#contact button:hover {
  background-color: #555;
}

footer .social-icons a {
  margin: 20px 10px;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

  /* Hero Section */
  #hero {
    padding: 20px;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .typing-text1 {
    font-size: 30px;
    width: 35ch; /* Adjust the width */
  }

  #hero p {
    font-size: 1.2rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 8px 20px;
  }

  /* About Me Section */
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    width: 100%;
    margin-bottom: 20px;
  }

  .about-image img {
    width: 80%;
  }

  /* Portfolio Section */
  .portfolio-grid {
    grid-template-columns: 1fr; /* Stack items in one column */
  }

  /* Photography Section */
  .photography-grid {
    grid-template-columns: 1fr; /* Stack items in one column */
  }

  /* Skills Section */
  .skills-grid {
    flex-direction: column;
    align-items: center;
  }

  .skill-item {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  /* Contact Section */
  #contact form {
    width: 90%;
  }

  /* Footer */
  footer .social-icons a {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {

  /* Hero Section */
  #hero h1 {
    font-size: 2rem;
  }

  .typing-text1 {
    font-size: 24px;
    width: 38ch; /* Adjust the width further for smaller screens */
  }

  #hero p {
    font-size: 1rem;
  }

  .cta-button {
    font-size: 0.8rem;
    padding: 8px 15px;
  }

  /* Portfolio Section */
  .portfolio-grid {
    grid-template-columns: 1fr; /* Stack items in one column */
  }

  /* Photography Section */
  .photography-grid {
    grid-template-columns: 1fr; /* Stack items in one column */
  }

  /* Skills Section */
  .skills-grid {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  footer .social-icons a {
    font-size: 1rem;
  }
}
