/* ==========================================================================
   1. ASOSIY SOZLAMALAR VA O'ZGARUVCHILAR (Premium Cyber Blue)
   ========================================================================== */
:root {
  --color-light: #f0f6fc; /* Juda ochiq muzsimon ko'k (oq o'rniga) */
  --color-primary-light: #61a8f4; /* Och osmon ko'k (neon va hoverlar uchun) */
  --color-primary: #024264; /* To'q okean ko'k (tugmalar, asosiy urg'u) */
  --color-dark: #012a40; /* Qimmatbaho Navy (kartalar orqa foni) */
  --color-darkest: #001520; /* Eng to'q Navy (Asosiy fon) */
  --text-light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}
/* Ekrandan toshib ketishni davolash */
html {
  /* overflow-x: hidden; ni olib tashladik, chunki u scrollni yashirib qo'yadi */
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--color-light);
  color: var(--color-darkest);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* =========================================
   2. NAVIGATSIYA VA DROPDOWN
========================================= */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.4s ease-in-out;
  background: rgb(255, 255, 255) !important;
  /* background: rgba(255, 255, 255, 0.5) !important; */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

#navbar.scrolled {
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

@keyframes premium-shine {
  0% {
    filter: drop-shadow(0 0 2px rgba(97, 168, 244, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(97, 168, 244, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 2px rgba(97, 168, 244, 0.1));
  }
}

.steincore-logo {
  animation: premium-shine 4s infinite ease-in-out;
  will-change: filter;
  transition: transform 0.3s ease;
}

.steincore-logo:hover {
  transform: scale(1.05);
}

@keyframes core-pulse {
  0%,
  100% {
    transform: scale(1);
    transform-origin: 25px 27.5px;
  }
  50% {
    transform: scale(1.4);
    transform-origin: 25px 27.5px;
    fill: #ffffff;
  }
}

.core-dot {
  animation: core-pulse 3s infinite ease-in-out;
  will-change: transform, fill;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-darkest) !important;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--color-darkest) !important;
  font-weight: 540;
  text-transform: uppercase;
  font-size: 14px;
  transition: color 0.3s;
  padding: 5px 0; /* Hover uchun joy ajratamiz */
  font-family: "Plus Jakarta Sans", sans-serif;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-light); /* Neon ko'k chiziq */
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--color-primary-light) !important;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: rgba(1, 42, 64, 0.05) !important;
  color: var(--color-darkest) !important;
  border: 1px solid rgba(1, 42, 64, 0.2) !important;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.dropbtn:hover {
  background: rgba(1, 42, 64, 0.1) !important;
}

