/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0984e3;
  --secondary-color: #64748b;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Container and layout */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 2rem 0;
}

.profile-image {
  margin-bottom: 1.5rem;
}

.profile-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--background);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
}

.name {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.location {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Contact section */
.contact {
  margin-top: auto;
  padding-top: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--background);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.contact-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.contact-link svg {
  flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 640px) {
  .container {
    padding: 1rem;
    gap: 2rem;
  }
  
  .name {
    font-size: 1.875rem;
  }
  
  .title {
    font-size: 1.125rem;
  }
  
  .contact-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-link {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-image img {
    width: 100px;
    height: 100px;
  }
  
  .name {
    font-size: 1.75rem;
  }
}

/* Animation for smooth loading */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.contact {
  animation: fadeInUp 0.6s ease-out;
}

.contact {
  animation-delay: 0.1s;
}

/* Focus styles for accessibility */
.contact-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .container {
    max-width: none;
    padding: 0;
    gap: 1rem;
  }
  
  .profile-image img {
    box-shadow: none;
  }
  
  .contact-link {
    box-shadow: none;
  }
}
