* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
  color-scheme: light;
}

body {
  background: #fdf0e6;
  color: #4a2e2e;
  padding: 30px 20px;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #fff5ee;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(240, 98, 146, 0.12);
  margin-bottom: 30px;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #4a2e2e;
}

/* SECTIONS */
section {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
}

/* HERO CARD */
#hero {
  background: linear-gradient(135deg, #ffd6e7, #f06292);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(240, 98, 146, 0.3);
}

/* PROJECTS — no card wrapper, just the grid */
#projects {
  padding: 40px 0;
}

#projects h2 {
  margin-bottom: 10px;
}

/* PROJECTS GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff5ee;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(240, 98, 146, 0.15);
  transition: 0.3s;
  text-align: left;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 6px;
}

/* CONTACT CARD */
#contact {
  background: #fff5ee;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(240, 98, 146, 0.15);
}

#contact h2 {
  margin-bottom: 20px;
}

/* CONTACT FORM */
form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
}

input, textarea {
  margin: 8px 0;
  padding: 10px 14px;
  border: 1px solid #f0c0d0;
  border-radius: 8px;
  background: #fdf0e6;
  color: #4a2e2e;
  outline: none;
}

input:focus, textarea:focus {
  border-color: #f06292;
}

button {
  padding: 12px;
  border: none;
  background: #e91e8c;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 8px;
}

button:hover {
  background: #c2185b;
}

/* FLOATING BUTTON */
#contactBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 50px;
  padding: 15px 20px;
  background: #c2185b;
  z-index: 1000;
}

/* MOBILE */
@media (max-width: 520px) {
  body {
    padding: 16px 12px;
  }

  nav {
    padding: 12px 16px;
    flex-wrap: nowrap;
  }

  nav h2 {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  nav div {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  nav a {
    margin-left: 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  #hero {
    padding: 40px 24px;
  }

  #contact {
    padding: 36px 24px;
  }
}
