/* Custom BPG font - load from local fonts folder */
@font-face {
  font-family: 'bpg';
  src: url('../fonts/bpg.woff2') format('woff2'),
       url('../fonts/bpg.woff') format('woff'),
       url('../fonts/bpg.ttf') format('truetype'),
       url('../fonts/bpg.eot') format('embedded-opentype'),
       url('../fonts/bpg.svg#bpg') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Apply BPG font globally */
body, h1, h2, h3, h4, h5, h6, button, input, textarea, select, a, p, li, ul, ol, span, div {
  font-family: 'bpg', Arial, sans-serif;
}
@font-face {
  font-family: "BPG";
  src: url('../fonts/bpg.woff2') format('woff2'),
       url('../fonts/bpg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}




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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "BPG", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow: auto;
}



/* ========== HEADER LAYOUT (fixed, flex row, responsive) ========== */
/* Header baseline (fixed, above content) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Header height variable used when centering full-screen sections */
:root { --header-height: 80px; }
@media (max-width: 768px) { :root { --header-height: 64px; } }

/* If page contains .about-content, center that block in the viewport while
   keeping the inner frame shrink-to-fit. Uses modern :has() to scope safely. */
body:has(.about-content) {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  box-sizing: border-box;
}

/* Ensure the about frame itself remains shrink-to-fit and centered */
.about-content {
  max-width: 820px;
  padding: 20px;
  margin: 0 auto;
  background: rgba(0,0,0,0.18);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  text-align: center;
  position: relative;
  z-index: 1;
}


.nav-links a {
  color: #F5F7FB;
  text-decoration: none;
  opacity: 0.92;
  padding: 8px 6px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 180ms ease, text-shadow 180ms ease;
  position: relative;
  display: inline-block;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #FFFFFF;
  text-shadow: 0 6px 18px rgba(201,169,79,0.06);
}

.nav-links a.active {
  opacity: 1;
  border-bottom: none; /* avoid layout shift */
  padding-bottom: 8px; /* keep spacing stable */
}

.nav-links a.active::after {
  width: 100%;
}


/* Ensure header content sits inside a centered container */
header > nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height, 80px);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

/* Layout helpers: logo left, links centered, controls right */
.logo { flex: 0 0 auto; display: flex; align-items: center; }
.nav-links { flex: 1 1 auto; justify-content: center; }
.nav-controls { flex: 0 0 auto; display: flex; align-items: center; }

/* Add breathing room between left and right groups on desktop */
@media (min-width: 992px) {
  header > nav { padding: 0 2rem; }
  .logo { margin-right: 1rem; }
  .nav-controls { margin-left: 1rem; }
}

.hero-title.hero-stack > span {
  letter-spacing: 0;     /* ნორმალური */
  transform: none;       /* არცერთი ტრანსფორმაცია */
  line-height: 1.1;
}

/* Ensure the hero title uses the display-capable font */
.hero-title {
  font-family: "BPG Nateli", sans-serif;
  line-height: 1.15;
}

/* Wrapper */
.hero-inner {
  max-width: clamp(420px, 60vw, 850px);
  padding: 0 20px;
}

.hero-title.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-title.hero-stack > span {
  display: inline-block;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

@media (max-width: 600px) {
  .hero-title.hero-stack {
    flex-direction: column;
    align-items: center;
  }
  .hero-title.hero-stack > span {
    display: block;
  }
}

/* ========== LANGUAGE SWITCH ========== */

.lang-dropdown {
  position: relative;
}

/* === MAIN BUTTON (PILL) === */
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);

  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.lang-current:hover {
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}

.lang-current img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.lang-text {
  font-size: 13px;
  font-weight: 500;
}

.arrow {
  font-size: 10px;
  opacity: 0.7;
}

/* === DROPDOWN MENU === */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 6px 0;
  list-style: none;
  min-width: 110px;
  display: none;
  border: 1px solid rgba(255,255,255,0.15);
}

