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

:root {
  --yale-blue: #274060;
  --baltic-blue: #335c81;
  --cool-sky: #65afff;
  --space-indigo: #1b2845;
}

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.5vh, 28px) 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #dde3ea 0%, #f1f3f5 60%, #f7f8f9 100%);
  color: #fff;
}

.card {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 36px;
  padding: 0 6px 6px;
  box-shadow: 0 30px 80px -30px rgba(27, 40, 69, 0.35);
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 2.2vh, 20px) 32px clamp(10px, 2.2vh, 20px) 40px;
}

.logo {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vh, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--yale-blue);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(10px, 1.8vh, 15px) 26px;
  border-radius: 18px;
  background: #ff8a2b;
  color: var(--space-indigo);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px -10px rgba(255, 138, 43, 0.75);
  transition: transform 0.2s, background 0.2s;
}
.contact-btn:hover { transform: translateY(-2px); background: #ff9d4d; }
.contact-btn svg { width: 20px; height: 20px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  padding: clamp(24px, 6vh, 64px) clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background:
    radial-gradient(500px 400px at 6% 0%, rgba(101, 175, 255, 0.6) 0%, transparent 70%),
    radial-gradient(500px 400px at 100% 100%, rgba(101, 175, 255, 0.35) 0%, transparent 70%),
    linear-gradient(135deg, var(--baltic-blue) 0%, var(--yale-blue) 50%, var(--space-indigo) 100%);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(101, 175, 255, 0.18);
  filter: blur(8px);
}
.hero::before { width: 120px; height: 120px; right: 5%; top: 8%; }
.hero::after { width: 90px; height: 90px; left: 45%; bottom: -25px; }

.photo-frame {
  position: relative;
  z-index: 1;
  height: clamp(220px, 50vh, 520px);
  aspect-ratio: 540 / 620;
  padding: 8px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 25px;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(255,255,255,.25) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(255,255,255,.25) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(180deg, #5d7fa6 0%, #335c81 100%);
}

.text { position: relative; z-index: 1; }

h1 {
  margin: 0 0 clamp(14px, 3vh, 28px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, min(4.6vw, 7vh), 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text p {
  margin: 0;
  font-size: clamp(0.98rem, 2.3vh, 1.1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}
.text p strong { color: #fff; }

.divider {
  width: 80px;
  height: 5px;
  margin: clamp(16px, 3.5vh, 36px) 0;
  border: 0;
  border-radius: 99px;
  background: var(--cool-sky);
  opacity: 0.8;
}

.socials {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: clamp(52px, 8vh, 66px);
  height: clamp(52px, 8vh, 66px);
  border-radius: 20px;
  background: #fff;
  color: var(--baltic-blue);
  transition: transform 0.2s, color 0.2s;
}
.socials a:hover { transform: translateY(-3px); color: var(--cool-sky); }
.socials svg { width: 28px; height: 28px; fill: currentColor; }

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: clamp(10px, 2vh, 18px) 40px clamp(8px, 1.6vh, 14px);
  font-size: 0.88rem;
  color: var(--baltic-blue);
}

:focus-visible { outline: 3px solid var(--cool-sky); outline-offset: 3px; }

/* Responsive */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .photo-frame { height: clamp(200px, 34vh, 320px); }
}

@media (max-width: 560px) {
  body { padding: 10px; }
  .card { border-radius: 28px; }
  header { padding: 12px 18px; }
  .logo { font-size: 1.4rem; }
  .contact-btn { padding: 10px 16px; font-size: 0.92rem; }
  .hero { padding: 24px 20px; border-radius: 0 0 24px 24px; }
  .socials a { width: 52px; height: 52px; border-radius: 16px; }
  .socials svg { width: 24px; height: 24px; }
  footer { padding: 14px 20px 12px; font-size: 0.8rem; }
}
