/* ============ META — one page site ============ */
:root {
  --bg: #07090d;
  --bg-alt: #0d1117;
  --panel: #12161d;
  --text: #e8ecf1;
  --text-dim: #9aa4b2;
  --accent: #ff3b30;
  --accent-2: #ff6b35;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo { height: 44px; width: auto; }

.nav__links {
  display: flex;
  gap: 1.8rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--accent-2); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch__btn {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn.is-active {
  background: var(--accent);
  color: #fff;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7, 9, 13, 0.35) 0%, rgba(7, 9, 13, 0.88) 100%),
    linear-gradient(to bottom, rgba(7, 9, 13, 0.6), rgba(7, 9, 13, 0.4) 50%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero__wordmark {
  width: min(480px, 80vw);
  filter: drop-shadow(0 0 30px rgba(255, 59, 48, 0.35));
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero__badge { height: 92px; width: auto; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 59, 48, 0.35);
}

.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(255, 107, 53, 0.5);
}

.btn--email { text-transform: none; }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
}

.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scrollHint 1.6s infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ SECTIONS ============ */
.section { padding: 5.5rem 1.5rem; }

.section--alt { background: var(--bg-alt); }

.section__inner { max-width: 1200px; margin: 0 auto; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.1rem;
}

.section__title::before {
  content: '';
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 5px;
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 3px;
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text p { margin-bottom: 1.2rem; color: var(--text-dim); font-size: 1.1rem; }

.about__text p:last-child { color: var(--text); font-weight: 600; }

.about__media img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============ FEATURES ============ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.45);
}

.feature__icon { font-size: 2rem; margin-bottom: 0.8rem; }

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.feature p { color: var(--text-dim); font-size: 1rem; }

/* ============ GALLERY SLIDER ============ */
.slider {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.slider__track {
  display: flex;
  transition: transform 0.45s ease;
}

.slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.slider__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(7, 9, 13, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
}

.slider__arrow:hover {
  background: rgba(255, 59, 48, 0.75);
  border-color: var(--accent-2);
}

.slider__arrow--prev { left: 1rem; }
.slider__arrow--next { right: 1rem; }

.slider__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider__dot.is-active {
  background: var(--accent-2);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .slider__arrow { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* ============ MEGAGRANT ============ */
.megagrant {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), rgba(255, 107, 53, 0.05)), var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem 1.5rem;
}

.megagrant__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.megagrant__badge { height: 140px; width: auto; flex-shrink: 0; }

.megagrant__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.megagrant__text p { color: var(--text-dim); font-size: 1.1rem; }

/* ============ DEVELOPER ============ */
.developer__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 820px;
}

.developer__info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--accent-2);
}

.developer__info p { color: var(--text-dim); margin-bottom: 1.2rem; }

.developer__crania { display: inline-block; margin-top: 0.5rem; }

.developer__crania img {
  height: 72px; width: auto;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.developer__crania img:hover { opacity: 1; transform: scale(1.04); }

/* ============ CONTACT ============ */
.contact {
  padding: 5.5rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at bottom, rgba(255, 59, 48, 0.1), transparent 65%),
    var(--bg);
}

.contact__inner { max-width: 720px; margin: 0 auto; }

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.contact p { color: var(--text-dim); font-size: 1.15rem; margin-bottom: 2rem; }

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.5rem;
  background: var(--bg-alt);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer__logo { height: 40px; width: auto; }

.footer__copy { color: var(--text-dim); font-size: 0.95rem; }

.footer__links { display: flex; gap: 1.4rem; }

.footer__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__links a:hover { color: var(--accent-2); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 5, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
  position: absolute;
  top: 1rem; right: 1.4rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: 61px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 9, 13, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem;
    gap: 1.1rem;
    display: none;
  }

  .nav__links.is-open { display: flex; }

  .nav__burger { display: flex; }

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

  .megagrant__inner { flex-direction: column; text-align: center; }

  .hero__badge { height: 74px; }
}
