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

:root {
  --color-bg: #eef2f6;
  --color-card: #ffffff;
  --color-text: #1b2a3d;
  --color-muted: #5f7082;
  --color-accent: #1e3a5f;
  --color-highlight: #d63031;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-card);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 960px;
  width: 100%;
}

/* Text */
.hero-text {
  flex: 1;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 .highlight {
  color: var(--color-highlight);
}

.btn-contact {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2.2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
  background: #152d4a;
  transform: translateY(-2px);
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 2rem;
}

.hero-info a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.hero-info a:hover {
  color: var(--color-accent);
}

/* Photo with blob */
.hero-photo {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  height: 380px;
}

.hero-photo::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -8px;
  width: 320px;
  height: 360px;
  border: 2px solid var(--color-highlight);
  border-radius: 58% 42% 30% 70% / 55% 40% 60% 45%;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
  animation: ring-morph 8.5s ease-in-out infinite reverse;
}

@keyframes ring-morph {
  0%, 100% {
    border-radius: 58% 42% 30% 70% / 55% 40% 60% 45%;
    transform: rotate(0deg);
  }
  33% {
    border-radius: 40% 60% 55% 45% / 35% 65% 35% 65%;
    transform: rotate(6deg);
  }
  66% {
    border-radius: 65% 35% 45% 55% / 50% 50% 50% 50%;
    transform: rotate(-4deg);
  }
}

.photo-blob {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 300px;
  height: 340px;
  background: var(--color-accent);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  25% {
    border-radius: 55% 45% 35% 65% / 55% 60% 40% 45%;
  }
  50% {
    border-radius: 38% 62% 55% 45% / 50% 35% 65% 50%;
  }
  75% {
    border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%;
  }
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-photo {
    width: 240px;
    height: 270px;
  }

  .photo-blob {
    width: 220px;
    height: 250px;
    left: 10px;
  }

  .hero-photo img {
    width: 220px;
    height: 250px;
  }

  .hero-photo::after {
    width: 235px;
    height: 265px;
    top: -10px;
    left: 0;
  }

  .hero-info {
    align-items: center;
  }
}
