/* ==========================================================================
   LK GROUP - MAIN STYLESHEET
   Accurate 1:1 Figma Implementation
   Ready for Standalone Web & DataLife Engine (DLE) Integration
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700;800;900&display=swap');

/* --- Design Tokens / CSS Variables --- */
:root {
  --font-family: 'Noto Sans Georgian', 'BPG Nino Mtavruli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Palette from Figma Design */
  --color-primary: #fc791b;        /* Brand Orange */
  --color-primary-hover: #e06610;
  --color-dark: #28292c;           /* Main Dark (Navbar, Bottom bars) */
  --color-darker: #131316;         /* Secondary Dark (Prev button) */
  --color-dark-pill: #37393e;      /* Language toggle background */
  --color-white: #ffffff;
  --color-text-main: #000000;
  --color-text-muted: #52555a;
  --color-text-light: #adafb6;
  --color-gray-bg: #f0f0f0;        /* Services curved wave background */
  --color-card-bg: #d9d9d9;        /* Stats Card background from Figma */
  
  /* Layout Dimensions */
  --max-width-navbar: 1400px;
  --max-width-container: 1800px;
  --max-width-content: 1400px;
  --header-height: 84px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 60px;
}

/* ==========================================================================
   HEADER / FLOATING NAVBAR
   ========================================================================== */
.header-wrapper {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  max-width: var(--max-width-navbar);
  width: calc(100% - 48px);
  height: var(--header-height);
  margin: 0 auto;
  background: var(--color-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 41, 44, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: 36px;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

/* Nav Menu Links */
.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  padding: 8px 4px;
  position: relative;
  letter-spacing: 0.2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  background: var(--color-dark-pill);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  height: 30px;
}

.lang-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 2px 8px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.lang-btn:hover:not(.active) {
  color: var(--color-white);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: transparent;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   HERO / SWIPER SECTION
   ========================================================================== */
.hero-swiper-section {
  position: relative;
  width: 100%;
  height: 779px;
  overflow: hidden;
  background-color: var(--color-dark);
}

.swiper-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.swiper-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Dark overlay from Figma (fill: rgba(0,0,0,0.61)) */
.swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.61);
}

.hero-content {
  position: absolute;
  top: 269px;
  left: 340px;
  max-width: 732px;
  z-index: 2;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: 22px;
}

.hero-description {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-white);
  max-width: 549px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  height: 48px;
  min-width: 221px;
  padding: 0 35px;
  border-radius: 5px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(252, 121, 27, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 121, 27, 0.4);
}

/* Swiper Navigation (Bottom Right Corner: Prev & Next) */
.hero-controls {
  position: absolute;
  bottom: 8px; /* Above 8px progress bar */
  right: 0;
  display: flex;
  align-items: flex-end;
  z-index: 10;
}

.btn-prev {
  background: var(--color-darker);
  color: var(--color-white);
  height: 51px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.btn-prev:hover {
  background: #202026;
}

.btn-next {
  background: var(--color-dark);
  color: var(--color-white);
  height: 70px;
  width: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.btn-next:hover {
  background: #34363a;
}

.hero-controls svg {
  width: 14px;
  height: 14px;
}

/* Swiper Bottom Progress Bar */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--color-dark);
  z-index: 15;
}

.hero-progress-active {
  height: 100%;
  width: 33.33%;
  background: var(--color-primary);
  transition: width 0.5s ease-in-out;
}

/* ==========================================================================
   STATISTICS / COUNTERS SECTION
   ========================================================================== */
.stats-section {
  padding: 44px 0 60px;
  background-color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
}

.stat-card {
  background: var(--color-card-bg);
  border-radius: 10px;
  height: 149px;
  display: flex;
  align-items: center;
  padding: 0 44px;
  gap: 24px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper svg,
.stat-icon-wrapper img {
  width: 32px;
  height: 32px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-primary);
}

.stat-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   SERVICES SECTION ("ჩვენი სერვისები")
   ========================================================================== */
.services-section {
  position: relative;
  padding: 76px 0 100px;
  margin-top: 20px;
}