.dropbtn img,
.dropdown-content img {
  width: 20px;
  border-radius: 2px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(1, 42, 64, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  z-index: 100;
  top: 100%; /* <--- 115% ni 100% ga o'zgartiramiz */
  left: 0;
  width: 100%;
  min-width: unset;
}

.dropdown-content a:hover {
  background-color: rgba(2, 66, 100, 0.8);
}

.dropdown-content a {
  color: white;
  padding: 12px 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: 0.3s;
}

.lang-dropdown:hover .dropdown-content {
  display: block;
}

/* =========================================
   3. HERO QISMI (Ochiq Icy Blue Fon)
========================================= */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 80px 8%;
  background: linear-gradient(135deg, #ffffff 0%, #e0ebf5 100%);
  gap: 50px;
  box-sizing: border-box;
}

.hero-left {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 65px;
  font-weight: 900;
  margin-bottom: 5px;
  letter-spacing: 3px;
  background: linear-gradient(45deg, #61a8f4, #024264);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 22px;
  color: #61a8f4;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-description {
  font-size: 17px;
  color: #001924;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-right {
  flex: 1;
  width: 100%;
  max-width: 650px;
}

.image-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.slide-item {
  position: absolute;
  border: 4px solid #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 20px 40px rgba(1, 42, 64, 0.15);
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-1 {
  top: 0%;
  left: 0%;
  width: 59%;
  height: 59%;
}
.slot-2 {
  top: 0%;
  left: 61%;
  width: 39%;
  height: 59%;
}
.slot-3 {
  top: 61%;
  left: 61%;
  width: 39%;
  height: 39%;
}
.slot-4 {
  top: 61%;
  left: 0%;
  width: 59%;
  height: 39%;
}

.btn-primary {
  padding: 15px 35px;
  background: linear-gradient(135deg, #024264 0%, #61a8f4 100%);
  color: #ffffff !important;
  text-decoration: none;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(2, 66, 100, 0.3);
  margin-top: 10px;
  align-self: flex-start; /* Tugma chapga taqalib turishi uchun */
}

.btn-primary:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #02578a 0%, #81aad6 100%);
  box-shadow: 0 15px 35px rgba(2, 66, 100, 0.5);
}

/* ==========================================================================
   4. TIMELINE XIZMATLAR
   ========================================================================== */
.section-timeline {
  background-color: var(--color-darkest);
  padding: 120px 20px;
  position: relative;
}

#advantages {
  padding: 120px 40px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
  padding: 0 20px;
}

.section-timeline .section-title {
  margin: 0 30px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 8px;
  color: #ffffff !important;
  text-transform: uppercase;
}

.title-line {
  flex-grow: 1;
  height: 2px;
  max-width: 450px;
}

.section-title-wrapper .title-line:first-child {
  background: linear-gradient(
    to left,
    var(--color-primary-light) 0%,
    transparent 100%
  );
}
.section-title-wrapper .title-line:last-child {
  background: linear-gradient(
    to right,
    var(--color-primary-light) 0%,
    transparent 100%
  );
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: rgba(97, 168, 244, 0.2);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 50px 0;
  position: relative;
  width: 50%;
  display: flex;
  align-items: center;
}

.timeline-item.left {
  left: 0;
  justify-content: flex-end;
  padding-right: 50px;
}
.timeline-item.right {
  left: 50%;
  justify-content: flex-start;
  padding-left: 50px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: var(--color-primary-light);
  border: 4px solid var(--color-darkest);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 15px rgba(97, 168, 244, 0.8);
  transition: 0.4s ease;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}
.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-item:hover .timeline-dot {
  transform: translateY(-50%) scale(1.5);
  background-color: var(--color-light);
  box-shadow: 0 0 25px rgba(97, 168, 244, 1);
}

.timeline-content {
  width: 100%;
  max-width: 350px;
}

.timeline-content h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}
.timeline-content p {
  color: #94b0c9;
  line-height: 1.6;
  font-size: 15px;
}

.timeline-visuals {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: 250px;
}

.timeline-item.left .right-visual {
  right: -420px;
}
.timeline-item.right .left-visual {
  left: -420px;
}

.img-main,
.img-sub {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.img-main {
  width: 80%;
  height: 80%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
}
.img-sub {
  width: 50%;
  height: 50%;
  object-fit: cover;
  bottom: 0;
  right: 0;
  z-index: 2;
  border: 3px solid var(--color-darkest);
}

.timeline-item:hover .img-main {
  transform: scale(1.05) translate(-10px, -10px);
}
.timeline-item:hover .img-sub {
  transform: scale(1.1) translate(10px, 10px);
  z-index: 3;
}

/* ==========================================================================
   6. AFZALLIKLARIMIZ QISMI (ADVANTAGES)
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  padding-bottom: 50px;
}

.advantage-card {
  background: linear-gradient(
    135deg,
    rgba(2, 66, 100, 0.2) 0%,
    rgba(0, 21, 32, 0.7) 100%
  );
  backdrop-filter: blur(15px);
  border: 1px solid rgba(97, 168, 244, 0.1);
  border-top: 1px solid rgba(97, 168, 244, 0.3);
  border-left: 1px solid rgba(97, 168, 244, 0.2);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  transition: 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.advantage-card:hover {
  transform: translateY(-15px);
  background: linear-gradient(
    135deg,
    rgba(2, 66, 100, 0.4) 0%,
    rgba(1, 42, 64, 0.9) 100%
  );
  border-color: var(--color-primary-light);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(97, 168, 244, 0.15);
}

.adv-icon {
  font-size: 50px;
  color: var(--color-primary-light);
  margin-bottom: 25px;
  transition: 0.4s ease;
}
.advantage-card:hover .adv-icon {
  transform: scale(1.1);
  color: white;
  text-shadow: 0 0 15px rgba(97, 168, 244, 0.8);
}
.advantage-card h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}
.advantage-card p {
  color: #94b0c9;
  line-height: 1.6;
  font-size: 15px;
  text-align: justify;
  text-indent: 20px;
}

/* ==========================================================================
   8. ANIMATSIYALAR VA PRELOADER
   ========================================================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}
.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000810;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    visibility 1.5s ease,
    opacity 1.5s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sc-svg {
  width: 250px;
  height: 120px;
  transition:
    transform 1.5s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 1.5s ease,
    filter 1.5s ease;
  will-change: transform, opacity;
}

.draw-text {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawNeon 2.5s ease-in-out forwards;
}
@keyframes drawNeon {
  0% {
    stroke-dashoffset: 400;
    fill: transparent;
  }
  60% {
    stroke-dashoffset: 0;
    fill: transparent;
  }
  100% {
    stroke-dashoffset: 0;
    fill: url(#glowGrad);
  }
}

.loader-text {
  font-size: 16px;
  letter-spacing: 10px;
  color: var(--color-primary-light);
  font-family: "Courier New", Courier, monospace;
  font-weight: 600;
  margin-top: -10px;
  text-transform: uppercase;
  animation: pulseText 1.5s infinite alternate;
  transition: all 1.5s ease;
}

@keyframes pulseText {
  0% {
    opacity: 0.5;
    text-shadow: 0 0 2px var(--color-primary);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 10px var(--color-primary-light);
  }
}
.dots {
  animation: blinkDots 1.5s infinite steps(4, end);
}
@keyframes blinkDots {
  0%,
  20% {
    color: transparent;
    text-shadow: none;
  }
  40%,
  100% {
    color: var(--color-primary-light);
  }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}
body.loaded .sc-svg {
  transform: scale(4) rotate(10deg);
  opacity: 0;
  filter: blur(20px);
}
body.loaded .loader-text {
  letter-spacing: 50px;
  opacity: 0;
  filter: blur(5px);
}

/* Nur sochuvchi chiziq */
.premium-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ffffff 50%,
    transparent 100%
  );
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(97, 168, 244, 0.6);
  position: relative;
  z-index: 10;
  margin: 0;
}

