/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background:  linear-gradient(180deg, #f8fafc, #e5e7eb);
  color: #333;
}
/* ====== HEADER ====== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

header nav {
  max-width: 90%;
  margin: 0 auto;
  padding: 1% 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO qismi */
header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

header .logo img {
  height: 40px;
}

header .logo-main {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
}

header .logo-sub {
  font-size: 22px;
  font-weight: 700;
  color: #ffce54;
}

/* NAV menyu */
header nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.language-selector select {
  background: transparent;
  border: none;
  border-bottom: 2px solid #fff; /* pastki chiziq */
  font-size: 16px;
  color: #fff;
  padding: 4px 6px;
  cursor: pointer;
  appearance: none; /* brauzer default styleni olib tashlaydi */
}

.language-selector select:focus {
  outline: none;
  border-bottom-color: #ffd700; /* fokusda oltin rang bo'ladi (navdagi kabi) */
}

.language-selector {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.language-selector select option {
  background-color: #333; /* qora fon */
  color: #fff; /* oq matn */
}

.language-selector select {
  background-color: transparent;
  color: #fff;
}


header nav ul li a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #ffce54;
}

/* ====== TELEFON UCHUN (kichik ekran) ====== */
@media (max-width: 768px) {
  header nav {
    padding: 3% 4%;
  }

  header .logo img {
    height: 30px;
  }

  header .logo-main,
  header .logo-sub {
    font-size: 10px;
  }

  header nav ul {
    gap: 10px;
  }

  header nav ul li a {
    font-size: 12px;
  }
}


    /* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: white;
  position: relative;
}


.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55); /* qora shaffof qatlam */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero h1 span {
  color: #ffce54;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 25px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn.primary {
  background: #ffce54;
  color: #222;
}

.btn.primary:hover {
  background: #e6b947;
}

.btn.ghost {
  border: 2px solid white;
  color: white;
}

.btn.ghost:hover {
  background: white;
  color: #222;
}

/* ====== home/ Project preview ====== */
.portfolio {
  width: 90%;
  margin: auto;
}

.filter-buttons {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: #eee;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #333;
  color: #fff;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  width: 100%;
  padding-top: 65%; /* balandlik (16:9) */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  
  /* default effekt */
  filter: brightness(70%);
  transition: filter 0.4s ease-in-out;
}

/* Hover paytida asl rasm */
.portfolio-item:hover {
  filter: brightness(100%);
}

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  text-align: center;
  padding: 10px;
}

.project-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.project-title:hover {
  color: #ffd700;
}

.projects-preview {
  width: 90%;
  margin: 0 auto;
  padding: 60px 0;
  background: #f8fafc;
}

.projects-preview h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

/* Card container */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 2%;
}

/* Card */
.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.image-wrapper {
  width: 100%;
  height: 300px;   /* Juda katta chiqmasligi uchun balandlik cheklanadi */
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Rasmni qirqadi, cho‘zmaydi */
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .image-wrapper img {
  transform: scale(1.05);
}


/* Card content */
.card-content {
  padding: 15px;
  text-align: center;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #111;
}

.card-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.card-content .btn.small {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #0077ff;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.card-content .btn.small:hover {
  background: #005fcc;
}

@media (max-width: 1024px) {
  .cards-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
  }
}

