:root {
  /* Shared values */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-active: #fff;
  --text-secondary: #64748b;
  --accent-color: #818cf8;
  --nav-background: rgba(255, 255, 255, 0.98);
  --border-color: rgba(0, 0, 0, 0.1);
}

/* Dark theme */
[data-theme="dark"] {
  --background-color: #0f172a;
  --card-background: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --nav-background: rgba(30, 41, 59, 0.98);
  --border-color: rgba(255, 255, 255, 0.1);
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --background-color: #0f172a;
    --card-background: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --nav-background: rgba(30, 41, 59, 0.98);
    --border-color: rgba(255, 255, 255, 0.1);
  }
} */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  background: var(--nav-background);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.nav-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 7rem auto 2rem;
  padding: 0 1.5rem;
}

/* Difficulty Tabs */
.difficulty-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-background);
  color: var(--text-primary);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab:hover {
  background: var(--primary-color);
  color: var(--text-active);

  transform: translateY(-1px);
}

.tab.active {
  background: var(--primary-color);
  color: var(--text-active);
  box-shadow: var(--shadow-md);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.project-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Difficulty Badges */
.difficulty {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.beginner .difficulty {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}

.intermediate .difficulty {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.advanced .difficulty {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}
/* Add these footer styles to your existing CSS */
.footer {
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-branding h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer-description {
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0rem;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.heart {
  display: inline-block;
  color: #ef4444;
  animation: heartbeat 1.5s ease infinite;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-description {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--border-color);
}

[data-theme="light"] .dark-icon {
  display: none;
}

[data-theme="dark"] .light-icon {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin-top: 5rem;
  }

  .nav-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    margin: 0 0.5rem;
  }

  .difficulty-tabs {
    padding: 0 0.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
