body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0f0f11;
  color: #f3f4f6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(15, 15, 17, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure navbar is above other content */
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #f9fafb;
}
.logo span {
  color: #8b5cf6;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  color: #9ca3af;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #a78bfa;
}

.nav-link.active {
  color: #8b5cf6;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #8b5cf6;
  border-radius: 1px;
  transition: width 0.3s;
}

/* Button styling */
.btn-primary {
  background: #8b5cf6;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, box-shadow 0.3s;
  cursor: pointer;
  z-index: 1001; /* Ensure the button is clickable above other elements */
}
.btn-primary:hover {
  background: #7c3aed;
  box-shadow: 0 0 10px #8b5cf6;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1rem;
  background: linear-gradient(135deg, #111827, #1f2937);
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #9ca3af;
}

/* About Section */
.about {
  padding: 4rem 1rem;
  text-align: center;
}
.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}
.about p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: #9ca3af;
}

/* Projects */
.projects {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.projects h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #e5e7eb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #1f2937;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}
.project-card h3 {
  margin-top: 0;
  color: #f9fafb;
}
.project-card p {
  color: #9ca3af;
}
.project-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #8b5cf6;
  font-weight: 600;
  text-decoration: none;
}
.project-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.9rem;
}
