/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f9fafb;
  padding: 0 1.5rem;
}


/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid #e5e7eb;
}

/* Active navigation link indicator */
.nav-links a.active {
  color: #2563eb;
  font-weight: 700;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 2px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2563eb;
}

/* Hero Section */
.hero {
  max-width: 900px;
  margin: 5rem auto;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  color: #2563eb;
}

.hero p {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
  max-width: 700px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.primary-btn {
  background-color: #2563eb;
  color: white;
}

.primary-btn:hover {
  background-color: #1d4ed8;
}

.secondary-btn {
  background-color: #e5e7eb;
  color: #374151;
}

.secondary-btn:hover {
  background-color: #d1d5db;
}

/* Sections */
.section {
  max-width: 900px;
  margin: 5rem auto;
}

.section h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.skill-category h3 {
  margin-bottom: 1rem;
  color: #2563eb;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.25rem 0;
  color: #4b5563;
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.status-tag {
  background: #fef3c7;
  color: #d97706;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.project-card p {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tags span {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #374151;
}

.project-links {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
}

.project-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2563eb;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.project-links a:hover {
  background-color: #1d4ed8;
}

.disabled-link {
  color: #9ca3af !important;
  cursor: not-allowed;
}

/* Contact & Footer */
.contact-section {
  text-align: center;
  background: white;
  padding: 3rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.contact-section p {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

footer {
  text-align: center;
  padding: 2rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
  border-top: 1px solid #e5e7eb;
  max-width: 900px;
  margin: 0 auto;
}

/* Dark Mode Styles triggered by JavaScript */
body.dark-mode {
  background-color: #0f172a;
  color: #f8fafc;
}

body.dark-mode .navbar {
  border-bottom-color: #334155;
}

body.dark-mode .nav-links a {
  color: #cbd5e1;
}

body.dark-mode .skill-category,
body.dark-mode .project-card,
body.dark-mode .contact-section {
  background-color: #1e293b;
  border-color: #334155;
}

body.dark-mode .hero p,
body.dark-mode .project-card p,
body.dark-mode .skill-category li {
  color: #94a3b8;
}