/* ————— Adin Web Design ————— */

:root {
  --navy-950: #060f1f;
  --navy-900: #0a1730;
  --navy-800: #0e2145;
  --navy-700: #16305f;
  --navy-600: #1f4180;
  --navy-100: #dbe6f7;
  --ink: #0c1a33;
  --paper: #f6f8fc;
  --white: #ffffff;
  --accent: #e8b44a;
  --accent-strong: #d99c1f;
  --text-on-dark: #e8eefb;
  --muted-on-dark: #9fb2d4;
  --muted-on-light: #5a6b88;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(6, 15, 31, 0.45);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-950);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ————— Buttons ————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent {
  background: var(--accent);
  color: var(--navy-950);
  box-shadow: 0 8px 24px -8px rgba(232, 180, 74, 0.55);
}
.btn--accent:hover { background: var(--accent-strong); }
.btn--ghost {
  color: var(--text-on-dark);
  border-color: rgba(232, 238, 251, 0.35);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { font-size: 0.88rem; padding: 9px 20px; }
.btn--lg { font-size: 1.02rem; padding: 14px 30px; }

/* ————— Header ————— */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6, 15, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 238, 251, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-on-dark);
}
.logo__mark { width: 30px; height: 30px; color: var(--text-on-dark); }
.logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.logo__text em { font-style: normal; color: var(--accent); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.nav__link {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--white); }

