/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #050a18;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.main-nav {
  position: relative;
  z-index: 1001;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(212, 160, 23, 0.1);
  border-radius: 50%;
  border-top: 4px solid #d4a017;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #d4a017;
  font-size: 1.1rem;
  margin-top: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Arial", sans-serif;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

:root {
  --bg-dark: #050a18;
  --nav-blue: #0b252e;
  --gold: #d4a017;
  --white: #ffffff;
}

html,
body {
  margin: 0;
  background-color: var(--bg-dark);
  font-family: "Montserrat", sans-serif;
  color: var(--white);
  overflow-x: hidden;

  width: 100%;
  max-width: 100vw; /* Ekran kengligidan oshib ketmaslik */
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.2;
}

/* --- PREMIUM HEADER SECTION --- */
.services-intro {
  padding: 100px 0 20px;
  background: linear-gradient(180deg, #0b252e 0%, #050a18 100%);
  text-align: center;
}

.premium-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 5px;
  background: linear-gradient(to right, #ffffff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Montserrat", sans-serif;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.title-separator {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto;
  border-radius: 2px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 5px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

header {
  padding: 15px 10%;
  background: var(--nav-blue);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- LOGOTIP UCHUN ANIQLASHTIRILGAN KOD --- */
/* --- Asosiy (Desktop) uchun logotip --- */
.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 23px; /* 26px dan 23px ga tushirildi */
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px; /* Harflar orasini sal ochdik, chiroyliroq turadi */
}

/* Agar .logo a degan kod bo'lsa, u shunday qolishi mumkin: */
.navbar .logo a {
  color: #ffffff !important;
  text-decoration: none;
}
.logo span.art {
  color: #52b4cd !important; /* "ART" qismi havorang */
}

.logo span.logix {
  color: #3ae06c !important; /* "Logix" qismi yashil rang */
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* --- Navbar Kontaktlari (Desktop) --- */
.mobile-contact-info {
  display: flex;
  align-items: center;
  gap: 20px; /* Telefon va email orasidagi masofa */
  margin-left: 20px;
}

.mobile-contact-info a {
  color: var(--gold) !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
}

.mobile-contact-info a:hover {
  color: var(--white) !important;
}

/* --- Til almashtirgich (Dropdown) --- */
.lang-switcher {
  position: relative;
  display: inline-block;
  z-index: 9999;
}

.lang-current {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold);
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: white;
  min-width: 60px;
  justify-content: center;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
}

.lang-list {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--nav-blue);
  border: 1px solid var(--gold);
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: none;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.lang-list.show {
  display: block;
}
.lang-list li {
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  color: white;
}
.lang-list li:hover {
  background: var(--gold);
  color: #050a18;
}
.lang-list li span {
  font-size: 18px;
}

/* --- Xizmatlar Grid --- */
.services-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  will-change: transform;
  background: #0b252e;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(0.9);
}

.info {
  padding: 25px;
  flex-grow: 1;
}
.info h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #ffffff;
}
.service-desc {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}

/* --- MODAL ASOSIY FON --- */
.modal {
  display: none;
  position: fixed;
  z-index: 11000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: #0b252e;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  border: 1px solid var(--gold);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.42, 1.22);
  opacity: 0;
  box-sizing: border-box; /* Form elementlari toshib ketmasligi uchun */
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

#modalImg {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 15px;
}

#modalTitle {
  color: var(--white);
  font-family: "Arial", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}
#modalDescription {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  color: #333;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
  background: #ff4d4d;
  color: white;
  transform: rotate(90deg);
}

/* --- Form Inputs Premium Styling --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  width: 100%;
}

.input-group {
  width: 100%;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Yuborish tugmasi Premium Styling --- */
.contact-form .custom-services-btn {
  width: 100%;
  border: none;
  margin-top: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5edcf 0%, #e1d6a6 100%);
  color: #1a1a1a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form .custom-services-btn:hover {
  background: linear-gradient(135deg, #e2d5a1 0%, #d2c593 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.5);
}

.contact-form .custom-services-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3);
}

.contact-form .custom-services-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.6s ease;
}

.contact-form .custom-services-btn:hover::after {
  left: 100%;
}

/* --- Modal "Yopish" tugmasi (Bosh sahifa bilan BIR XIL dizayn) --- */
#successModal #successBtn {
  margin-top: 25px;
  padding: 12px 35px; /* Bosh sahifadagi ixcham padding */
  background-color: var(
    --gold
  ) !important; /* Toza oltin rang - Gradient EMAS */
  background-image: none !important; /* Gradientni majburan o'chiramiz */
  color: var(--bg-dark) !important; /* Matn to'q ko'k rangda */
  border: none;
  border-radius: 8px; /* Burchaklari sal yumshoqroq */
  font-size: 1rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.2);

  /* Muhim: Tugma ekranga yoyilib ketmasligi uchun */
  display: inline-block;
  width: auto !important;
  white-space: nowrap; /* Matn bir qatorda turishi uchun */
}

