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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
  min-height: 100vh;
  padding: 2.5rem 1rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  text-decoration: none;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.back-link::before {
  content: '←';
  font-size: 1.1rem;
}

.profile-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profile-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 4rem 3rem 3rem;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  pointer-events: none;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.profile-photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-info {
  color: white;
  flex: 1;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.profile-role {
  font-size: 1.25rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.profile-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.meta-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.profile-body {
  padding: 3rem;
}

.section {
  margin-bottom: 3rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.125rem;
  color: #0f172a;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 2px;
}

.section-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
}

.skills-category {
  margin-bottom: 2rem;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.category-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #e2e8f0, transparent);
}

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

.skill-item {
  background: white;
  color: #334155;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.skill-item:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.skill-item:hover::before {
  transform: scaleX(1);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
}

.contact-link:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.contact-link svg {
  width: 18px;
  height: 18px;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin: 2.5rem 0;
}

@media (max-width: 768px) {
  body {
    padding: 1.5rem 0.75rem;
  }

  .profile-header {
    padding: 3rem 1.5rem 2rem;
  }

  .profile-hero {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-role {
    font-size: 1.1rem;
  }

  .profile-meta {
    justify-content: center;
  }

  .profile-body {
    padding: 2rem 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

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

@media (max-width: 480px) {
  .profile-header {
    padding: 2rem 1rem 1.5rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-role {
    font-size: 1rem;
  }

  .profile-body {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-content {
    font-size: 0.95rem;
  }
}