/* ==========================================================================
   9. KREATIV PREMIUM FOOTER (Ochiq Icy Blue)
   ========================================================================== */
#premium-footer {
  background: linear-gradient(135deg, #f0f6fc 0%, #dbe7f4 100%);
  position: relative;
  color: var(--color-darkest);
  padding: 100px 20px 30px;
  overflow: hidden;
  border-top: 1px solid rgba(97, 168, 244, 0.3);
}

#premium-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    var(--color-primary-light),
    transparent
  );
  animation: glowingBorder 5s linear infinite;
}

@keyframes glowingBorder {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(50%);
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(
    45deg,
    var(--color-darkest),
    var(--color-primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.footer-desc {
  line-height: 1.8;
  color: #3a5a78;
  margin-bottom: 30px;
  max-width: 350px;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  color: var(--color-primary);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.social-icon:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-8px) rotate(10deg);
  box-shadow: 0 10px 20px rgba(2, 66, 100, 0.3);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 20px;
  color: var(--color-darkest);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  font-weight: 800;
}
.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background: var(--color-primary-light);
  transition: width 0.4s ease;
  border-radius: 2px;
}
.footer-links:hover h3::after,
.footer-contact:hover h3::after {
  width: 100%;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 15px;
}
.footer-links a {
  color: #3a5a78;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.footer-links a i {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}
.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateX(10px);
}
.footer-links a:hover i {
  transform: translateX(5px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.icon-box {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 18px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.contact-item:hover .icon-box {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}
.contact-item p {
  color: #3a5a78;
  margin: 0;
  font-weight: 500;
  transition: color 0.3s ease;
}
.contact-item:hover p {
  color: var(--color-darkest);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(1, 42, 64, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p {
  color: #024264;
  font-size: 14px;
  font-weight: 500;
}
.footer-langs {
  display: flex;
  gap: 20px;
}
.footer-langs a {
  color: #024264;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: 0.3s;
  position: relative;
}
.footer-langs a.active,
.footer-langs a:hover {
  color: var(--color-primary-light);
  transform: translateY(-2px);
  display: inline-block;
}

/* ==========================================================================
   10. MOBIL VA PLANSHETLAR UCHUN MOSLASHTIRISH (RESPONSIVE)
   ========================================================================== */

/* Navbar O'ng qismi va Gamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-darkest);
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

/* Gamburger X animatsiyasi */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: white;
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 11fr));
  gap: 40px;
  margin-top: 50px;
  padding: 0 10px;
}

.project-card {
  background: rgba(1, 22, 34, 0.6);
  border: 1px solid rgba(97, 168, 244, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #61a8f4;
  box-shadow: 0 10px 30px rgba(97, 168, 244, 0.2);
}

.project-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 10, 15, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project-btn {
  width: 60px;
  height: 60px;
  background: #61a8f4;
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.view-project-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.project-info {
  padding: 30px;
}

.project-category {
  color: #61a8f4;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.project-title {
  font-size: 1.6rem;
  margin: 10px 0 15px;
  font-weight: 800;
}

.project-desc {
  color: #b0c4de;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Kichik kompyuterlar uchun (Hero Section) */
/* Kichik kompyuterlar va mobil uchun (Hero Section) */
@media (max-width: 992px) {
  .hero-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    /* Navbar balandligini hisobga olgan holda tushirilgan joy */
    padding-top: 130px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-left,
  .hero-right {
    display: contents;
  }

  /* YANGI TARTIB */
  .image-slider-container {
    order: 1; /* 1. 4 ta aylanuvchi rasmlar (Navbardan darhol keyin) */
    width: 100%;
    max-width: 650px;
    margin: 0 auto 30px auto;
  }

  .hero-title {
    order: 2; /* 2. STEINCORE yozuvi rasmlardan keyin */
  }

  .hero-subtitle {
    order: 3; /* 3. Kichik sarlavha */
    margin-bottom: 30px;
  }

  .hero-description {
    order: 4; /* 4. 3 tilda almashadigan gaplar */
    margin-bottom: 30px;
  }

  .btn-primary {
    order: 5; /* 5. Loyihani boshlash tugmasi eng oxirida */
    margin: 0 auto;
  }

  .advantage-card {
    padding: 50px 20px;
  }
}
/* Telefonlar va Planshetlar (Menyu va Xizmatlar moslashuvi) */
@media screen and (max-width: 900px) {
  /* Gamburgerni yoqamiz */
  .hamburger {
    display: flex;
  }

  /* Mobil Menyu Ochilishi */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    background: rgba(1, 42, 64, 0.95); /* Cyber Blue qimmat fon */
    backdrop-filter: blur(15px);
    width: 70%;
    height: 100vh;
    padding-top: 100px;
    transition: 0.4s ease-in-out;
    z-index: 999;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    margin: 20px 0;
    text-align: center;
  }
  .nav-links a {
    color: white !important;
    font-size: 18px;
  }
  .nav-links a:hover {
    color: var(--color-primary-light) !important;
  }

  /* Timeline chiziqlari */
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    padding-left: 80px;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 23px;
    right: auto;
  }
  .timeline-visuals {
    position: relative;
    transform: none;
    top: 0;
    margin-top: 30px;
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
  .timeline-item.left .right-visual,
  .timeline-item.right .left-visual {
    right: 0;
    left: 0;
  }
}

@media (max-width: 768px) {
  /* Ekrandan toshishni davolash */
  .section-timeline .section-title {
    font-size: 22px !important;
    letter-spacing: 3px !important;
    margin: 0 15px !important;
  }
  .title-line {
    width: 30px;
    flex-grow: 0;
  }
  .hero-title {
    font-size: 45px;
  }
  .hero-subtitle {
    font-size: 18px;
  }

  /* Bosh sahifadagi 3 ta kartochkani qisqartirish */
  .advantages-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* FOOTER Yozuvlarini markazlash */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-desc {
    margin: 0 auto 30px auto;
  }
  .social-links {
    justify-content: center;
  }
  .footer-links a,
  .contact-item {
    justify-content: center;
  }
  .footer-links h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-langs {
    justify-content: center;
    margin-top: 15px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  /* Eng kichik telefonlarda yozuvlarni yanada moslash */
  .section-timeline .section-title {
    font-size: 18px !important;
    letter-spacing: 1px !important;
    margin: 0 10px !important;
  }
  .hero-title {
    font-size: 38px;
  }
}

/* ==========================================================================
   11. QALQIB TURUVCHI TUGMALAR (PHONE & BACK TO TOP)
   ========================================================================== */
.floating-btn {
  position: fixed;
  right: 25px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: none;
  outline: none;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* YASHIL TELEFON TUGMASI (Pulsatsiya animatsiyasi bilan) */
.phone-fab {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  display: none; /* Desktopda avtomatik yashirinadi */
  animation: pulse-green 2s infinite;
}

.phone-fab:hover {
  transform: translateY(-5px) scale(1.1);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(56, 239, 125, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 239, 125, 0);
  }
}

/* TEPAGA QAYTISH TUGMASI (Saytning premium Cyber Blue rangida) */
.back-to-top {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(2, 66, 100, 0.5);
}

/* === MOBIL MOSLASHUVCHANLIK (Media Query) === */
@media (max-width: 768px) {
  .back-to-top {
    display: none !important; /* Mobilda Back-to-top yo'qoladi */
  }
  .phone-fab {
    display: flex; /* Mobilda telefon tugmasi paydo bo'ladi */
  }
}
