* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #f5f6fa;
  color: #333;
  line-height: 1.6;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
}

nav a.active {
  color: #2563eb;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
}

.hero-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.hero-name {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.hero-subtitle {
  color: #38bdf8;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

section {
  padding: 90px 10%;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #1e293b;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

.card {
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#portfolio .card {
  color: #fff;
  font-weight: bold;
}

#portfolio .card:nth-child(1){background:#8faf1a}
#portfolio .card:nth-child(2){background:#178b42}
#portfolio .card:nth-child(3){background:#f97316}
#portfolio .card:nth-child(4){background:#a855f7}

#contact {
  background: #f1f5f9;
}

form {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

input, textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

button {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

footer {
  background: #020617;
  color: #cbd5f5;
  text-align: center;
  padding: 20px;
}

@media (max-width: 768px) {
  nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
