/* Base */
:root {
  --bg: #f3f6fd;
  --brand: #395c99;
  --accent: #578FA3;
  --shadow: 0 2px 8px rgba(99,112,126,0.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--brand);
}

/* Decorative moving bg */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../assets/bg.webp') center center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  animation: bgMove 20s linear infinite;
}
@keyframes bgMove {
  0%   { background-position: 50% 50%; }
  20%  { background-position: 65% 30%; }
  40%  { background-position: 50% 10%; }
  60%  { background-position: 35% 70%; }
  80%  { background-position: 50% 90%; }
  100% { background-position: 50% 50%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Intro fade */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header / logos */
.logo-center {
  margin-top: 4vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100vw;
  z-index: 1;
}
.logo-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
}
.logo-img {
  max-width: 25vw; max-height: 25vh; object-fit: contain;
  opacity: 0; transform: translateY(32px);
  animation: fadeIn 0.9s ease 0.6s forwards;
}
.logo-text {
  max-width: 40vw; max-height: 20vh; object-fit: contain;
  margin-top: -7vh;
  opacity: 0; transform: translateY(32px);
  animation: fadeIn 0.9s ease 1s forwards;
}

/* Titles */
.title {
  font-size: clamp(28px, 3.5vw, 52px);
  color: transparent; /* purely decorative title since logo has the readable brand */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
}
.subtitle {
  margin-top: -7.5vh;
  margin-bottom: 7.5vh;
  font-size: clamp(18px, 2.4vw, 36px);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: var(--shadow);
  opacity: 0; transform: translateY(32px);
  animation: fadeIn 0.9s ease 1.3s forwards;
}
.subtitle .dot { padding: 0 0.4em; }

/* Info */
.info-section {
  opacity: 0; transform: translateY(32px);
  animation: fadeIn 0.9s ease 1.6s forwards;
}
.coming-soon {
  font-size: clamp(14px, 1.6vw, 22px);
  text-align: center;
  color: var(--brand);
}

/* Footer */
.contacts {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 10;
  opacity: 0;
  text-align: center;
  animation: fadeIn 0.9s ease 1.6s forwards;
  padding-bottom: 2vh;
  background: linear-gradient(to top, rgba(243,246,253,0.95), rgba(243,246,253,0));
}
.social-links { margin: 1vh 0; }
.social-link {
  color: var(--brand);
  font-size: clamp(20px, 2.2vw, 34px);
  margin: 0 2.2vw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  transition: transform .16s ease, opacity .16s ease;
}
.social-link:hover { transform: translateY(-2px); opacity: 0.9; }
.social-link:active { transform: translateY(0); }

/* Mobile tweaks */
@media (max-width: 600px) {
  .logo-center { margin-top: 6vw; }
  .logo-img { max-width: 60vw; max-height: 30vh; }
  .logo-text { max-width: 80vw; max-height: 18vh; margin-top: -6vh; }
  .subtitle { margin-top: 5vh; }
  .coming-soon { margin-top: 4vw; }
  .contacts { padding-bottom: 5vw; }
}

/* Focus rings for a11y */
a:focus-visible { outline: 3px solid #8ab6ff; outline-offset: 3px; }