.lang-dropdown.open .lang-menu {
  display: block;
}



.lang-dropdown {
  z-index: 9999;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}

.lang-menu li img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.lang-menu li:hover {
  background: rgba(255,255,255,0.08);
}


/* ========== HAMBURGER ========== */
/* Merge .hamburger rules */
.hamburger {
  display: none; /* shown via media query */
  width: 32px; /* overall icon width */
  padding: 6px 4px;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px; /* even gap between lines */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px; /* balanced thickness */
  background: #fff;
  border-radius: 2px;
  transition: transform 0.18s cubic-bezier(.2,.7,.2,1), opacity 0.18s ease;
}

.hamburger:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* ========== HERO SECTION (cleaned, valid CSS) ========== */

#hero {
  margin-top: 60px;
  min-height: calc(100vh - var(--header-height, 80px));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-inner {
  max-width: clamp(420px, 60vw, 1000px);
  padding: 0 20px;
}

.hero-title.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-title.hero-stack > span {
  display: inline-block;
  letter-spacing: 0;
  transform: none;
  line-height: 1.1;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

@media (max-width: 600px) {
  .hero-title.hero-stack { flex-direction: column; align-items: center; }
  .hero-title.hero-stack > span { display: block; }
}

/* per-line sizes (optional overrides) */
.hero-title .line-1 { font-size: 1.4rem; }
.hero-title .line-2, .hero-title .line-3 { font-size: 2.4rem; }
.hero-title .line-4 { font-size: 1.8rem; }

.hero-title { font-family: "BPG Nateli", sans-serif; line-height: 1.15; }

/* ===== SUBTEXT ===== */

.hero-text {
  font-size: clamp(0.88rem, 1.6vw, 1.02rem); /* slightly smaller than headings */
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92); /* ensure legible against background */
  margin: 0 0 24px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: block; /* explicit so it's not hidden by other rules */
  z-index: 2; /* sit above background canvas */
}

/* ========== SECTIONS ========== */

.section {
  padding: 100px 20px;
  background: transparent;
  color: #fff;
  backdrop-filter: blur(1.5px);
}

.container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.section-text {
  max-width: 650px;
  margin: auto;
  line-height: 1.5;
  opacity: 0.85;
}

/* ========== SERVICES ========== */

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.service-card {
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

/* ===== Services blog-style card layout (scoped) ===== */
.services-blog .services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

.services-blog .service-card {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
}
.service-card {
  padding: 40px 30px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(219, 192, 102, 0.8);
  box-shadow: 0 0 40px rgba(219, 192, 102, 0.25);
}

/* ===== SERVICE TITLE FIX ===== */

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;

  white-space: nowrap;        /* ერთ ხაზზე */
}

.service-card p {
  text-align: center;
  margin: 0 auto;
  max-width: 260px;
  opacity: 0.9;
}

