/* Portfolio Grid */
/* =============================
   Reset & Base
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  max-width: 100%;
  color: #1f2937;
  background-color: #fdf2f8;
}

/* =============================
   Header
============================= */
.header {
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background-color: #fbdeee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.hamburger {
  display: none; 
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1f2937;
  border-radius: 2px;
}

.navbar {
  display: flex;
  gap: 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: transparent;
  background-color: #fbdeee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  position: relative;
  font-size: 25px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.navbar {
  display: flex;
  gap: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
}

.portfolio-hero {
  padding: 120px 10% 0;
  align-items: center;
  text-align: center;
}

.portfolio-hero h2 {
  font-size: 60px;
  font-weight: 700;
}

.portfolio-hero h2 span {
  color: #db2777;
  font-weight: 700;
}
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 50px 5%; 
  
}

.portfolio-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
  box-sizing: border-box;
}

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

.portfolio-box img {
  max-width: 100%;
  border-radius: 10px;
}

.portfolio-box h3 {
  margin-top: 15px;
  font-size: 1.3rem;
}

.portfolio-box p {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #555;
}

.portfolio-box a {
  display: inline-block;
  margin: 5px;
  padding: 8px 15px;
  border-radius: 5px;
  background: #333;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.portfolio-box a:hover {
  background: #0077cc;
}

@media screen and (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .navbar.active {
    transform: translateX(0); 
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