/* Organic curved background shape from Figma */
.services-bg-shape {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1920px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/images/services-bg.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.services-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1730px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  color: var(--color-text-main);
  margin-bottom: 50px;
  letter-spacing: -0.3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 75px;
  align-items: flex-start;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 15px;
  transition: transform var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon-box {
  width: 77px;
  height: 77px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08);
}

.service-icon-box img,
.service-icon-box svg {
  width: 77px;
  height: 77px;
}

.service-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.service-description {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-main);
  max-width: 448px;
}

/* ==========================================================================
   PROJECTS SECTION ("კმაყოფილი კლიენტები")
   ========================================================================== */
.projects-section {
  padding: 90px 0 70px;
  background-color: var(--color-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
  max-width: 1800px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 586px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.05);
}

/* Project Action (Eye Button at Top Right) */
.project-action-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.project-action-btn:hover {
  background: var(--color-primary);
}

.project-action-btn img,
.project-action-btn svg {
  width: 24px;
  height: 24px;
}

/* Bottom Bar */
.project-bottom-bar {
  position: relative;
  z-index: 4;
  background: var(--color-dark);
  min-height: 125px;
  display: flex;
  align-items: center;
  padding: 24px 43px;
}

.project-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--color-primary);
}

/* ==========================================================================
   PARTNERS SECTION ("პარტნიორი")
   ========================================================================== */
.partners-section {
  padding: 60px 0 90px;
  background-color: var(--color-white);
}

.partners-carousel-wrapper {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #f0f0f0;
  padding: 15px 0 25px;
}

.partners-carousel-wrapper::-webkit-scrollbar {
  height: 6px;
}

.partners-carousel-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.partners-carousel-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 1400px;
}

.partner-card {
  width: 224px;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

/* ==========================================================================
   FOOTER (Designed in LK Group Theme)
   ========================================================================== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 70px 0 30px;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about .footer-logo {
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-column-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 14px;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-contact-list strong {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-light);
}

/* ==========================================================================
   MODAL / LIGHTBOX (Interactive Preview)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  background: var(--color-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: var(--color-primary);
}

.modal-body img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.modal-footer {
  padding: 24px 30px;
  background: var(--color-dark);
}

.modal-title {
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1600px) {
  .hero-content {
    left: 120px;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }

  .navbar {
    width: calc(100% - 30px);
    padding: 0 20px;
  }

  .navbar-nav {
    gap: 20px;
  }

  .hero-content {
    left: 60px;
    top: 220px;
  }

  .hero-title {
    font-size: 34px;
  }

  .stats-grid {
    gap: 25px;
  }

  .stat-card {
    padding: 0 25px;
    height: 130px;
  }

  .stat-number {
    font-size: 30px;
  }

  .stat-label {
    font-size: 16px;
  }

  .services-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  /* Mobile Navigation Drawer */
  .mobile-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 25px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 95;
  }

  .navbar-nav.open {
    right: 0;
  }

  .nav-link {
    font-size: 16px;
  }

  .hero-swiper-section {
    height: 650px;
  }

  .hero-content {
    left: 30px;
    right: 30px;
    top: 180px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-card {
    height: 110px;
    padding: 0 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-description {
    max-width: 600px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-card {
    height: 480px;
  }
}

@media (max-width: 640px) {
  .header-wrapper {
    top: 12px;
  }

  .navbar {
    height: 64px;
    width: calc(100% - 24px);
    padding: 0 15px;
  }

  .navbar-logo img {
    height: 28px;
  }

  .hero-swiper-section {
    height: 580px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    top: 130px;
  }

  .hero-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .btn-primary {
    min-width: 180px;
    height: 44px;
    font-size: 14px;
  }

  .hero-controls {
    bottom: 8px;
  }

  .btn-prev {
    width: 90px;
    height: 44px;
    font-size: 14px;
  }

  .btn-next {
    width: 120px;
    height: 54px;
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 35px;
  }

  .service-title {
    font-size: 26px;
  }

  .project-card {
    height: 380px;
  }

  .project-bottom-bar {
    padding: 16px 20px;
    min-height: 90px;
  }

  .project-title {
    font-size: 18px;
  }

  .project-action-btn {
    width: 54px;
    height: 54px;
  }

  .project-action-btn img,
  .project-action-btn svg {
    width: 18px;
    height: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