/* ================= CALCULATOR MODAL ================= */
.calc-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 1200;
  backdrop-filter: blur(4px);
}
.calc-modal.open { display: flex; }
.calc-panel {
  width: 92%;
  max-width: 980px;
  background: linear-gradient(180deg, #0f1114 0%, #0b0c0e 100%);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  color: #e6eef8;
  transform: translateY(12px);
  transition: transform 240ms ease, opacity 220ms ease;
}
.calc-panel .panel-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
.calc-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.calc-title { font-size:1.25rem; font-weight:700; }
.calc-close { background:transparent; border:0; color:inherit; font-size:1.1rem; cursor:pointer }
.calc-step { background: rgba(255,255,255,0.02); padding:14px; border-radius:8px; margin-bottom:12px; }
.calc-step h4 { margin:0 0 8px 0; font-size:0.95rem }
.options { display:flex; flex-wrap:wrap; gap:10px }
.option { padding:8px 12px; background: rgba(255,255,255,0.02); border-radius:8px; cursor:pointer; border:1px solid transparent; transition: all 160ms ease }
.option.active {
  /* selected option: subtle gold accents (brand #C9A94F) */
  background: linear-gradient(90deg, rgba(201,169,79,0.10), rgba(201,169,79,0.06));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(201,169,79,0.06), 0 6px 18px rgba(0,0,0,0.5);
}
.option input { display:none }

/* Use native accent-color for checkboxes/radios where supported */
.calc-panel input[type="checkbox"], .calc-panel input[type="radio"] {
  accent-color: #C9A94F;
}

/* Range input (slider) styling: thumb and track use subtle gold */
.calc-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}
.calc-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}
.calc-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #C9A94F;
  box-shadow: 0 4px 10px rgba(201,169,79,0.18);
  border: 2px solid rgba(0,0,0,0.24);
}
.calc-panel input[type="range"]::-moz-range-track { height:6px; background: rgba(255,255,255,0.06); border-radius:6px }
.calc-panel input[type="range"]::-moz-range-thumb { width:14px; height:14px; border-radius:50%; background:#C9A94F; box-shadow: 0 4px 10px rgba(201,169,79,0.18); border:2px solid rgba(0,0,0,0.24); }

/* Hover / focus states with subtle gold glow */
.option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201,169,79,0.06), 0 6px 18px rgba(0,0,0,0.5);
}
.option:focus-visible, .option input:focus-visible, .calc-panel .option:focus {
  outline: 3px solid rgba(201,169,79,0.12);
  outline-offset: 2px;
}

