/* Portfolio Custom Styles */

:root {
  --primary-color: #0366d6;
  --secondary-color: #586069;
  --background-color: #f6f8fa;
  --text-color: #24292e;
  --border-color: #e1e4e8;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004085 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.8em;
}

h3 {
  color: var(--text-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.3em;
}

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

li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

li:last-child {
  border-bottom: none;
}

li:before {
  content: "▸ ";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0256c7;
  text-decoration: underline;
}

.skill-badge {
  display: inline-block;
  background-color: #f0f2f5;
  color: var(--text-color);
  padding: 5px 12px;
  margin: 5px 8px 5px 0;
  border-radius: 20px;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.project-card {
  background: #f9fafb;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.tech-stack {
  background: #eef2f7;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--secondary-color);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color), #0256c7);
  color: white;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(3, 102, 214, 0.2);
}

.stat-card .number {
  font-size: 2em;
  font-weight: bold;
  display: block;
}

.stat-card .label {
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 5px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background: var(--background-color);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-links a:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

footer {
  background: var(--text-color);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #0256c7);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(3, 102, 214, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 102, 214, 0.4);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.4em;
  }

  section {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  header {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 1.4em;
  }

  h2 {
    font-size: 1.2em;
  }

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

/* Print Styles */
@media print {
  header {
    background: none;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
  }

  section {
    page-break-inside: avoid;
    box-shadow: none;
    border: none;
  }
}
