:root {
  --bg: #0f172a;
  --text: #e2e8f0;
  --accent: #38bdf8;
  --card-bg: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0ea5e9, #6366f1, #ec4899);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
}
.hero h1 span {
  color: var(--accent);
}
.hero .tagline {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
}
.btn {
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 4rem 8%;
  text-align: center;
}
.section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--accent);
}
.alt-bg {
  background: #111827;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
}
.card-content h3 {
  margin-bottom: 1rem;
}
.links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Contact */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form input, form textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  outline: none;
}
form textarea {
  resize: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #0f172a;
  font-size: 0.9rem;
}