@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Georgian:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════
   SPACELOG v2 — GLOBAL STYLESHEET
   ══════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent:    #e8ff47;
  --accent2:   #00cfff;
  --dark:      #04080f;
  --navy:      #080f1e;
  --card:      #0c1525;
  --card2:     #101d30;
  --glass:     rgba(8,15,30,0.7);
  --glass2:    rgba(255,255,255,0.03);
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(232,255,71,0.2);
  --text:      #eef2ff;
  --muted:     rgba(238,242,255,0.45);
  --font-display: 'Manrope', 'Noto Sans Georgian', sans-serif;
  --font-body:    'Noto Sans Georgian', 'Manrope', sans-serif;
  --font-ui:      'Manrope', 'Outfit', sans-serif;
  --radius:    16px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(232,255,71,0.25); border-radius: 4px; }

/* ══════════════════════
   NAVBAR
   ══════════════════════ */
.navbar {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 94%; max-width: 1260px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 22px;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  animation: navIn 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

.navbar.scrolled {
  background: rgba(4,8,15,0.9);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

@keyframes navIn {
  from { opacity:0; transform: translateX(-50%) translateY(-18px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

.logo {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 24px;
  letter-spacing: 2px;
  text-decoration: none;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

/* DESKTOP MENU */
.menu {
  display: flex; gap: 2px; align-items: center;
}

.menu a {
  font-family: var(--font-body);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px; font-weight: 400;
  padding: 7px 12px;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}
.menu a:hover  { color: var(--text); background: rgba(255,255,255,0.06); }
.menu a.active { color: var(--accent); background: rgba(232,255,71,0.08); }

/* LANG BUTTONS */
.lang {
  display: flex; align-items: center; gap: 4px;
  margin-left: 10px; padding-left: 10px;
  border-left: 1px solid var(--border);
}

.lang-btn {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--text); border-color: var(--border); }
.lang-btn.lang-active {
  color: var(--accent);
  border-color: rgba(232,255,71,0.3);
  background: rgba(232,255,71,0.07);
}

.flag-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.flag-btn img {
  width: 22px;
  height: 16px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.flag-btn:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.flag-btn:hover img { transform: translateY(-1px) scale(1.04); }

.flag-btn.lang-active {
  background: rgba(232,255,71,0.12);
  border-color: rgba(232,255,71,0.45);
  box-shadow: 0 0 24px rgba(232,255,71,0.08);
}

.flag-btn.lang-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* BURGER BUTTON */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s;
}
.burger:hover { background: rgba(255,255,255,0.1); }
.burger span {
  display: block; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(4,8,15,0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

/* MOBILE MENU DRAWER */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--navy);
  border-left: 1px solid var(--border);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column;
  padding: 80px 32px 40px;
  gap: 0;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu .mob-logo {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 2px;
  color: var(--text); margin-bottom: 40px;
}
.mobile-menu .mob-logo span { color: var(--accent); }

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 22px; font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a::after { content: '→'; font-size: 14px; opacity: 0; transition: opacity 0.2s; }
.mobile-menu a:hover { color: var(--text); padding-left: 6px; }
.mobile-menu a:hover::after { opacity: 0.5; }
.mobile-menu a.active { color: var(--accent); }

.mobile-lang {
  display: flex; gap: 8px; margin-top: 32px;
}
.mobile-lang .lang-btn { font-size: 13px; }
.mobile-lang .flag-btn { width: 44px; height: 38px; border-radius: 12px; }
.mobile-lang .flag-btn img { width: 26px; height: 18px; }

.mobile-contact {
  margin-top: auto;
  font-size: 13px; color: var(--muted);
}
.mobile-contact a { color: var(--accent); text-decoration: none; font-size: 14px; display: block; margin-top: 4px; }

/* ══════════════════════
   PAGE HERO
   ══════════════════════ */
.page-hero {
  padding: 160px 64px 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,255,71,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.page-tag {
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.page-tag::before { content:''; width:28px; height:1px; background:var(--accent); flex-shrink:0; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 1.1;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 55%, rgba(255,255,255,0.35));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 700px;
  white-space: pre-line;
  margin-bottom: 24px;
}

.page-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
}

/* ══════════════════════
   SECTION
   ══════════════════════ */
.section {
  padding: 80px 64px;
  max-width: 1260px; margin: 0 auto;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content:''; width:28px; height:1px; background:var(--accent); }

.section h2 {
  font-family: var(--font-display);
  font-size: 54px; line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 55%, rgba(255,255,255,0.35));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section p.lead {
  color: var(--muted); font-size: 15px;
  max-width: 540px; margin-bottom: 48px; line-height: 1.75;
}

/* ══════════════════════
   CARDS
   ══════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}

.card::after {
  content: '';
  position: absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}

.card:hover { transform: translateY(-5px); border-color: var(--border2); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.card:hover::after { opacity: 1; }

.card-icon { font-size: 30px; margin-bottom: 18px; }
.card h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.3px; margin-bottom: 10px; color: var(--text); }
.card p  { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ══════════════════════
   DIVIDER
   ══════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--border) 30%, var(--border) 70%, transparent 95%);
  margin: 0 64px;
}

/* ══════════════════════
   BUTTONS
   ══════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  text-decoration: none; border: none;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #06100a; }
.btn-primary:hover { background: #f0ff5a; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232,255,71,0.22); }

.btn-outline { border: 1px solid var(--border); background: transparent; color: var(--muted); }
.btn-outline:hover { border-color: rgba(255,255,255,0.25); color: var(--text); background: rgba(255,255,255,0.04); }

/* ══════════════════════
   FOOTER
   ══════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 64px; margin-top: 0;
}

.footer-inner {
  max-width: 1260px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}

.footer-brand .logo { font-size: 26px; display: inline-block; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 210px; line-height: 1.75; }

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

.footer-col a {
  display: block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--text); padding-left: 4px; }

.footer-bottom {
  max-width: 1260px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }

/* ══════════════════════
   ANIMATIONS / REVEAL
   ══════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(28px); }
  to   { opacity:1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }
.fade-up-4 { animation-delay: 0.46s; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ══════════════════════
   COOKIES BANNER
   ══════════════════════ */
#cookieBanner {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: min(560px, 94vw);
  z-index: 9000;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
#cookieBanner.show { transform: translateX(-50%) translateY(0); }

.cookie-inner {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.cookie-icon { font-size: 24px; flex-shrink: 0; }
.cookie-text { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.5; }

.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-accept {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: 10px;
  background: var(--accent); color: #06100a;
  border: none; cursor: pointer; transition: background 0.2s;
}
.cookie-accept:hover { background: #f0ff5a; }

.cookie-decline {
  font-family: var(--font-body); font-size: 13px;
  padding: 8px 14px; border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: all 0.2s;
}
.cookie-decline:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ══════════════════════
   MOBILE
   ══════════════════════ */
@media (max-width: 900px) {
  .menu, .lang { display: none; }
  .burger { display: flex; }
}

@media (max-width: 768px) {
  .page-hero { padding: 130px 24px 56px; }
  .page-hero h1 { font-size: 48px; }
  .section { padding: 56px 24px; }
  .divider { margin: 0 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  footer { padding: 48px 24px; }
  .cookie-inner { flex-wrap: wrap; }
  .cookie-btns { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 38px; }
  .section h2 { font-size: 38px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Design polish */
.navbar {
  box-shadow: 0 18px 70px rgba(0,0,0,0.24);
}

.hero-content h1,
.page-hero h1,
.cta-section h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(36px, 5vw, 58px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
  padding-bottom: 10px !important;
}

.page-hero p {
  margin-top: 28px !important;
}

.hero-content {
  max-width: 600px !important;
}

.hero-content p,
.page-hero p,
.section-lead,
.card p,
.why-item-text p {
  color: rgba(238,242,255,0.58);
}

.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,255,71,0.18), transparent);
  pointer-events: none;
}

.card,
.why-item,
.why-visual,
.contact-card,
.form-card,
.gallery-item {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card,
.why-item {
  border-radius: 20px;
}

.card:hover,
.why-item:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,0.34), 0 0 0 1px rgba(232,255,71,0.08);
}

.btn {
  border-radius: 12px;
  min-height: 44px;
}

.btn-primary {
  box-shadow: 0 12px 34px rgba(232,255,71,0.14);
}

.menu a,
.mobile-menu a {
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .hero-content h1,
  .page-hero h1,
  .cta-section h2 {
    font-size: clamp(38px, 12vw, 52px) !important;
  }

  .hero-content p,
  .page-hero p {
    font-size: 14px !important;
  }
}

/* Final typography tuning */
body {
  font-size: 14px;
  letter-spacing: 0;
}

.logo,
.mobile-menu .mob-logo {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.logo span,
.mobile-menu .mob-logo span {
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(232,255,71,0.22);
}

.hero-content h1,
.page-hero h1,
.cta-section h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(36px, 5vw, 58px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.02em !important;
}

.section h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
}

.card h3,
.service-big-content h3,
.contact-form h3,
.form-success h4,
.team-info h3,
.why-item-text h4,
.timeline-item h4,
.process-step h4,
.cta-box h3 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.card h3 { font-size: 18px !important; }
.service-big-content h3 { font-size: 22px !important; }
.cta-box h3 { font-size: clamp(30px, 4vw, 40px) !important; }
.contact-form h3 { font-size: 26px !important; }
.team-info h3 { font-size: 17px !important; }
.timeline-year { font-size: 22px !important; }
.number-big { font-size: 42px !important; }
.stat-num { font-size: 28px !important; }

.hero-content p,
.page-hero p,
.lead,
.card p,
.service-big-content p,
.why-item-text p,
.process-step p,
.contact-form .sub,
.footer-brand p {
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.menu a,
.mobile-menu a,
.section-label,
.page-tag,
.hero-tag,
.tag,
.filter-btn,
.footer-col h4,
.footer-col a,
.form-group label,
.stat-label,
.feature-text h4,
.feature-text p {
  font-family: var(--font-ui) !important;
}

.menu a {
  font-size: 12px !important;
  font-weight: 600 !important;
}

.mobile-menu a {
  font-size: 18px !important;
}

.btn,
.form-submit,
.cookie-accept,
.cookie-decline {
  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

input,
select,
textarea {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
}

.cookie-inner {
  border-color: rgba(232,255,71,0.16);
  box-shadow: 0 22px 70px rgba(0,0,0,0.48), 0 0 0 1px rgba(232,255,71,0.04);
}

.cookie-text {
  font-size: 12px !important;
}

@media (max-width: 768px) {
  .hero-content h1,
  .page-hero h1,
  .cta-section h2 {
    font-size: clamp(32px, 10vw, 44px) !important;
  }

  .section h2 {
    font-size: clamp(28px, 9vw, 38px) !important;
  }

  .hero-content p,
  .page-hero p,
  .lead {
    font-size: 12.5px !important;
  }
}
