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

/* Base */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #020617;
  color: #e5e7eb;
}

/* Navbar */
.navbar {
  background: #020617;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.logo:hover {
  color: #38bdf8;
  transform: scale(1.05);
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
  padding-bottom: 2px; /* adds space for the underline */
}

.nav-links a:hover {
  color: #38bdf8;
  transform: translateY(-2px); /* subtle lift */
}

/* Underline hover animation */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #38bdf8;
  left: 0;
  bottom: 0; /* right under the text */
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Main Content */
.content {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: auto;
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #38bdf8;
  color: #020617;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #0ea5e9;
}

/* Home Projects Section */
.home-projects {
  margin-top: 4rem;
}

.home-projects h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Project Cards */
.project-card {
  border: 1px solid #1e293b;
  padding: 1.5rem;
  border-radius: 8px;
  background: #0f172a;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.project-card p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

.project-card a {
  color: #38bdf8;
  text-decoration: none;
  f
