*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0B1426; --bg2: #111F3A; --bg3: #0E1930;
  --blue: rgb(77, 123, 224); --blue-soft: #6B9FE8; --accent: #7B8FFF;
  --text: #FFFFFF; --muted: #8FA8C8;
  --border: rgba(77,143,224,0.18); --radius: 10px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Georgian', 'Inter', sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; overflow-x: hidden;
}

/* ─── LANG ─── */
.lang-btn { background: none; border: 1.5px solid var(--border); color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px; cursor: pointer; transition: all 0.2s; }
.lang-btn.active, .lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-pair { display: flex; gap: 6px; align-items: center; }

/* ─── NAV ─── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 68px; background: rgba(11,20,38,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 20px; list-style: none; flex-shrink: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta { background: var(--blue); color: #fff; padding: 8px 18px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: background 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--blue-soft); }
@media (max-width: 960px) { .nav-links { gap: 12px; } .nav-links a { font-size: 0.72rem; } .nav-cta { padding: 6px 14px; font-size: 0.72rem; } .lang-btn { font-size: 0.68rem; padding: 3px 9px; } }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(11,20,38,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 20px 5%; z-index: 99; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right { display: none; }
}
.mobile-menu-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border); }

/* ─── HERO ─── */
#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 100px 5% 60px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(11,20,38,0.7) 0%, rgba(11,20,38,0.5) 50%, rgba(11,20,38,0.85) 100%); }
.bracket { position: absolute; z-index: 2; width: 28px; height: 28px; border-color: rgba(77,143,224,0.35); border-style: solid; }
.bracket.tl { top: 80px; left: 5%; border-width: 2px 0 0 2px; }
.bracket.tr { top: 80px; right: 5%; border-width: 2px 2px 0 0; }
.bracket.bl { bottom: 30px; left: 5%; border-width: 0 0 2px 2px; }
.bracket.br { bottom: 30px; right: 5%; border-width: 0 2px 2px 0; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(77,143,224,0.1); border: 1px solid var(--border); border-radius: 20px; padding: 5px 16px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--blue); text-transform: uppercase; margin-bottom: 28px; }
.hero-tag .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; display: inline-block; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 520px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--blue); color: #fff; padding: 13px 32px; border-radius: 7px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--blue-soft); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); padding: 12px 28px; border-radius: 7px; font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: all 0.2s; border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--blue); }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* ─── SECTIONS ─── */
section { padding: 88px 5%; }
.section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
h2 { font-size: clamp(1.3rem, 3.2vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.section-desc { color: var(--muted); font-size: 1rem; max-width: 520px; margin-bottom: 52px; }
.tech-line { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.tech-line .line1 { width: 32px; height: 2px; background: var(--blue); }
.tech-line .line2 { width: 8px; height: 2px; background: var(--blue); opacity: 0.4; }
.tech-line .line3 { width: 4px; height: 2px; background: var(--blue); opacity: 0.2; }

/* ─── SERVICES ─── */
#services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.service-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: border-color 0.25s, transform 0.2s; }
.service-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.service-icon { width: 44px; height: 44px; border-radius: 9px; background: rgba(77,143,224,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.3rem; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.85rem; color: var(--muted); }

/* ─── PORTFOLIO CAROUSEL ─── */
#portfolio { background: var(--bg3); overflow: hidden; }
.portfolio-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.portfolio-tab { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 0.72rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.portfolio-tab:hover, .portfolio-tab.active { border-color: var(--blue); color: var(--blue); background: rgba(77,143,224,0.1); }
.portfolio-category { display: none; }
.portfolio-category.active { display: block; }

.carousel-wrapper { position: relative; width: 100%; padding: 20px 0; overflow: hidden; }
.carousel-track {
  display: flex; align-items: center;
  user-select: none; cursor: grab;
  will-change: transform;
}
.carousel-track.animating { transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.carousel-track:active { cursor: grabbing; }
.carousel-slide {
  flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1), opacity 0.5s, filter 0.5s, border-color 0.5s;
  position: relative; cursor: pointer;
  width: 55%; aspect-ratio: 16/9;
  margin: 0 8px;
  opacity: 0.6; transform: scale(0.82); filter: brightness(0.65);
}
.carousel-slide.active-center {
  opacity: 1; transform: scale(1); filter: brightness(1);
  border-color: var(--blue);
}
.carousel-slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel-slide .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,20,38,0.3); transition: opacity 0.5s, background 0.3s;
  opacity: 0; pointer-events: none;
}
.carousel-slide.active-center .play-overlay { opacity: 1; pointer-events: auto; }
.carousel-slide.playing .play-overlay { opacity: 0; pointer-events: none; }
.carousel-slide:hover .play-overlay { background: rgba(11,20,38,0.15); }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(77,143,224,0.25); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: transform 0.2s;
}
.carousel-slide:hover .play-btn { transform: scale(1.08); }
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-style: solid; border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
@media (max-width: 768px) {
  .carousel-slide { width: 78%; margin: 0 6px; aspect-ratio: 9/16; }
  .carousel-slide:not(.active-center) { opacity: 0.35; transform: scale(0.88); }
}

.carousel-nav { display: flex; justify-content: center; margin-top: 20px; }
.carousel-dots { display: flex; align-items: center; gap: 6px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(77,143,224,0.25); transition: all 0.3s;
}
.carousel-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }

/* ─── AUDIENCE ─── */
#audience { background: var(--bg); }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.audience-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 12px; font-size: 0.88rem; font-weight: 500; transition: border-color 0.2s; }
.audience-item:hover { border-color: var(--blue); }
.audience-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ─── PACKAGES ─── */
#packages { background: var(--bg3); }
.packages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; }
@media (max-width: 600px) { .packages-grid { grid-template-columns: 1fr; max-width: 100%; } }
.pkg-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.pkg-card.featured { border-color: var(--blue); }
.pkg-badge { position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; }
.pkg-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.pkg-list { list-style: none; }
.pkg-list li { font-size: 0.85rem; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; }
.pkg-list li:last-child { border-bottom: none; }
.pkg-list li::before { content: '\2713'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ─── CLIENTS ─── */
#clients { background: var(--bg); padding: 60px 0; }
#clients .section-label, #clients .tech-line, #clients h2, #clients p { padding: 0 5%; }
#clients p.section-desc { padding: 0 5%; margin-bottom: 32px; }
.clients-track-wrap { overflow: hidden; position: relative; margin-top: 40px; }
.clients-track-wrap::before, .clients-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.clients-track-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.clients-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.clients-track { display: flex; width: max-content; animation: clients-scroll 20s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
@keyframes clients-scroll { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.client-item { background: transparent; border: none; width: 220px; margin-right: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.client-item img { height: 144px; width: 100%; object-fit: contain; opacity: 0.9; transition: opacity 0.2s; }
.client-item:hover img { opacity: 1; }
@media (max-width: 768px) {
  .client-item { width: 130px; margin-right: 20px; }
  .client-item img { height: 96px; }
}

/* ─── CONTACT ─── */
#contact { background: var(--bg3); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 680px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail .icon { width: 36px; height: 36px; background: rgba(77,143,224,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-detail .cd-text { font-size: 0.85rem; }
.contact-detail .cd-text span { display: block; color: var(--muted); font-size: 0.72rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea { background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; padding: 12px 16px; color: var(--text); font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color 0.2s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form textarea { min-height: 100px; }
.contact-form button { background: var(--blue); color: #fff; border: none; border-radius: 7px; padding: 13px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.contact-form button:hover { background: var(--blue-soft); }

/* ─── FOOTER ─── */
footer { background: #070D1C; border-top: 1px solid var(--border); padding: 28px 5%; text-align: center; }
footer .f-logo { display: flex; justify-content: center; margin-bottom: 6px; }
footer .f-logo img { height: 22px; width: auto; opacity: 0.7; }
footer p { color: var(--muted); font-size: 0.78rem; }
.social-links { display: flex; justify-content: center; gap: 16px; margin: 12px 0; }
.social-links a { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.social-links a:hover { color: var(--blue); }
