/* Base Styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  transition: background-color 0.5s, color 0.5s;
}

body.dark {
  background-color: #121212;
  color: #f0f0f0;
}

header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.5s;
}

body.dark header.navbar {
  background: rgba(18, 18, 18, 0.9);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color 0.3s;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

section.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.projects {
  padding: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, background-color 0.3s;
}

body.dark .project-card {
  background: #1e1e1e;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
}

.project-card p,
.project-card a,
.project-card .status {
  margin: 0 1rem 1rem 1rem;
  display: block;
}

.project-card a {
  color: #007aff;
  text-decoration: none;
}

.project-card .status {
  font-size: 0.9rem;
  color: #888;
}

body.dark .project-card .status {
  color: #bbb;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #f0f0f0;
  color: #444;
  transition: background-color 0.5s, color 0.5s;
}

body.dark footer {
  background: #181818;
  color: #aaa;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-in-left {
  animation: slideInLeft 0.7s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.7s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
