/* FONT IMPORT */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 60px;
  height: 70px;
  background-color: #5e4b8b;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.logo a:hover {
  color: #ffd86b;
  transform: scale(1.1);
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffd86b;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: #ffd86b;
  border-radius: 50px;
  transition: all 0.35s ease;
}

nav ul li a:hover::after {
  width: 60%;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav ul.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0;
  background-color: #5e4b8b;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  gap: 20px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  min-height: 100vh;
  padding: 100px 60px;
  background-color: #f5f1ff;
  width: 100%;
}

.projects-section h2 {
  text-align: center;
  font-size: 36px;
  color: #5e4b8b;
  margin-bottom: 15px;
}

.projects-intro {
  text-align: center;
  max-width: 700px;
  margin: 15px auto 50px;
  font-size: 18px;
  color: #5e4b8b;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(94, 75, 139, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(94, 75, 139, 0.35);
}

.project-card h3 {
  font-size: 24px;
  color: #5e4b8b;
  margin-bottom: 15px;
}

.project-card p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-buttons .btn {
  padding: 10px 20px;
  background: linear-gradient(90deg, #ffd86b, #fff1a8);
  color: #5e4b8b;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 216, 107, 0.3);
}

.project-buttons .btn:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  background: linear-gradient(90deg, #fff1a8, #ffd86b);
  box-shadow: 0 8px 25px rgba(255, 216, 107, 0.5);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .projects-section {
    padding: 80px 40px;
  }

  nav {
    padding: 12px 40px;
  }

  nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .projects-section {
    padding: 60px 20px;
  }

  .projects-section h2 {
    font-size: 28px;
  }
}
