:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --ink-soft: #bfd7ea;
  --paper: #071728;
  --paper-warm: #0a2540;
  --white: #ffffff;
  --blue: #2f8cff;
  --blue-deep: #d9ecff;
  --navy: #06111f;
  --gold: #f3c96f;
  --line: rgba(217, 236, 255, 0.18);
  --shadow: rgba(1, 8, 20, 0.44);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(
      90deg,
      rgba(0, 43, 127, 0.48) 0%,
      rgba(0, 43, 127, 0.48) 33.333%,
      rgba(252, 209, 22, 0.38) 33.333%,
      rgba(252, 209, 22, 0.38) 66.666%,
      rgba(206, 17, 38, 0.42) 66.666%,
      rgba(206, 17, 38, 0.42) 100%
    ),
    linear-gradient(135deg, rgba(47, 140, 255, 0.24) 0%, transparent 32%),
    linear-gradient(225deg, rgba(243, 201, 111, 0.13) 0%, transparent 28%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 86px
    ),
    linear-gradient(180deg, #0b2f52 0%, #071728 62%, #06111f 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.language-switch {
  position: fixed;
  top: clamp(0.85rem, 2vw, 1.25rem);
  right: clamp(0.85rem, 2vw, 1.25rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  background: transparent;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.45rem;
  border: 0;
  border-radius: 3px;
  padding: 0.15rem;
  background: transparent;
  color: transparent;
  cursor: pointer;
  font: inherit;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: transparent;
  outline: none;
}

.language-toggle:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.42);
  outline-offset: 3px;
}

.language-toggle__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.flag-ro,
.flag-en {
  width: 1.28rem;
  height: 0.82rem;
  flex: 0 0 auto;
  border-radius: 1px;
  opacity: 0.72;
  box-shadow: none;
}

.language-toggle:hover .flag-ro,
.language-toggle:hover .flag-en,
.language-toggle[aria-pressed="true"] .flag-ro,
.language-toggle[aria-pressed="true"] .flag-en {
  opacity: 1;
}

.flag-ro {
  background: linear-gradient(
    90deg,
    #002b7f 0 33.333%,
    #fcd116 33.333% 66.666%,
    #ce1126 66.666% 100%
  );
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
    linear-gradient(0deg, transparent 0 38%, #c8102e 38% 62%, transparent 62% 100%),
    #ffffff;
}

.site-shell {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 43, 127, 0.42) 0%,
    rgba(0, 43, 127, 0.42) 33.333%,
    rgba(252, 209, 22, 0.32) 33.333%,
    rgba(252, 209, 22, 0.32) 66.666%,
    rgba(206, 17, 38, 0.36) 66.666%,
    rgba(206, 17, 38, 0.36) 100%
  );
  mix-blend-mode: normal;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.site-shell::after {
  content: "";
  position: absolute;
  left: max(-12rem, -16vw);
  bottom: 18rem;
  z-index: 0;
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(252, 209, 22, 0.18), transparent 38%),
    radial-gradient(circle at 68% 42%, rgba(206, 17, 38, 0.13), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(47, 140, 255, 0.2), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}

.profile-hero {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100% - 3rem, 900px);
  margin-inline: auto;
  min-height: 100dvh;
  align-content: center;
  padding-block: clamp(2.4rem, 7vw, 5.5rem);
  text-align: center;
}

.profile-photo {
  width: min(66vw, 18rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow:
    0 22px 80px var(--shadow),
    0 0 70px rgba(47, 140, 255, 0.28);
}

h1,
p {
  margin-block: 0;
}

h1 {
  max-width: 100%;
  margin-top: 1.35rem;
  color: var(--blue-deep);
  font-size: clamp(1.45rem, 6vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.lead {
  max-width: 43rem;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.contact-section {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: rgba(3, 14, 27, 0.64);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.contact-layout {
  width: min(100% - 3rem, 720px);
  margin-inline: auto;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 30, 52, 0.78);
  box-shadow: 0 18px 60px rgba(0, 8, 20, 0.28);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(24, 33, 32, 0.22);
  border-radius: 6px;
  padding: 0.9rem 0.95rem;
  background: var(--white);
  color: #12243a;
  font: inherit;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  font-weight: 800;
}

.button--form {
  width: fit-content;
  min-width: 12rem;
  border: 0;
  background: linear-gradient(135deg, #2f8cff, #0f66c8);
  color: var(--white);
  cursor: pointer;
}

.button--form:hover {
  background: #0b4d9a;
}

.button:focus-visible,
.brand:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199, 149, 61, 0.85);
  outline-offset: 4px;
}

.response-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(47, 140, 255, 0.24), rgba(243, 201, 111, 0.12)),
    var(--paper);
}

.response-panel {
  width: min(100%, 36rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(24, 33, 32, 0.1);
}

.response-brand {
  color: #123d6b;
}

.response-panel h1 {
  max-width: none;
  color: #123d6b;
  font-size: clamp(2rem, 5vw, 3rem);
}

.response-panel p {
  margin-block: 1rem 1.5rem;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

.button--primary {
  background: #f3d690;
  color: #1b211c;
}

@media (max-width: 700px) {
  .site-header,
  .profile-hero,
  .contact-layout {
    width: min(100% - 2rem, 720px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .button--form {
    width: 100%;
  }

  .site-shell::after {
    left: -9rem;
    bottom: 16rem;
    width: 18rem;
    height: 18rem;
  }
}

@media (max-width: 420px) {
  .profile-photo {
    width: min(78vw, 16rem);
  }

  h1 {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
