:root {
  color-scheme: dark;
  --c1: #ff5d73;
  --c2: #4ecdc4;
  --c3: #ffe66d;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Manrope", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: #e8eaf0;
  text-align: center;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(135deg, #0b1622, #1b2735, #241a32, #0b1622);
  background-size: 400% 400%;
  animation: bgshift 22s ease infinite;
}
@keyframes bgshift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* soft moving glow blobs behind everything */
.blob {
  position: fixed;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.blob.b1 { background: var(--c1); top: -10%; left: -8%;  animation: drift1 18s ease-in-out infinite; }
.blob.b2 { background: var(--c2); bottom: -12%; right: -6%; animation: drift2 21s ease-in-out infinite; }
.blob.b3 { background: var(--c3); top: 30%; right: 25%;   animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 10vh) scale(1.2); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-10vw,-8vh) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw, 12vh) scale(1.25); } }

/* drifting particle field */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* hero fills the first screen; rest of the page scrolls below */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 2rem;
}
/* film-grain texture over the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* status pill above the title */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  padding: .42rem .95rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cfd6e4;
  border: 1px solid rgba(232, 234, 240, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 10px var(--c2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }

main { position: relative; z-index: 2; }

/* content sections */
.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
  background: linear-gradient(100deg, var(--c2), var(--c3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* accent underline under section headings */
.section h2::after {
  content: "";
  display: block;
  width: 52px; height: 3px;
  margin: .8rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
}
.cta h2::after { margin-bottom: .2rem; }
.section .lead {
  max-width: 60ch;
  margin: 0 auto;
  color: #aab3c4;
  font-size: 1.12rem;
  line-height: 1.7;
}

/* service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.6rem;
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 1.6rem;
  border: 1px solid rgba(232, 234, 240, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* glint that sweeps across on hover */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 70%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.card:hover::after { left: 140%; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 205, 196, .5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.card .ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: rgba(78, 205, 196, .1);
}
.card:nth-child(1) .ic { background: rgba(255, 93, 115, .12); color: var(--c1); }
.card:nth-child(2) .ic { background: rgba(78, 205, 196, .12); color: var(--c2); }
.card:nth-child(3) .ic { background: rgba(255, 230, 109, .14); color: var(--c3); }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: .5rem; }
.card p { color: #aab3c4; font-size: .98rem; line-height: 1.6; }

/* call to action */
.cta { text-align: center; }
.cta h2 { margin-bottom: .4rem; }

footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem 3rem;
  color: #6b7689;
  font-size: .9rem;
  border-top: 1px solid rgba(232, 234, 240, .07);
}
footer a { color: #8a93a6; text-decoration: none; }
footer a:hover { color: var(--c2); }

/* reveal-on-scroll (only when JS is active, so no-JS crawlers see everything) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* scroll hint at the bottom of the hero */
.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: #6b7689;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* the three pixels, orbiting + spinning + morphing */
.pixels {
  display: flex;
  gap: .7rem;
  justify-content: center;
  margin-bottom: 1.8rem;
  perspective: 600px;
}
/* wrapper carries the mouse-driven parallax; inner span carries the looping animation */
.pixel {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.pixel span {
  display: block;
  width: 22px; height: 22px;
  border-radius: 6px;
  animation: orbit 2.4s cubic-bezier(.45,0,.55,1) infinite, morph 6s ease-in-out infinite;
  will-change: transform, border-radius;
}
.pixel:nth-child(1) span { background: var(--c1); animation-delay: 0s,    0s;   box-shadow: 0 0 18px var(--c1); }
.pixel:nth-child(2) span { background: var(--c2); animation-delay: .18s, -2s;  box-shadow: 0 0 18px var(--c2); }
.pixel:nth-child(3) span { background: var(--c3); animation-delay: .36s, -4s;  box-shadow: 0 0 18px var(--c3); }
@keyframes orbit {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  35%      { transform: translateY(-16px) rotate(180deg) scale(1.15); }
  70%      { transform: translateY(4px) rotate(300deg) scale(.92); }
}
@keyframes morph {
  0%, 100% { border-radius: 6px; }
  50%      { border-radius: 50%; }
}

/* title with a sweeping gradient shimmer */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--c1), var(--c3), var(--c2), var(--c1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite, floaty 5s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* typewriter tagline */
p {
  margin-top: 1.1rem;
  color: #aab3c4;
  font-size: 1.1rem;
  min-height: 1.4em;
}
.type {
  border-right: 2px solid var(--c2);
  padding-right: 2px;
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { border-color: transparent; } }

/* visible contact link */
.contact {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.8rem;
  padding: .65rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e8eaf0;
  text-decoration: none;
  border: 1px solid rgba(78, 205, 196, .45);
  border-radius: 999px;
  background: rgba(78, 205, 196, .08);
  backdrop-filter: blur(4px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.contact svg { color: var(--c2); transition: transform .25s ease; }
.contact:hover {
  transform: translateY(-2px);
  border-color: var(--c2);
  background: rgba(78, 205, 196, .16);
  box-shadow: 0 8px 24px rgba(78, 205, 196, .25);
}
.contact:hover svg { transform: scale(1.12) rotate(-6deg); }
.contact:focus-visible { outline: 2px solid var(--c3); outline-offset: 3px; }

/* language switcher — real links between the BG and EN pages */
.lang-switch {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 5;
  display: inline-flex;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid rgba(232, 234, 240, .18);
  border-radius: 999px;
  background: rgba(11, 22, 34, .45);
  backdrop-filter: blur(6px);
}
.lang-switch a {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #aab3c4;
  text-decoration: none;
  padding: .3rem .7rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.lang-switch a:hover { color: #e8eaf0; }
.lang-switch a[aria-current="true"] {
  color: #0b1622;
  background: var(--c2);
}
.lang-switch a:focus-visible { outline: 2px solid var(--c3); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  h1 { color: #e8eaf0; -webkit-text-fill-color: #e8eaf0; }
}