#successModal #successBtn:hover {
  background-color: #b58812 !important; /* Hoverda sal to'qlashadi */
  transform: translateY(-3px); /* Tepaga ko'tariladi */
  box-shadow: 0 6px 15px rgba(212, 160, 23, 0.4);
}

#successModal #successBtn:active {
  transform: translateY(-1px);
}

/* Tugmadagi yaltirash (shimmer) effektini o'chirish (chunki u faqat formaga kerak) */
#successModal #successBtn::after {
  display: none !important;
}

/* --- Footer Styling --- */
.site-footer {
  background-color: #e1e1e1;
  padding: 40px 0 15px 0;
  margin-top: 50px;
  color: #1a1a1a;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo {
  font-size: 24px;
  margin-bottom: 15px;
  color: #050a18;
  font-weight: 800;
}
.footer-logo span {
  color: #d4a017;
}
.footer-info {
  flex: 1;
  text-align: left;
}
.footer-info p,
.footer-info a {
  color: #333;
  text-decoration: none;
  margin: 3px 0;
  font-size: 0.9rem;
}
.footer-info h2 a {
  font-size: 1.5rem;
}
.footer-address {
  margin-top: 15px;
}
.footer-info a:hover {
  color: #000;
  font-weight: bold;
}
.requisites-card {
  background: rgba(0, 0, 0, 0.04);
  padding: 15px 20px;
  border-radius: 10px;
  border-left: 4px solid #050a18;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: fit-content;
}
.requisites-card p {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #1a1a1a;
  margin: 4px 0;
  line-height: 1.4;
}
.requisites-card strong {
  color: #050a18;
}
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  color: #777;
}

/* --- Burger Menu va Mobil Moslashuvlar --- */
.burger {
  display: none;
  cursor: pointer;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 992px) {
  .nav-links {
    gap: 15px;
  }
  .mobile-contact-info {
    display: none;
  } /* O'rta ekranlarda ham sig'ishi uchun kontaktlarni yashiramiz */
}

@media screen and (max-width: 768px) {
  .burger {
    display: block;
    z-index: 1001;
  }
  .lang-switcher {
    margin-left: 0;
    margin-right: 25px;
  }
  .lang-current {
    padding: 6px 12px;
    font-size: 13px;
  }

  .logo {
    font-size: 20px; /* Mobilda til va menyu knopkalariga xalaqit bermasligi uchun */
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 65px;
    background-color: var(--nav-blue);
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    border-bottom: 2px solid var(--gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1000;
  }

  .nav-links.nav-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links li {
    margin: 15px 0;
  }

  .mobile-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 15px 0 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
  }

  .mobile-contact-info a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
    font-weight: 400;
  }

  .mobile-contact-info a:hover {
    color: var(--gold) !important;
  }

  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger.toggle .line2 {
    opacity: 0;
  }
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-info {
    text-align: center;
    margin-bottom: 30px;
  }
  .footer-requisites {
    flex: 1;
    width: 100%;
  }
  .requisites-card {
    margin: 0 auto;
  }
}



/* --- Floating Action Buttons --- */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0px 10px 20px rgba(250, 134, 0, 0.4);
  cursor: pointer;
  z-index: 9999;
  border: none;
  transition: all 0.3s ease;
}

/* Back to Top (Desktop version) */
.back-to-top {
  background-color: var(--gold);
  color: var(--bg-dark);
  opacity: 0;
  visibility: hidden;
}

/* Class added by JS when scrolling down */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #f6b000;
  transform: translateY(-5px);
}

/* Mobile Call Button (Hidden on Desktop by default) */
/* Mobile Call Button (Hidden on Desktop by default) */
.mobile-call {
  display: none;
  background-color: #25D366; /* WhatsApp/Phone green color */
  color: white;
  /* Stronger outer shadow */
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
  /* Pulsing animation */
  animation: pulse-shadow 2s infinite; 
}

/* --- Pulse Animation for Mobile Call Button --- */
@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- Media Query for Mobile (max-width: 768px) --- */
@media screen and (max-width: 768px) {
  .back-to-top {
      display: none !important; /* Hide Back to Top button on mobile */
  }
  
  .mobile-call {
      display: flex !important; /* Show Call button on mobile */
  }
}