/* Ensure calc summary price and CTA emphasis uses accessible gold contrast */
.price { color: #EAE6D8; }
.btn.primary { background: linear-gradient(90deg,#C9A94F,#D6C28A); color: #061122; }
.feature-row { display:flex; align-items:center; gap:10px; padding:8px 6px; }
.feature-row input[type=checkbox] { width:18px; height:18px }
.calc-summary { padding:14px; background: linear-gradient(180deg,#071018,#081219); border-radius:8px; border:1px solid rgba(255,255,255,0.03); }
.price { font-size:1.6rem; font-weight:800; color:#bfe9ff; margin-bottom:6px }
.summary-list { font-size:0.95rem; color:#c9d9e8; margin-bottom:12px; text-align:left }
.calc-cta { display:flex; gap:10px; justify-content:flex-end }
.btn.primary { background: linear-gradient(90deg,#5b7bff,#00d4ff); color:#061122; padding:10px 14px; border-radius:8px; text-decoration:none }
.btn.ghost { background:transparent; border:1px solid rgba(255,255,255,0.06); color:#cfe6ff; padding:10px 14px; border-radius:8px; text-decoration:none }

/* Responsive */
@media (max-width:900px){
  .calc-panel .panel-grid{ grid-template-columns: 1fr; }
  .calc-panel{ padding:18px }
  .calc-cta{ justify-content:stretch; flex-direction:column-reverse }
}


.services-blog .service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.services-blog .card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-blog h3 {
  margin: 0;
  font-size: 1.125rem;
}

.services-blog p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
}

.services-blog .card-btn {
  display: inline-block;
  margin-top: auto;
  align-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #d6c28a;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.18s ease, transform 0.18s ease;
}

.services-blog .card-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.services-blog .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

/* Responsive grid: tablet (2 columns) and desktop (3 columns) */
@media (min-width: 700px) {
  .services-blog .services-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 992px) {
  .services-blog .services-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ========== PORTFOLIO ========== */

.portfolio-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

/* ========== CONTACT ========== */

.contact-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s ease;
}

.contact-btn:hover {
  background: #fff;
  color: #000;
}

/* ========== FOOTER ========== */

.footer {
  padding: 120px 0 60px;
  background: linear-gradient(to top, #000 60%, #050505 100%);
}


/* ========== MOBILE ========== */

@media (max-width: 768px) {

  header {
    height: 64px;
  }

  nav {
    padding: 0.7rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  .logo img {
    height: 32px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
    gap: 1.5rem;
    padding: 0; /* Remove extra padding for perfect centering */
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  #hero {
    margin-top: 48px;
    min-height: calc(100vh - 64px);
  }

  .hero-title.hero-stack > span {
    font-size: clamp(1rem, 4.5vw, 1.6rem);
  }


  .hero-text {
    font-size: 0.95rem;
  }
}

/* ========== LAYERS ========== */

#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

header {
  position: fixed;
  z-index: 1000;
}

section,
footer {
  position: relative;
  z-index: 1;
}

.lang-dropdown {
  position: relative;
  z-index: 9999;
}

/* ========== LOGO ========== */

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ========== HERO BUTTONS ========== */


/* HERO BUTTONS FLEX LAYOUT */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    gap: 18px;
  }
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #d6c28a;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 8px 22px rgba(0,0,0,0.5);
  transition:
    transform 220ms cubic-bezier(.2,.9,.2,1),
    box-shadow 220ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, box-shadow;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform: translateZ(0);
}


/* Make button a positioning context for the right-arrow, keep visual styles intact */
.hero-link { position: relative; }

/* Button-specific text (avoid colliding with global `.hero-text`) */
.hero-btn-text {
  display: inline-block;
  text-align: center;
  line-height: 1;
  color: #d6c28a; /* gold tone matching other buttons */
  font-weight: 500;
  padding-right: 34px; /* reserve space for the right-arrow so text appears visually centered */
}

/* Right arrow placed inside the button, vertically centered */
.hero-arrow {
  position: absolute;
  right: 12px; /* aligns with button padding */
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-link:hover {
  background: rgba(255,255,255,0.14);
  color: #f1e3b0;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 14px 30px rgba(0,0,0,0.6);
}

.hero-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  object-fit: contain;
  opacity: 0.9;
}

.hero-link:hover .hero-icon {
  transform: scale(1.06);
  transition: transform 0.25s ease;
}


#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.about-content {
  /* frame should wrap content only */
  height: auto; /* do not force full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.about-intro {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.about-list {
  text-align: left;
  margin: 20px auto;
  padding-left: 20px;
  max-width: 500px;
}

.about-list li {
  margin-bottom: 10px;
  font-size: 17px;
  opacity: 0.95;
}

.about-end {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.9;
}
/* ================= ABOUT PAGE ================= */

html, body {
  height: 100%;
}



#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.about-content {
  /* Visual frame that wraps the content. Keep it compact and centered. */
  max-width: 700px;
  padding: 20px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
  background: rgba(0,0,0,0.18);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  text-align: center;
}

.about-list {
  list-style: disc;
  padding-left: 20px;
  text-align: left;
  margin: 20px 0;
}

.about-list li {
  margin-bottom: 10px;
}

/* === Fixes: ensure page scroll and consistent base font === */
html, body {
  height: auto; /* allow natural height */
}

body {
  overflow: auto !important; /* re-enable scrolling (was hidden in duplicate rules) */
  font-family: "BPG Nateli", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === About page cloud background: authoritative restore === */
/* Ensures VANTA.CLOUDS canvas is visible, positioned, and non-interactive */
#background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* sit behind content but above base background */
  pointer-events: none;
  opacity: 1;
}

#background > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0.95; /* subtle translucency to blend with page */
}

.about-content {
  position: relative;
  z-index: 1; /* ensure content sits above background */
}
/* ===== MOBILE MENU STYLE ===== */
@media (max-width: 991px)
 {

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.3s ease;
  }

  .nav-links a:hover {
    color: #00e0b8;
    transform: translateY(-3px);
  }

}

@media (min-width: 992px) {

  header { height: 90px; }

  header > nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
  }

  .hamburger { display: none; }

  /* 🔥 ეს ნაწილი აკლია */
  .nav-links {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: auto;
  }

}


/* ===== ROBUSTNESS PATCH: prevent clipping and stacking issues for underlines ===== */
/* Production-safe: keeps layout unchanged, resists transforms/filters/backdrop-filter */
/* ===== ROBUSTNESS PATCH ===== */
/* Prevent clipping & stacking issues for pseudo underlines */

header,
header > nav,
.nav-links {
  overflow: visible;
}

.nav-links a {
  position: relative;
  display: inline-block;
  z-index: 2;
  overflow: visible;
  -webkit-font-smoothing: antialiased;
}


.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px; /* places the underline just below the text */
  width: 0;
  height: 1.5px; /* very thin */
  background: linear-gradient(90deg, #C9A94F 0%, #D6C28A 100%);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(201,169,79,0.08), 0 0 8px rgba(214,194,138,0.06);
  filter: blur(0.35px); /* subtle halo */
  transition: width 220ms cubic-bezier(.2,.9,.2,1);
  will-change: width;
  pointer-events: none;
  transform: translateZ(0); /* promote to its own compositing layer */
  z-index: 1; /* under text, above backgrounds */
  display: block;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

/* Decorative divider for main hero title (short, centered, subtle glow) */
.hero-title .line-1 {
  display: inline-block;
  position: relative;
}

.hero-title .line-1::after {
  content: "";
  display: block;
  width: clamp(60px, 10vw, 90px);
  height: 1.5px;
  margin: 16px auto 0; /* spacing below heading (14-20px) */
  background: linear-gradient(90deg, #C9A94F 0%, #D6C28A 100%);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(201,169,79,0.08), 0 0 8px rgba(201,169,79,0.06);
  filter: blur(0.36px);
  transform: translateZ(0);
  pointer-events: none;
}

@media (max-width: 420px) {
  .hero-title .line-1::after {
    width: 60px;
    margin-top: 14px;
    height: 1px;
  }
}

/* Move decorative divider from small pre-title (.line-1) to large main heading (.line-2) */
/* Hide previous .line-1 divider to avoid duplicate lines */
.hero-title .line-1::after { display: none !important; }

.hero-title {
  position: relative;
}

.hero-title::after {
  content: "";
  display: block;
  width: clamp(70px, 8vw, 100px); /* 70–100px responsive */
  height: 1.5px; /* thin (1–2px) */
  margin: 24px auto 0; /* 20–28px spacing */
  background: linear-gradient(90deg, #C9A94F 0%, #D6C28A 100%);
  border-radius: 2px;
  box-shadow:
    0 8px 20px rgba(201,169,79,0.08),
    0 0 10px rgba(214,194,138,0.06);
  filter: blur(0.36px); /* soft glow */
  pointer-events: none;
  transform: translateZ(0); /* stable rendering */
}

/* Small screens tweak */
@media (max-width: 420px) {
  .hero-title::after {
    width: 70px;
    margin-top: 20px;
    height: 1px;
  }
}

/* ===== Desktop alignment fixes (no mobile changes) ===== */
@media (min-width: 1024px) {

  :root { --header-height: 90px; }

  #hero {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-inner {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

}


/* ===== HERO CTA: refined premium hover + active micro-interactions ===== */
/* Increased hover scale (1.06), slightly stronger glow, 220ms easing. */
.hero-link {
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms cubic-bezier(.2,.9,.2,1);

  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
}

/* Apply hover interactions only on devices that support hover (avoid touch zoom/jump) */
@media (hover: hover) and (pointer: fine) {
  .hero-link:hover {
    transform: scale(1.05);
 /* subtle, elegant emphasis */
    box-shadow: 0 16px 42px rgba(228, 204, 137, 0.14), 0 8px 22px rgba(0,0,0,0.38); /* ~15-20% stronger glow */
  }

  .hero-link:active {
    transform: translateY(0) scale(0.98); /* press effect */
    transition-duration: 120ms;
    box-shadow: 0 6px 18px rgba(228, 204, 137, 0.08), 0 2px 8px rgba(0,0,0,0.32);
  }
}

/* On touch devices, avoid hover scaling to keep interaction stable */
@media (hover: none) and (pointer: coarse) {
  .hero-link:hover,
  .hero-link:active {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-link { 
    transition: none !important; 
    transform: none !important; 
    box-shadow: none !important; 
  }
}

.portfolio-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

/* CARD */
.category-card {
  position: relative;
  height: 260px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;

  /* glass effect */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);

  /* ოქროსფერი ხაზი */
  border: 1px solid rgba(212,175,55,0.6);

  /* subtle glow */
  box-shadow:
    0 0 15px rgba(212,175,55,0.15),
    0 15px 40px rgba(0,0,0,0.6);

  transition: 0.4s ease;
}

/* gradient overlay */
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.45)
  );
  transition: 0.3s ease;
}

/* TEXT */
.category-card h2 {
  position: relative;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
  z-index: 2;
}

/* HOVER EFFECT */
.category-card:hover {
  transform: translateY(-10px);

  border-color: rgb(228, 204, 137);

  box-shadow:
    0 0 30px rgba(228, 204, 137, 0.4),
    0 25px 60px rgba(0,0,0,0.7);
}

.category-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.35)
  );
}

/* MOBILE */
@media (max-width: 800px) {
  .portfolio-categories {
    grid-template-columns: 1fr;
  }
}
/* FORCE CENTER CONTACT CARD */
.contact-card {
  width: 100%;
  max-width: 620px;
  margin: 120px auto !important;
  padding: 70px 40px !important;
  text-align: center !important;
  background: rgba(20, 25, 40, 0.85) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* FIX LINKS */
.contact-card a {
  color: #d6c382 !important;
  text-decoration: none;
}

.contact-card a:hover {
  opacity: 0.8;
}

/* CENTER SOCIAL ICONS */
.social-links {
  display: flex !important;
  justify-content: center !important;
  gap: 25px;
  margin-top: 25px;
}
/* ===== SERVICES CTA ===== */

.services-cta {
  margin-top: 70px;
  display: flex;
  justify-content: center;
}

.services-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 14px 32px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;

  text-decoration: none;
  color: #d6c28a;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);

  /* მუდმივი depth */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 8px 22px rgba(0,0,0,0.45);

  transition: 
    transform 220ms cubic-bezier(.2,.9,.2,1),
    box-shadow 220ms cubic-bezier(.2,.9,.2,1),
    background 220ms ease;
}

/* ===== ARROW ===== */

.services-btn .arrow {
  font-size: 16px;
  font-weight: 700;

  color: transparent;
  -webkit-text-stroke: 1px #d6c28a;

  text-shadow: 0 0 6px rgba(214,194,138,0.5);

  transition: 
    transform 220ms cubic-bezier(.2,.9,.2,1),
    text-shadow 220ms ease;
}

/* SERVICES */
.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}


/* SERVICE CARD */
.service-card {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #e0c16c;
  box-shadow: 0 10px 30px rgba(0, 198, 255, 0.2);
}

.service-icon {
  width: 60px;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* CTA */
.services-cta {
  text-align: center;
  margin-top: 3rem;
}

.services-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.services-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 114, 255, 0.3);
}