@media (max-width: 768px) {
  .cards-wrapper {
    grid-template-columns: 1fr; /* faqat 1ta karta qatoriga */
    gap: 20px;
  }

  .image-wrapper {
    height: 220px;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  .card-content .btn.small {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}


/* About Section */
.about-section {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.about-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #222;
}

.about-section p {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.services-bullets {
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.services-bullets h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.services-bullets ul {
  padding-left: 20px;
  line-height: 1.7;
  font-size: 16px;
}

.services-bullets li {
  margin-bottom: 3px;
  font-size: 18px;
  text-align: left;
}
/* ====== STATS ====== */
.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}

.stat {
  background: #f9f9f9;
  padding: 30px 20px;
  border-radius: 12px;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.stat h3 {
  font-size: 2.2rem;
  color: #0077ff;
  margin-bottom: 10px;
  font-weight: 700;
}

.stat p {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .stat {
    width: 80%;
    padding: 25px 10px;
  }

  .stat h3 {
    font-size: 1.8rem;
  }

  .stat p {
    font-size: 0.95rem;
  }
}

/* Footer */

.site-footer {
  background-color: #222;
  color: #fff;
  padding: 60px 20px 20px;
  font-family: sans-serif;
}

.site-footer h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
}

.site-footer p, 
.site-footer a, 
.site-footer li {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer a:hover {
  color: #0077ff;
}

/* Footer Grid */
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 20px;
}

/* Lists */
.footer-nav, .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li, .contact-list li {
  margin-bottom: 8px;
}

/* Social Links */
.site-footer .social a {
  margin-right: 10px;
  display: inline-block;
  color: #ccc;
  transition: color 0.3s;
}

.site-footer .social a:hover {
  color: #0077ff;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .site-footer .social a {
    margin-right: 5px;
  }
}


/* about.html */

/* 
About-hero-section */

/* About Hero (scoped to .about-hero) */
.about-hero {
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
  padding: 60px 20px;
}

.about-hero .container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 40px;
  align-items: center;
}

/* Text */
.about-hero__title {
  font-size: 2.75rem;
  margin: 0 0 18px 0;
  color: #0f1724; /* dark */
  line-height: 1.05;
}

.about-hero__lead {
  font-size: 1.05rem;
  color: #475569;
  max-width: 680px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* CTA */
.about-hero__cta {
  display: inline-block;
  padding: 12px 20px;
  background: #0b74ff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}

.about-hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11,116,255,0.18);
}

/* Visual */
.about-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-hero__img {
  width: 100%;
  max-width: 520px;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,36,0.06);
  display: block;
}

/* Responsive: mobil uchun */
@media (max-width: 768px) {
  .about-hero .container {
    display: flex;
    flex-direction: column; /* pastma-past tartibda joylashadi */
    align-items: center;
    text-align: center;
  }

  /* Rasim birinchi chiqsin */
  .about-hero__visual {
    order: 1;
    width: 100%;
  }

  /* Text keyin chiqsin */
  .about-hero__text {
    order: 2;
    width: 100%;
  }

  /* Elementlar oralig‘ini yaxshilaymiz */
  .about-hero__title {
    font-size: 1.8rem;
    margin-top: 14px;
  }

  .about-hero__lead {
    font-size: 1rem;
    margin: 10px 0 20px;
  }

  .about-hero__cta {
    display: inline-block;
    margin-top: 8px;
  }
}


/* Our Mission */
.about-mission {
  padding: 70px 20px;
  background: #ffffff;
}

.about-mission__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-mission__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.about-mission__content h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #0f1724;
}

.about-mission__content p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Responsive */

/* Mobil tartib uchun — Mission qismi */
@media (max-width: 768px) {
  .about-mission__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Rasim birinchi chiqsin */
  .about-mission__image {
    order: 1;
    width: 100%;
  }

  /* Text keyin chiqsin */
  .about-mission__content {
    order: 2;
    width: 100%;
  }

  .about-mission__content h2 {
    font-size: 1.6rem;
    margin-top: 16px;
  }

  .about-mission__content p {
    font-size: 1rem;
    margin-bottom: 14px;
  }
}


/* Stats Section */
.about-stats {
  padding: 80px 20px;
  background: #f8fafc;
  text-align: center;
}

.about-stats h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  color: #0f172a;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-card {
  background: #fff;
  padding: 40px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card h3 {
  font-size: 2rem;
  color: #1e40af;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 1rem;
  color: #475569;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* === Team Section === */ .team-section { padding: 50px 20px; background: #fff; text-align: center; } .team-section h2 { font-size: 2rem; margin-bottom: 30px; color: #2c3e50; } /* --- Container --- */ .team-container { position: relative; display: flex; align-items: center; justify-content: center; } /* --- Cards Wrapper --- */ .team-cards { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; width: 80%; padding-bottom: 10px; } /* --- Card --- */ .team-card { flex: 0 0 30%; /* 💻 Kompyuterda 3 ta karta */ min-width: 250px; background: #f9f9f9; padding: 20px; border-radius: 10px; transition: transform 0.3s ease; display: flex; flex-direction: column; align-items: center; height: 380px; /* Hamma kartalar bir xil bo‘lishi uchun */ box-sizing: border-box; scroll-snap-align: start; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .team-card:hover { transform: translateY(-6px); } /* --- Image --- */ .team-card img { width: 100%; height: 250px; object-fit: contain; /* 🔹 Rasm to‘liq sig‘adi, qirqilmaydi */ border-radius: 10px; background-color: #fff; /* 🔹 Agar bo‘sh joy bo‘lsa, oq fon */ } /* --- Text --- */ .team-card h3 { font-size: 1.2rem; color: #2c3e50; margin-top: 10px; } .team-card p { font-size: 0.95rem; color: #555; margin-top: 5px; } /* --- Buttons --- */ .team-container button { background: #2c3e50; color: white; border: none; padding: 10px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: 0.3s; } .team-container button:hover { background: #34495e; } /* --- Responsive --- */ @media (max-width: 768px) { .team-card { flex: 0 0 45%; /* 📱 Telefonda 2 ta karta */ height: 340px; } .team-card img { height: 220px; } /* Telefonda knopkalarni yashirish */ .team-container button { display: none; } } @media (min-width: 1200px) { .team-card { flex: 0 0 22%; /* 🖥️ Katta ekranlarda 4 ta karta */ height: 400px; } .team-card img { height: 270px; } }

/* ===== Portfolio Section ===== */
.portfolio {
  padding: 120px 20px 80px; /* 120px yuqoridan — headerga joy ochish */
  background: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.filter-buttons {
  margin-bottom: 30px;
}

.filter-buttons button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 20px;
  background: #eee;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  background: #222;
  color: #fff;
}
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px); /* faqat 300px ustun */
  gap: 20px;
  justify-content: center; /* o‘rtaga joylashtiradi */
}

