:root {
  /* Base palette - Dark mode (hacker theme) */
  --bg: #000000;
  --surface: #0a0a0a;
  --muted-surface: #111111;
  --text: #00ff00; /* hacker green */
  --text-muted: #00cc00;
  --accent: #00ff00; /* hacker green */
  --accent-contrast: #000000;
  --ring: rgba(0, 255, 0, 0.3);

  /* Typography & radius */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --radius: 12px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted-surface: #f3f4f6;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #2563eb; /* blue-600 */
  --accent-contrast: #ffffff;
  --ring: rgba(37, 99, 235, 0.35);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  background: linear-gradient(90deg, var(--muted-surface), var(--surface));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a, nav button {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

nav a:hover, nav button:hover {
  background: rgba(255,255,255,0.06);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

h1 {
  font-size: 2rem;
}

p {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.profile-pic {
  max-width: 180px;
  border-radius: 50%;
  margin-top: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.button, nav button {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 18px var(--ring);
}

.button:hover, nav button:hover {
  transform: translateY(-1px);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin: 1rem 0 0.5rem 0;
  background: linear-gradient(135deg, var(--accent), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.education {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Highlights Section */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.highlight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.highlight-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quote Section */
.quote-section {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-right: 0.5rem;
}

blockquote::after {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-left: 0.5rem;
}

blockquote cite {
  display: block;
  font-size: 1rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 1rem;
  font-weight: 500;
}

/* About Page Styles */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Resume Page Styles */
.download-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}

.resume {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.resume-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
}

.resume-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.job-title {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--muted-surface);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(0, 255, 0, 0.05);
  border-color: rgba(0, 255, 0, 0.2);
}

.contact-item strong {
  color: var(--accent);
  margin-right: 0.5rem;
  min-width: 70px;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.resume-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.resume-section:last-child {
  border-bottom: none;
}

.resume-section h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.experience-item {
  margin-bottom: 1.5rem;
}

.experience-item h4 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.experience-dates {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.education-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.education-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.education-item h4 {
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.education-dates {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.experience-item ul {
  margin-left: 1rem;
}

.experience-item li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-category {
  background: var(--muted-surface);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.skill-category h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.skill-category p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.project-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--muted-surface);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.project-item h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-item p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Projects Page Styles */
.projects-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(0, 255, 0, 0.2);
}

.project-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0, 255, 0, 0.02) 100%);
}

.project-card.featured::before {
  content: "⭐ Featured";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

.project-card.featured .project-header {
  padding-right: 6rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-header h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.project-status {
  background: var(--muted-surface);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 0, 0.2);
  white-space: nowrap;
  margin-left: 1rem;
}

.project-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(0, 255, 0, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 0, 0.2);
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(0, 255, 0, 0.2);
  transform: scale(1.05);
}

.project-features {
  margin-top: 1rem;
}

.project-features h4 {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-features ul {
  margin: 0;
  padding-left: 1.2rem;
}

.project-features li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.project-features li::marker {
  color: var(--accent);
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .project-status {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .project-card.featured::before {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
}

footer {
  text-align: center;
  padding: 1.25rem 1rem;
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--muted-surface), var(--surface));
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}