#contact .contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 500;
  text-decoration: none;

  color: #ccad57;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);

  /* შევინარჩუნეთ depth მაგრამ მოვაშორეთ shine */
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);

  backdrop-filter: blur(3px);

  transition: transform 220ms cubic-bezier(.2,.9,.2,1),
              box-shadow 220ms cubic-bezier(.2,.9,.2,1);
}

#contact .contact-btn:hover {
  transform: translateY(-3px);

 border: 1px solid rgba(255,255,255,0.45);

}
.contact-btn {
  gap: 8px;
}

.contact-btn .arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.contact-btn:hover .arrow {
  transform: translateX(4px);
}
.footer-bg-image {
  position: absolute;
  bottom: -80px;              /* ოდნავ ამოწეული */
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  height: 40vh;               /* ნაკლები სიმაღლე */

  background: url("../images/earth.png") bottom center no-repeat;
  background-size: contain;   /* cover აღარ */

  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}
.footer .container {
  position: relative;
  top: -80px;
}
/* ==== FORCE IMAGE FIX ==== */

.code-section {
  padding: 120px 20px;
  background: #000;
  overflow-x: hidden;
}

.code-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.code-card {
  flex: 1 1 300px;
  max-width: 350px;
}

.code-card img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}
@media (max-width: 768px) {
  .code-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .code-card {
    width: 100%;
    max-width: 420px;
  }
}
.code-section {
  padding: 140px 20px;
  background: #000;
}