.portfolio-item {
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  filter: brightness(70%);   /* odatda sal qoraroq */
  transition: transform 0.4s ease, filter 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);    /* biroz kattalashadi */
  filter: brightness(100%);  /* asl rangiga keladi */
}



/* === CONTACT SECTION === */
.contact-section {
  padding: 140px 5% 100px; /* har ekranda mos bo‘lishi uchun % ishlatyapmiz */
  background: #f9f9f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 40% 60%; /* katta ekranda balansli ulush */
  gap: 40px;
  width: 100%;
  max-width: 1400px; /* juda katta ekranda ham o‘qishli bo‘lishi uchun limit */
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Chap taraf - info qismi */
.contact-info {
  padding: 40px;
}

.contact-info h2 {
  font-size: clamp(22px, 2vw, 32px); /* har ekranda moslashadi */
  margin-bottom: 15px;
  color: #222;
}

.contact-info p {
  font-size: clamp(14px, 1.5vw, 18px);
  margin-bottom: 25px;
  color: #555;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.info-list .icon {
  font-size: 22px;
}

.info-list strong {
  display: block;
  font-weight: 600;
  color: #222;
  margin-bottom: 3px;
}

.info-list a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.info-list a:hover {
  color: #ffce54;
}

/* Ijtimoiy tarmoqlar */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  color: #fff;
  transition: background 0.3s;
}

.social-links .tg {
  background: #0088cc;
}

.social-links .tg:hover {
  background: #0077b5;
}

.social-links .ig {
  background: #e1306c;
}

.social-links .ig:hover {
  background: #c72d61;
}

.social-links .fb {
  background: #1877f2;
}

.social-links .fb:hover {
  background: #145db2;
}

/* O‘ng taraf - Map */
.contact-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsiv dizayn */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr; /* 1 ustun bo‘lib qoladi */
  }

  .contact-map {
    min-height: 300px;
  }
}
/* ====== Project_detail ====== */
.container_detail {
  max-width: 900px;
  margin: 80px auto 40px; /* Yuqoridan joy ochish uchun */
  padding:100px 20px;
}
.project-header {
  background-color: #010714af;
  color: #ffffff; 
  padding: 20px;
}


/* === Galereya tepada === */
.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gallery-item {
  width: 100%;
  height: 600px;       /* Barcha rasmlar uchun bir xil balandlik */
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* Rasm kesilmaydi */
  display: block;
}

/* === Boshqa loyihalar === */
.other-projects {
  margin-top: 40px;
}
.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.proj-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.proj-img {
  width: 100%;
  height: 220px;     /* Kartochkalar bir xil balandlikda */
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* Kesilmasin, to‘liq chiqsin */
  display: block;
}
.proj-title {
  text-align: center;
  padding: 10px 0 0;
  font-weight: 600;
  font-size: 1rem;
}

/* === Responsiv === */
@media (max-width: 992px) {
  .projects-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .projects-row {
    grid-template-columns: 1fr;
  }
}

.language-switcher {
  position: relative;
  display: inline-block;
}

.language-switcher button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: white;
}

.language-switcher ul {
  position: absolute;
  right: 0;
  background-color: #222;
  list-style: none;
  margin: 0;
  padding: 5px 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.language-switcher ul li {
  padding: 6px 12px;
}

.language-switcher ul li a {
  color: white;
  text-decoration: none;
  display: block;
}

.language-switcher ul li:hover {
  background: #444;
}

.hidden {
  display: none;
}
