html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.background-pattern {
  background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
    url("data:image/jpeg;base64,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");
  background-repeat: no-repeat;
  background-size: cover;
}

section {
  transition: margin-top 0.3s ease;
}

/* Styling for Navbar section */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background-color: #222;
  color: #fff;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 2px 0;
  transition: transform 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #55aaff;
}

/* Add more styles and animations as needed */

/* Styling for About section */

.about-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 50px 20px;
  text-align: center;
}

.about-content {
  padding: 0 20px;
}

.about-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
}

.about-image {
  margin-top: 20px;
  opacity: 0;
  animation: fadeIn 1s ease forwards; /* Apply the fadeIn animation */
}

.about-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}

/* Define the fadeIn animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styling for Skills section */

.skills-section {
  text-align: center;
  padding: 100px 0;
}

.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.skill {
  width: 150px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.skill img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.skill p {
  font-size: 16px;
}

/* Add animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill:hover {
  transform: translateY(-5px);
}

/* Apply fadeInUp animation to skills */
.skills-container .skill {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 768px) {
  /* .skills-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
  } */

  /* .skill {
    width: 40%;
    margin: 10px 0;
  } */
}

/* Styling for Portfolio section */

.portfolio-section {
  text-align: center;
  padding: 100px 0;
}

.project-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project img {
  max-width: 100%;
  height: auto;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover {
  transform: scale(1.05);
}

.project:hover .project-overlay {
  opacity: 1;
}

.project h4 {
  color: #fff;
  font-size: 18px;
}

.minor-project {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 120px;
}

.git-live-links {
  display: none;
}

/* Styling for Contact Me section */

.contact-section {
  text-align: center;
  padding: 80px 40px;
}

.contact-form {
  max-width: 700px; /* Increase the max-width for larger screens */
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  text-align: start;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-size: 18px;
  color: #333;
}

input,
textarea {
  width: 90%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

button {
  background-color: #007bff;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
  transform: none;
}

/* Styling for Footer section */

.footer-section {
  background-color: #333;
  color: #fff;
  padding: 60px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  flex: 1;
  padding-right: 20px;
}

.footer-logo h2 {
  margin: 0;
  font-size: 28px;
}

.footer-logo p {
  margin: 10px 0;
  font-size: 18px;
  opacity: 0.8;
}

.footer-links {
  flex: 2;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  opacity: 0.8;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #007bff;
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 20px;
  align-items: center; /* Align social icons vertically */
}

.social-icon {
  font-size: 24px;
  color: #fff;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #007bff;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* Styling for Back to Top button */

.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn:hover {
  opacity: 1;
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 768px) {
  /* Navbar */
  .navbar {
    flex-direction: row;
    align-items: center;
    position: relative;
    padding: 20px;
    width: auto;
  }

  .menu-toggle {
    display: flex;
    align-items: end;
  }

  .nav-links {
    /* display: none; */
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 93%;
    background-color: #222;
    padding: 10px 13.5px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.show {
    display: flex;
    opacity: 1;
    z-index: 1;
    transform: translateY(0);
    margin-top: 0;
  }

  .nav-links li {
    margin: 5px 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* About */

  .about-section {
    flex-direction: column;
  }
  .about-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .about-content p {
    font-size: 14px;
  }

  .about-image {
    margin-top: 10px;
    max-width: 80%;
  }

  /* Skills */

  .skill img {
    width: 40px;
    height: 40px;
  }

  .skill p {
    font-size: 14px;
  }

  /* Portfolio */

  .project-container {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }

  .minor-project {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .project-overlay {
    display: none;
  }

  .project img {
    max-width: 100%;
    max-height: 100%;
  }

  .git-live-links {
    display: block;
  }

  .git-live-links button {
    padding: 10px 20px;
  }

  .minor-project .git-live-links button {
    padding: 6px 12px;
    font-size: 14px;
  }

  /* Different hover effect for minor projects */
  .project-section:nth-child(2) .project:hover {
    transform: translateY(-5px);
  }

  /* Contact */

  .contact-form {
    padding: 20px;
  }

  input,
  textarea {
    font-size: 16px;
  }

  button {
    font-size: 16px;
  }

  /* Footer */

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    text-align: center;
    padding: 0;
  }

  .footer-logo h2 {
    font-size: 24px;
  }

  .footer-logo p {
    font-size: 16px;
  }

  .footer-links ul {
    justify-content: center;
    text-align: center;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-links a {
    font-size: 16px;
  }

  .social-links {
    margin-top: 10px;
  }

  /* Back to top */

  .back-to-top-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}