.code-wrapper {
  display: flex;
  gap: 80px;              /* 🔥 მეტი დაშორება */
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 80px;       /* ზემოდან ჰაერი */
}




.code-btn {
  position: relative;
  flex: 0 1 320px;
  height: 420px;
  border-radius: 24px;

  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: #000;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 25px;

  border: none;
  box-shadow: none;

  cursor: default; /* აღარ იქნება ხელი */
}

/* ტექსტი მკვეთრი */
.code-btn span {
  color: #d6c28a;
  font-weight: 500;
  font-size: 15px;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {

  .code-wrapper {
    display: flex;
    justify-content: space-between;  /* აღარ იქნება პატარა შუაში */
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 120px auto;
  }

  .code-btn {
    flex: 1;
    height: 520px;   /* 🔥 გავზარდეთ */
    max-width: 380px;
  }

  .code-btn span {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .code-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 100px;
  }

  .code-btn {
    width: 100%;
    max-width: 420px;
  }
}

/* =========================
   SLIDER FIX
========================= */

.projects-slider > div {
  display: flex !important;
}

/* =========================
   WHATSAPP WIDGET
========================= */

.wa-widget{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

/* popup */
.wa-popup{
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  margin-bottom: 12px;
  overflow: hidden;
  display: none;
}

/* header */
.wa-header{
  background: #075E54;
  color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
}

.wa-avatar img{
  width: 34px;
  height: 34px;
}

.wa-title span{
  font-size: 12px;
  opacity: .8;
  display: block;
}

.wa-close{
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* body */
.wa-body{
  padding: 16px;
  font-size: 14px;
  color: #333;
}

/* button */
.wa-btn{
  display: block;
  background: #25D366;
  color: #fff;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-weight: bold;
}

.wa-float{
  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: rgba(20, 20, 20, 0.85); /* dark glass */
  backdrop-filter: blur(8px);

  border: 1px solid rgba(214, 194, 138, 0.3); /* subtle gold border */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    0 0 15px rgba(214,194,138,0.15); /* subtle gold glow */

  transition: all 0.3s ease;
}

.wa-float:hover{
  transform: scale(1.08);
  box-shadow:
    0 15px 40px rgba(0,0,0,0.7),
    0 0 25px rgba(214,194,138,0.35);
}

.wa-float img{
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1); /* სუფთა თეთრი */
}


.wa-slide-hint {
  position: fixed;
  bottom: 40px;
  right: 90px;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13px;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.5s ease;
  z-index: 9999;
}

.wa-slide-hint.show {
  opacity: 1;
  transform: translateX(0);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.wa-float.shake {
  animation: shake 0.6s ease-in-out 3;
}
.wa-slide-hint span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.wa-slide-hint:hover span {
  transform: translateX(4px);
}
.wa-slide-hint span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.wa-slide-hint:hover span {
  transform: translateX(4px);
}
