/* ==========================================================================
   HOME PAGE — home.css
   ========================================================================== */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --primary: #1D4ED8;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --bg: #F8F7F4;
  --bg-dark: #0F1117;
  --text: #0F1117;
  --text-muted: #6B7280;
  --border: rgba(15, 17, 23, 0.1);
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 112px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}
h1 { font-size: 88px; }
h2 { font-size: 61px; }
h3 { font-size: 24px; }
p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}
em { font-style: italic; }

/* ============================================================
   NOISE OVERLAY
   ============================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================================
   CONTAINERS
   ============================================================ */
.hero-content,
.stats-container,
.capabilities-container,
.cta-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

video::-webkit-media-controls { display: none !important; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,17,23,0.6) 0%, rgba(29,78,216,0.15) 50%, rgba(15,17,23,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 128px;
  padding-bottom: 80px;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 96px;
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 24px;
}

.hero h1 em {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  font-weight: 300;
}

.scramble-text {
  display: block;
  cursor: default;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.scramble-text:nth-child(2) { animation-delay: 0.7s; }

.hero-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: white;
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  transition: var(--transition);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
}

.btn-hero:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 78, 216, 0.35);
}

.btn-hero svg { transition: transform 0.3s ease; }
.btn-hero:hover svg { transform: translateX(4px); }

.wave-char {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* ============================================================
   PARTNERS / CAROUSEL
   ============================================================ */
.partners-section {
  padding: 80px 0;
  background: var(--bg);
  overflow: hidden;
}

.partners-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  opacity: 0.6;
}

.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.carousel::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.carousel-track {
  display: flex;
  width: calc(310px * 10);
  animation: scroll-carousel 25s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

@keyframes scroll-carousel {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-310px * 5)); }
}

.partner-item {
  width: 260px;
  margin: 0 25px;
  flex-shrink: 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.partner-item:hover { transform: scale(1.08); }

.partner-logo {
  height: 120px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.partner-item:hover .partner-logo { transform: scale(1.05); }

.partner-name {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
}

.partner-item:hover .partner-name {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  padding: var(--space-xl) 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29,78,216,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 32px;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-number .counter { color: white; }
.infinity-wrap { color: var(--primary-light); }

.stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
}

/* ============================================================
   INFINITY COUNTER ANIMATION
   ============================================================ */
.infinity-counter {
  display: inline-block;
  transform-origin: center center;
  color: var(--primary-light);
}

/* ============================================================
   CAPABILITIES SECTION
   ============================================================ */
.capabilities-section {
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-header { margin-bottom: var(--space-lg); }
.section-header h2 { color: var(--text); }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cap-card {
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: relative;
  transition: background 0.3s ease;
  overflow: hidden;
}

.cap-card:nth-child(3n) { border-right: none; }
.cap-card:nth-child(4),
.cap-card:nth-child(5),
.cap-card:nth-child(6) { border-bottom: none; }

.cap-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,78,216,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cap-card:hover { background: #FAFBFF; }
.cap-card:hover::before { opacity: 1; }

.cap-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(29, 78, 216, 0.12);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.cap-card:hover .cap-number { color: rgba(29, 78, 216, 0.25); }
.cap-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.cap-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.cap-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.cap-card:hover .cap-line { width: 100%; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--space-xl) 0;
  background: var(--bg);
}
.cta-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.cta-inner {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 80px var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 256px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.cta-inner .section-tag { color: var(--primary-light); }

.cta-inner h2 {
  color: white;
  margin: 8px auto 24px;
  max-width: 500px;
  font-size: 64px;
}

.cta-inner h2 em { color: rgba(255, 255, 255, 0.5); }
.cta-inner p {
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 15px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--primary);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.btn-cta svg { transition: transform 0.3s ease; }
.btn-cta:hover svg { transform: translateX(4px); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
from {
  opacity: 0;
  transform: translateY(24px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

main { animation: fadeUp 0.6s ease forwards; }

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode {
  --bg: #020617;
  --bg-dark: #000000;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --white: #0F172A;
  --sb-track: #020617;
  --sb-thumb: #1D4ED8;
}

body.dark-mode .noise-overlay { opacity: 0.2; }
body.dark-mode .cap-card {
  background: var(--white);
  border-color: var(--border);
}
body.dark-mode .cap-card:hover { background: #1E293B; }
body.dark-mode .partner-logo {
  filter: grayscale(1) brightness(1.5);
  opacity: 0.7;
  transition: all 0.3s ease;
}
body.dark-mode .partner-item:hover .partner-logo {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}
body.dark-mode .nav-item { color: var(--text); }

/* ============================================================
   CTA — ქართული ენა
   ============================================================ */
:lang(ka) .cta-inner h2 {
  font-size: 45px;
  line-height: 1.2;
}

:lang(ka) .cta-inner h2 em {
  font-size: 38px;
}

:lang(ka) .btn-cta { font-size: 13px; }

/* ============================================================
   RESPONSIVE — 1280px
   ============================================================ */
@media (max-width: 1280px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .cap-card:nth-child(2n) { border-right: none; }
  .cap-card:nth-child(5),
  .cap-card:nth-child(6) { border-bottom: none; }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 72px; }
  .stats-grid { flex-wrap: wrap; }
.stat-item {
  flex: 1 1 140px;
  padding: 32px 19px;
}
  .stat-divider { display: none; }
  .cta-inner { padding: 56px 40px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .hero { min-height: 80vh; }
.hero-content {
  padding-top: 96px;
  padding-bottom: 48px;
}
  .hero h1 { font-size: 56px; }
.hero-sub {
  font-size: 15px;
  padding: 0 16px;
}
.btn-hero {
  padding: 13px 26px;
  font-size: 13px;
}

  .partners-section { padding: 40px 0; }
.partner-item {
  width: 200px;
  margin: 0 18px;
}
  .partner-logo { height: 60px; }

  .capabilities-grid {
    grid-template-columns: 1fr;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: var(--border);
    gap: 1px;
  }

.cap-card {
  border-right: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0;
}
  .cap-card:last-child { border-bottom: none !important; }

  .section-header h2 { font-size: 42px; }
  .section-header { margin-bottom: 32px; }

  .cta-inner { padding: 48px 24px; }
  .cta-inner h2 { font-size: 45px; }
  .cta-inner p { font-size: 14px; }
  .cta-bg-text { display: none; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 14px; }
.btn-hero {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

  .stat-number { font-size: 64px; }
  .stat-item { padding: 24px 16px; }

  .cap-card { padding: 26px 19px; }
.cap-number {
  font-size: 32px;
  margin-bottom: 10px;
}

.cta-inner {
  padding: 40px 19px;
  border-radius: 20px;
}
.btn-cta {
  padding: 14px 22px;
  font-size: 12px;
  width: 100%;
  justify-content: center;
}
  .carousel-track { animation-duration: 16s; }

  :lang(ka) .hero h1 { font-size: 32px; }
  :lang(ka) .cta-inner h2 { font-size: 26px; }
  :lang(ka) .btn-cta { font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — 360px
   ============================================================ */
@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
  .cap-card { padding: 19px 16px; }
  .cta-inner { padding: 32px 16px; }
}