@import url("https://fonts.googleapis.com/css2?family=Allan:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
  .logo {
    padding-left: 20px;
    font-size: 18px;
  }

  nav {
    display: none;
  }


.menu-icon {
  display: none;
  position: fixed;
  top: 22px;
  right: 90px;
  z-index: 3000;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background-color: black;
  padding: 12px;
  width: 45px;
  height: 45px;
  border-radius: 20%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.bar1 {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  transition: all 0.4s ease;
  background-color: orange;
}
.bar2 {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  transition: all 0.4s ease;
  background-color: white;
}
.bar3 {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  transition: all 0.4s ease;
  background-color: green;
}

body.dark-mode .menu-icon {
  background: black;
}


body.dark-mode .bar {
  background-color: white;
}

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

.menu-icon.active .bar2:nth-child(2) {
  opacity: 0;
}

.menu-icon.active .bar3:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}
  .work-container {
    padding: 20px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-item {
    padding: 15px;
  }

  .work-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

.logo {
  display: flex;
  cursor: default;
  font-size: 20px;
  padding-left: 60px;
  margin-top: 30px;
}

nav {
  display: flex;
  justify-content: space-around;
  padding-left: 500px;
  margin-top: -30px;
}

nav ul {
  display: flex;
  gap: 70px;
  align-items: center;
}

nav ul li {
  list-style-type: none;
  text-decoration: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

nav ul li a {
  text-decoration: none;
  color: black;
  border-radius: 5px;
}

nav ul li:hover {
  color: darkblack;
  transform: scale(1.2);
}

body.dark-mode nav ul li a {
  color: white !important;
}

nav ul li a {
  transition: color 0.1s ease;
}

.dark-mode {
  background: #121212;
  color: #f5f5f5;
}

#toggleButton {
  position: fixed;
  top: 20px;
  right: 40px;
  padding: 12px;
  font-size: 20px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 50%;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.dark-mode #toggleButton {
  background-color: white;
}

.journey {
  display: flex;
  justify-content: center;
  height: 60vh;
  align-items: center;
  margin-right: 200px;
}

.journey-container {
  padding: 40px 100px 40px 100px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 15px rgba(170, 7, 7, 0.473);
}

.journey h2 {
  font-size: 40px;
  font-family: "Allan", serif;
  font-weight: 500;
  padding-bottom: 20px;
  text-decoration: underline;
}

.journey p {
  font-size: 22px;
}

.journey .big {
  font-size: 30px;
}

/* WORK SECTION FIXED */
.work {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.work h2 {
  text-decoration: underline;
  font-size: 35px;
  font-family: "Allan", serif;
  font-weight: 500;
  text-align: center;
  padding-bottom: 100px;
}

.work-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  justify-content: center;
  align-items: center;
}

.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  width: 450px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 20px 20px 2px rgba(4, 181, 235, 0.877);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #111;
  padding-top: 10px;
}

.card-content h4 {
  font-size: 18px;
  padding-bottom: 5px;
}

.card li {
  font-size: 16px;
  color: #555;
  font-weight: 600;
  margin-bottom: 10px;
  margin-left: 15px;
}

.year {
  font-weight: 600;
  color: #0073e6;
}

.resume-btn {
  display: flex;
  height: 15vh;
  justify-content: center;
  text-align: center;
}

.btn1 {
  font-size: 20px;
  margin-top: 10px;
  padding: 10px;
  background-color: #1e40ff;
  color: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease-in;
}

.btn1:hover {
  transform: scale(1.2);
  transform: translateY(-6px);
}

.btn2 {
  font-size: 20px;
  margin-top: 10px;
  margin-left: 20px;
  padding: 10px;
  color: white;
  background-color: #1e40ff;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-in;
}

.btn2:hover {
  transform: scale(1.2);
  transform: translateY(-6px);
}

.footer {
  height: 35vh;
  display: flex;
  justify-content: space-around;
  margin-top: 60px;
  box-shadow: 0px 0px 10px 2px rgb(30, 82, 126);
}

.footer-heading {
  font-size: 15px;
  color: rgb(13, 173, 247);
  text-align: center;
  padding-top: 10px;
}

.footer-quick-links {
  font-size: 17px;
  padding-top: 20px;
}

.footer-quick-links ul {
  display: flex;
}

.footer-quick-links ul li {
  list-style-type: none;
  color: black;
  padding-left: 40px;
  transition: transform 0.3s ease-in;
}

.footer-quick-links ul li:hover {
  transform: scale(1.2);
}

.footer-quick-links a {
  text-decoration: none;
  color: black;
}

body.dark-mode .footer-quick-links a {
  color: white !important;
}

.footer-social-links p {
  font-size: 15px;
  text-align: center;
  margin-top: 25px;
}

.footer-social-links {
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-social-links #footer-links {
  font-size: 18px;
  margin-top: 10px;
  margin-left: 15px;
  margin-right: 20px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.footer-social-links #footer-links:hover {
  transform: scale(1.2);
}

.footer-social-links .fa-linkedin {
  color: #0a66c2;
  transition: transform 0.2s ease-in;
}

.footer-social-links .fa-linkedin:hover {
  transform: scale(1.1);
  color: #7802ff;
}

.footer-social-links .fa-github {
  color: #181717;
  transition: transform 0.3s ease-in-out;
}

.footer-social-links .fa-github:hover {
  transform: scale(1.1);
  color: #00758f;
}

body.dark-mode .footer-social-links .fa-github {
  color: white !important;
}

.footer-bottom {
  padding-left: 70px;
  font-size: 14px;
}

.designer-vansh {
  padding-left: 120px;
  padding-bottom: 30px;
  font-size: 14px;
}

.designer-vansh strong a {
  text-decoration: none;
  color: black;
}

body.dark-mode .designer-vansh strong a {
  color: white !important;
}

/* Responsive styles */

@media screen and (max-width: 1168px) {
           .journey-container{
            margin-left: 150px;
           }

      nav{
        margin-left: -200px;
        
      }
      .work h2 {
  padding-bottom: 100px;
  margin-top: -150px;
}

}


@media screen and (max-width: 1024px) {
  nav {
    padding-left: 300px;
  }

  .work-cards {
    gap: 60px;
    justify-content: center;
  }
}

@media screen and (max-width: 853px) {
.journey-container{
  margin-top: 100px;
}
    .work{
      margin-top: 150px;
    }
}

@media screen and (max-width: 768px) {
  .logo {
    padding-left: 20px;
  }

  nav {
    padding-left: 0;
    justify-content: flex-end;
  }

  .menu-icon {
    display: flex;
    margin-right: 20px;
  }

   .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  body.dark-mode .nav-links {
    background-color: rgba(18, 18, 18, 0.95);
  }

  .journey {
    margin-right: 0;
    padding: 30px 0;
  }
  .journey-container h2{
    font-size: 35px;
  }
  .journey-container p{
    font-size: 20px;
  }

  .journey-container {
    padding: 20px;
    width: 80%;
    margin: 0 auto;
    text-align: center;
  }

  .work {
    margin-top: 20px;
  }

  .work h2 {
    padding-bottom: 50px;
  }

  .work-cards {
    gap: 40px;
    justify-content: center;
  }


  .resume-btn {
    flex-direction: column;
    align-items: center;
  }

  .footer {
    height: auto;
    flex-direction: column;
    padding: 20px 0;
  }

  .footer-quick-links ul {
    /* flex-direction: column; */
    gap: 3px;
    margin-left: -20px;
  }

  .footer-bottom,
  .designer-vansh {
    padding-left: 0;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  #toggleButton {
    padding: 8px;
    font-size: 23px;
  }

  .journey h2 {
    font-size: 30px;
  }

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

  .work h2 {
    font-size: 28px;
  }

  .card-content h3,
  .card-content h4 {
    font-size: 16px;
  }

  .card-content li {
    font-size: 14px;
  }
  .journey{
    margin-bottom: 50px;
  }


}
