:root {
  --primary: #1e1e2f;
  --accent: #ff6f61;
  --background: #f9f9f9;
  --text: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--text);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary);
  padding: 15px 0;
  transition: background-color 0.3s, box-shadow 0.3s;
  z-index: 999;
}

.navbar.scrolled {
  background-color: #121220;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s, border-bottom 0.3s;
  padding: 5px;
}

.nav-menu a:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 60px;
  text-align: center;
  flex-direction: column;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  color: #666;
}

/* Projects Section */
.projects {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.projects h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--accent);
}

.card p {
  font-size: 15px;
  color: #555;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: rgb(172, 87, 174);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 15px;
  }
}
