/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ===== Hero (header principal) ===== */
.hero {
  position: relative;
  height: 100vh;
  background: url("https://images.unsplash.com/photo-1508780709619-79562169bc64") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #ff5252;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #ff1744;
}

/* ===== About section ===== */
.about {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #f9f9f9;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff5252;
}

/* ===== Projects section ===== */
.projects {
  padding: 3rem 1.5rem;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 1rem;
  color: #ff5252;
}

.btn-small {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.btn-small:hover {
  background: #555;
}

/* ===== Footer ===== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}
