html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f7fafc 0%, #e6ecf5 100%);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Responsive card layout */
.cv-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 32px rgba(72, 73, 92, 0.08), 0 1.5px 6px rgba(0,0,0,0.03);
  padding: 44px 38px 38px 38px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transition: box-shadow .2s;
  margin: 24px;
  box-sizing: border-box;
}

.cv-card:hover {
  box-shadow: 0 4px 48px rgba(72, 73, 92, 0.13), 0 3px 16px rgba(0,0,0,0.07);
}

.profile-section {
  margin-bottom: 22px;
}

.profile-img {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  background: #dde4ee;
  box-shadow: 0 1px 8px rgba(72, 73, 92, 0.04);
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 7px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #364259;
}

.expertise {
  font-size: 1.03rem;
  font-weight: 500;
  color: #4786d6;
  margin-bottom: 4px;
}

.desc {
  color: #526080;
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Polished button row */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* Desktop: buttons in a row */
@media (min-width: 600px) {
  .links {
    flex-direction: row;
    gap: 20px;
  }
  .cv-btn {
    min-width: 128px;
    max-width: 160px;
  }
}

/* Polished button styles */
.cv-btn {
  display: inline-block;
  background: linear-gradient(90deg, #4786d6 0%, #7eaaff 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 0;
  min-width: 110px;
  max-width: 98vw;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1.5px 8px rgba(72,73,92,.11);
  transition: 
    background .18s, 
    box-shadow .2s, 
    transform .1s;
  cursor: pointer;
  margin-bottom: 4px;
  outline: none;
  border: 1.5px solid #e6ecf5;
  letter-spacing: 0.03em;
}

.cv-btn:hover, .cv-btn:focus {
  background: linear-gradient(90deg, #346bb0 0%, #4786d6 100%);
  box-shadow: 0 3px 16px rgba(72,73,92,.19);
  transform: translateY(-2px) scale(1.04);
  border-color: #4786d6;
}

/* Tablet adjustments */
@media (min-width: 601px) and (max-width: 900px) {
  .cv-card {
    max-width: 68vw;
    padding: 36px 7vw;
    margin: 20px;
  }
}

/* Mobile stack, touch-friendly buttons */
@media (max-width: 600px) {
  .cv-card {
    padding: 28px 8vw;
    max-width: 97vw;
    margin: 12px 0;
  }
  .profile-img {
    width: 88px;
    height: 88px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .desc, .expertise {
    font-size: 0.94rem;
  }
  .cv-btn {
    min-width: 80vw;
    padding: 12px 0;
    border-radius: 15px;
  }
  .links {
    flex-direction: column;
    gap: 13px;
  }
}

@media (max-width: 400px) {
  .cv-card {
    padding: 10vw 2vw;
  }
  .profile-img {
    width: 62px;
    height: 62px;
  }
}