/* Language pill — its own little compartment at the header's edge */
.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: 22px;
  padding-inline-start: 22px;
  border-inline-start: 1px solid rgba(232, 238, 251, 0.14);
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 1.5px solid rgba(232, 238, 251, 0.35);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.lang-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ————— Hero ————— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -10%, var(--navy-700) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--text-on-dark);
  padding: 120px 0 80px;
}
.hero__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 180, 74, 0.14) 0%, transparent 65%);
  top: -180px;
  right: -140px;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 238, 251, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 251, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 25%, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero__kicker {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__title-accent {
  background: linear-gradient(100deg, var(--accent) 20%, #f5d488 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 1.14rem;
  font-weight: 300;
  color: var(--muted-on-dark);
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero__subtitle em { color: var(--text-on-dark); font-style: italic; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-on-dark);
  width: 22px;
  height: 22px;
  animation: drift 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 100%; height: 100%; }
@keyframes drift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ————— Sections ————— */
.section { padding: 110px 0; }
.section__kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section__lead {
  font-size: 1.08rem;
  color: var(--muted-on-light);
  max-width: 640px;
  margin-bottom: 56px;
}

/* ————— Work / gallery ————— */
.section--work { background: var(--paper); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.float-wrap { display: flex; will-change: transform; }
.float-wrap .site-card,
.float-wrap .feature { flex: 1; }
.gallery__hint {
  margin-top: 34px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted-on-light);
  font-style: italic;
}
.site-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 34px -16px rgba(12, 26, 51, 0.25);
  border: 1px solid rgba(12, 26, 51, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.site-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.site-card__frame {
  position: relative;
  display: block;
  background: var(--navy-100);
}
.site-card__viewport {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  position: relative;
}
.site-card__mini {
  width: 1280px;
  height: 840px;
  border: 0;
  transform-origin: 0 0;
  background: var(--white);
}
/* Touch screens: a scrollable mini would trap page scrolling — open the full site instead */
@media (hover: none) {
  .site-card__mini { pointer-events: none; }
}
.site-card__open {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-on-dark);
  background: rgba(6, 15, 31, 0.78);
  border: 1px solid rgba(232, 238, 251, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-card__open:hover {
  background: var(--accent);
  color: var(--navy-950);
  border-color: var(--accent);
}
.site-card__frame--empty {
  aspect-ratio: 16 / 10.5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(31, 65, 128, 0.35) 0%, transparent 70%),
    var(--navy-900);
}
.site-card__empty {
  text-align: center;
  color: var(--muted-on-dark);
  font-family: var(--font-head);
  font-size: 0.95rem;
}
.site-card__plus {
  display: block;
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.site-card__body { padding: 24px 26px 28px; flex: 1; }
.site-card__name {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.site-card__desc { font-size: 0.95rem; color: var(--muted-on-light); margin-bottom: 16px; }
.site-card__cta {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-strong);
  text-decoration: none;
}
.site-card__cta:hover { text-decoration: underline; }

/* ————— Approach ————— */
.section--approach {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(31, 65, 128, 0.45) 0%, transparent 65%),
    var(--navy-900);
  color: var(--text-on-dark);
}
.section--approach .section__kicker { color: var(--accent); }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.feature {
  background: rgba(232, 238, 251, 0.045);
  border: 1px solid rgba(232, 238, 251, 0.09);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  border-color: rgba(232, 180, 74, 0.45);
  background: rgba(232, 238, 251, 0.07);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
}
.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(232, 180, 74, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature p { font-size: 0.95rem; color: var(--muted-on-dark); }
.feature p em { color: var(--text-on-dark); }

/* ————— About ————— */
.section--about { background: var(--paper); }
.about__inner { max-width: 760px; }
.about__text p { color: var(--muted-on-light); margin-bottom: 18px; font-size: 1.04rem; }
.about__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.about__facts li {
  background: var(--white);
  border: 1px solid rgba(12, 26, 51, 0.08);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about__facts li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -16px rgba(12, 26, 51, 0.3);
}
.about__facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}
.about__facts span { font-size: 0.88rem; color: var(--muted-on-light); }

/* ————— Contact ————— */
.section--contact {
  background:
    radial-gradient(1000px 480px at 15% 100%, rgba(31, 65, 128, 0.4) 0%, transparent 65%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--text-on-dark);
}
.section--contact .section__kicker { color: var(--accent); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact__intro p { color: var(--muted-on-dark); font-size: 1.04rem; }
.contact__form {
  background: rgba(232, 238, 251, 0.045);
  border: 1px solid rgba(232, 238, 251, 0.1);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-dark);
}
.form__field input,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-on-dark);
  background: rgba(6, 15, 31, 0.55);
  border: 1px solid rgba(232, 238, 251, 0.16);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(159, 178, 212, 0.55); }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 180, 74, 0.18);
}
.form__submit { align-self: flex-start; }
.form__submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.form__note { font-size: 0.84rem; color: var(--muted-on-dark); }
.form__note--error { color: #f2a0a0; }
.form__done { text-align: center; padding: 30px 10px; }
.form__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(232, 180, 74, 0.16);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.form__done h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.form__done p { color: var(--muted-on-dark); font-size: 0.98rem; }

/* ————— Footer ————— */
.footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(232, 238, 251, 0.08);
  padding: 44px 0;
  color: var(--muted-on-dark);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__tag { font-family: var(--font-head); font-size: 0.92rem; }
.footer__copy { font-size: 0.85rem; }

/* ————— Reveal animation —————
   Rise-and-fade as elements scroll into view, done as a keyframe
   animation so the transform is released afterwards — hover pops and
   the scroll-float system (inline transforms on [data-float] wrappers)
   keep full control of their own transforms. */
.reveal { opacity: 0; }
.reveal.in {
  opacity: 1;
  animation: rise 0.7s cubic-bezier(0.22, 0.9, 0.34, 1) backwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Cards in a row pop up one after another */
.gallery .float-wrap:nth-child(2) .reveal.in,
.features .float-wrap:nth-child(2) .reveal.in { animation-delay: 0.15s; }
.gallery .float-wrap:nth-child(3) .reveal.in,
.features .float-wrap:nth-child(3) .reveal.in { animation-delay: 0.3s; }
.hero__inner, .hero__glow { will-change: transform; }
[data-float] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; }
  .reveal.in { animation: none; }
  .hero__scroll, .site-card__plus { animation: none; }
}

/* ————— Responsive ————— */
@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 84px 0; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(232, 238, 251, 0.1);
    padding: 12px 24px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav__link { padding: 14px 4px; font-size: 1.05rem; }
  .nav .btn { margin-top: 12px; }
  .nav-toggle { display: flex; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
