@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");


* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #edf2fa;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

a,
.btn {
  transition: all 300ms ease;
}


nav,
.nav-links {
  display: flex;
  
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
padding-top: 1.5rem;
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: #E1AFD1;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #FFE6E6;
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}
#hamburger-nav {
  display: none; 
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}


.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  display: block; 
  max-height: 300px;
}


.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

.icon {
  cursor: pointer;
  height: 2rem;
}


section {
  padding-top: 1vh;
  margin: 0 5rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.projects-container {
  display: flex;
}


#project-web {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.title {
  padding-top: 1rem;
  font-size: 2rem;
  text-align: center;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.project-card {
  background-color: white;
  border: 0.1rem solid rgb(163, 163, 163);
  border-radius: 2rem;
  padding: 1.5rem;
  padding-top: 0.5rem;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}



.project-card img {
  width: 40%;
  border-radius: 1rem;
}

.project-title {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.project-snippet {
  color: rgb(85, 85, 85);
  margin-bottom: 1rem;

}

.btn-read-more {
  font-weight: 600;
  padding: 1rem 2rem; 
  font-size: 1.2rem; 
  border: none;
  border-radius: 2rem;
  background-color: #194a7a;
  color: white;
  cursor: pointer;
  transition: all 300ms ease; 
}

.btn-read-more:hover {
  background-color: #476f95;
  color: white;
}

@media (max-width: 768px) {
  .btn-read-more {
    padding: 0.8rem 1.5rem; 
    font-size: 1rem;
  }
}


.hidden {
  display: none;
}
#btn-show-more {
  margin-top: 2rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 2rem;
  background-color: #67729D;
  color: white;
  cursor: pointer;
}

#btn-show-more:hover {
  background-color: #555;
}


footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

.title:hover {
  animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
