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

body {
  font-family: 'Lato', sans-serif;
  color: #fff;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #0f1923;
}

/* --- Hero --- */
.hero {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(24, 188, 156, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(52, 73, 94, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(22, 40, 60, 0.6) 0%, transparent 60%),
    linear-gradient(160deg, #0f1923 0%, #1a2a3a 40%, #152232 100%);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Avatar – two images stacked, pure CSS crossfade on hover */
.avatar {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.avatar-hover {
  opacity: 0;
}

.avatar:hover .avatar-default {
  opacity: 0;
  transform: scale(1.04);
}

.avatar:hover .avatar-hover {
  opacity: 1;
  transform: scale(1.04);
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.divider {
  width: 80px;
  height: 3px;
  background: #18bc9c;
  border: none;
  margin: 0 auto 1rem;
}

.tagline {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 650px;
  line-height: 1.7;
  color: #a0b4c8;
}

.cv-btn {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.7rem 2rem;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.cv-btn:hover {
  background: #fff;
  color: #0f1923;
}

/* --- Footer --- */
footer {
  background: rgba(0, 0, 0, 0.25);
  padding: 2.5rem 1.5rem;
}

.footer-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-col {
  text-align: center;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  color: #fff;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #a0b4c8;
}

/* Social links */
.socials {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  list-style: none;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.socials a:hover {
  background: #fff;
  border-color: #fff;
  color: #0f1923;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-logo {
  width: 90px;
  opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  h1 { font-size: 1.8rem; }
  .tagline { font-size: 0.95rem; }
  .avatar { width: 140px; height: 140px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
