/* GitHub-Inspired Clean Design */
:root {
  --primary: #24292f;
  --secondary: #0969da;
  --accent: #1f6feb;
  --light-bg: #f6f8fa;
  --white: #ffffff;
  --text: #24292f;
  --text-light: #57606a;
  --border: #d0d7de;
  --success: #1a7f37;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 3px 12px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { 
  margin-bottom: 16px;
  line-height: 1.6;
}

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

a:hover { 
  text-decoration: underline;
}

/* Navigation - GitHub Style */
nav {
  background-color: var(--primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

nav ul li a {
  color: var(--white);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: rgba(255,255,255,0.12);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero Section - GitHub Style */
.hero {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  color: var(--white);
  padding: 80px 0 64px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero .subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.85;
  color: #c9d1d9;
}

.hero .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons - GitHub Style */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: rgba(240,246,252,0.1);
}

.btn-primary:hover {
  background-color: #1f6feb;
  border-color: rgba(240,246,252,0.15);
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(31,111,235,0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(240,246,252,0.25);
}

.btn-secondary:hover {
  border-color: rgba(240,246,252,0.4);
  background-color: rgba(240,246,252,0.08);
  text-decoration: none;
}

.btn-accent {
  background-color: #238636;
  color: var(--white);
  border-color: rgba(240,246,252,0.1);
}

.btn-accent:hover {
  background-color: #2ea043;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(35,134,54,0.3);
}

/* Sections */
section {
  padding: 64px 0;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.section-header .underline {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 0 auto;
  border-radius: 3px;
}

/* Cards - Less Boxy, GitHub Style */
.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Timeline - Cleaner */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--border);
}

.timeline-item .company {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-item .role {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-item .date {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.timeline-item ul {
  list-style: none;
  padding-left: 0;
}

.timeline-item ul li {
  padding-left: 24px;
  margin-bottom: 8px;
  position: relative;
  color: var(--text);
  line-height: 1.6;
}

.timeline-item ul li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--text-light);
}

/* Tags - GitHub Style */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background-color: #ddf4ff;
  color: #0969da;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(9,105,218,0.15);
}

/* Contact Form - Clean */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.1);
  background-color: var(--white);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer - Clean */
footer {
  background-color: var(--light-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

footer h4 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 8px;
}

footer a {
  color: var(--secondary);
  font-size: 14px;
}

footer a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 12px;
}

/* Project Cards - Cleaner */
.project-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--light-bg) 0%, #e1e4e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}

.project-content {
  padding: 24px;
}

.project-card h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.project-card p {
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Resume Download Section */
.resume-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.resume-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  background-color: var(--white);
  transition: all 0.2s ease;
}

.resume-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.resume-card h3 {
  margin-bottom: 16px;
  font-weight: 600;
}

.resume-card p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* About Page Specific */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.stat-box {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--white);
  transition: all 0.2s ease;
}

.stat-box:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.stat-box .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.stat-box .label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 14px;
}

/* Contact Info Cards */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--white);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.contact-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.contact-card a {
  color: var(--text);
  word-break: break-all;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary);
    padding: 16px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 12px 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 48px 0;
  }
}

/* Animations - Subtle */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 32px; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 32px; }
