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

/* Base */
body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #1f2937;
}

/* Dark Mode */
.dark body {
  background: #111827;
  color: #e5e7eb;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  padding: 20px;

  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
}

.dark .navbar {
  background: rgba(31, 41, 55, 0.8);
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  margin-right: 15px;
  text-decoration: none;
  color: inherit;
}

.nav-links a:hover {
  color: #3b82f6;
}

/* Button */
.toggle-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  color: white;
}

/* Sections */
.section {
  padding: 40px;
  max-width: 900px;
  margin: auto;
}

.skills {
  background: #f3f4f6;
}

.dark .skills {
  background: #1f2937;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 20px;
  background: white;
  text-align: center;
  border-radius: 10px;
}

.dark .card {
  background: #374151;
}

/* Projects */
.project-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
}

.dark .project-card {
  background: #1f2937;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: #111827;
  color: white;
}

/* Responsive */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
