:root {
  --primary: #334155;
  /* Slate blue */
  --primary-dark: #1e293b;
  /* Dark slate */
  --primary-light: #475569;
  /* Medium slate */
  --dark: #0f172a;
  /* Deep blue */
  --light: #f8fafc;
  /* Off white */
  --gray: #94a3b8;
  /* Slate gray */
  --success: #059669;
  /* Deep green */
  --warning: #d97706;
  /* Dark amber */
  --info: #2563eb;
  /* Royal blue */
  --surface: #ffffff;
  /* White */
  --surface-hover: #f1f5f9;
  /* Light blue-gray */
  --text-primary: #1e293b;
  /* Slate */
  --text-secondary: #64748b;
  /* Light slate */
  --border: #e2e8f0;
  /* Lightest blue-gray */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg,
      var(--primary-dark) 0%,
      var(--primary) 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-light);
  margin: 1rem auto;
  border-radius: 2px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-info a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.contact-info a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info a svg {
  transition: transform 0.3s ease;
}

.contact-info a:hover svg {
  transform: scale(1.1);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 3rem;
  justify-content: center;
}

.skill-tag {
  background-color: var(--surface);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background-color: var(--primary);
  color: white;
}

.category {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.category-icon {
  font-size: 2rem;
  color: var(--primary);
  background: var(--surface);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface-hover);
}

.project-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.project-link:hover {
  color: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.project-body {
  padding: 1.5rem;
}

.project-desc {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background-color: var(--surface-hover);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-left: 0.75rem;
}

.badge-company {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-freelance {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-personal {
  background-color: #d1fae5;
  color: #065f46;
}

.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.5rem;
  background-color: currentColor;
}

footer {
  text-align: center;
  margin-top: 6rem;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0.5rem 0;
}

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

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

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header {
    padding: 3rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.125rem;
  }

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

  .contact-info {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-info a {
    justify-content: center;
  }
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Add loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}

@keyframes loading {
  to {
    transform: rotate(360deg);
  }
} 