* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*NAV*/
html {
  scroll-behavior: smooth;
}

/* ==== Sənin mövcud desktop stillərin qalsın ==== */
nav {
  width: 100%;
  height: 13vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 70px;
  background-color: #fbfdfc;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a img {
  width: 180px;
  height: 13vh;
  object-fit: contain;
  cursor: pointer;
}

nav .nav-list {
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}

nav .nav-list li {
  list-style: none;
  position: relative;
}

nav .nav-list li a {
  text-decoration: none;
  color: black;
  font-size: 20px;
  font-weight: 600;
}

nav .nav-list li a:hover {
  color: #6395ec;
}

/* Burger – desktopda gizli */
nav .burger {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Dil menyusu (görünüş EYNİ, yalnız davranış düzəldilib) */
nav .lang {
  position: relative;
}

nav .lang .lang-menu,
nav .lang #languageback {
  width: 80px;
  background: #fff;
  color: #000;
  position: absolute;
  z-index: 1002;
  /* panelin üstündə olsun */
  top: 120%;
  /* əvvəlki kimi saxladım */
  right: 0;
  display: flex;
  flex-direction: column;
  font-size: 17px;
  padding: 8px 10px;
  gap: 6px;
  border-radius: 4px;
  box-shadow: rgba(6, 24, 44, 0.4) 0 0 0 2px,
    rgba(6, 24, 44, 0.65) 0 4px 6px -1px,
    rgba(255, 255, 255, 0.08) 0 1px 0 inset;
  opacity: 0;
  visibility: hidden;
  transform: scale(.96);
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
  /* bağlı halda klik almasın */
}

nav .lang.open .lang-menu,
nav .lang.open #languageback,
nav .lang .lang-menu.show,
nav .lang #languageback.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  /* açıq halda klik alsın */
}

nav .lang .lang-menu a,
nav .lang #languageback a {
  color: #000;
}

nav .lang .lang-menu a:hover,
nav .lang #languageback a:hover {
  color: #6395ec;
}

/* ==== Mobil / planşet: off-canvas sağdan ==== */
@media (max-width: 992px) {
  nav {
    padding: 0 18px;
  }

  /* Burger görünsün */
  nav .burger {
    display: block;
    z-index: 1001;
    padding-right: 17px;
  }

  /* UL panelə çevrilir (sağdan çıxır) */
  nav .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78vw;
    max-width: 360px;
    background: #fbfdfc;

    /* YUXARI BOŞLUQ: nav (13vh) + safe-area + əlavə 16px */
    padding: calc(13vh + env(safe-area-inset-top, 0px) + 16px) 22px 22px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
    z-index: 999;
  }

  nav.open .nav-list {
    transform: translateX(0);
  }

  /* Logo solda sabit qalsın */
  nav .brand {
    z-index: 1001;
  }

  /* Mobil link ölçüləri */
  nav .nav-list li {
    width: 100%;
  }

  /* bütün elementlər eyni xətdə, dil də daxil */
  nav .nav-list a {
    font-size: 18px;
    display: block;
  }

  /* Dil menyusunu MOBİLDƏ ayrıca sağa çəkmirəm – əvvəlki yerində qalır */
  /* Heç bir override YOXDUR: .lang üçün align-self və s. tətbiq edilmir */
}

@media (max-width: 576px) {
  nav .nav-list {
    width: 88vw;
  }

  nav .lang-menu {
    left: 0;
  }
}


/**CAROUSEL**/
.carousel {
  width: 100%;
  height: 100vh;
}

.carousel-inner img {
  height: 100vh;
  /* Dizaynı dəyişməmək üçün object-fit əlavə etmədim */
}

.masked-text {
  font-size: 50px;
  letter-spacing: 0.5rem;
  font-weight: 700;
  font-weight: bold;
  color: transparent;
  background-image: url("https://images.unsplash.com/photo-1732535725600-f805d8b33c9c?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: 200%;
  /* Enlarged for smooth animation */
  background-position: 0 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-background 5s infinite alternate linear;
}

@keyframes animate-background {
  0% {
    background-position: 0 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/*SERFELI*/
.serfeli {
  width: 100%;
  height: auto;
  text-align: center;
  padding: 70px 0;
}

.serfeli h1 {
  letter-spacing: 0.2rem;
  font-weight: 700;
  padding-bottom: 10px;
  color: #091b41;
}

.serfeli i {
  color: gray;
  font-size: 20px;
}

.serfeli .line {
  width: 100px;
  height: 3px;
  background-color: #091b41;
  margin: auto;
  margin-top: 20px;
}

.serfeli .cards {
  width: 90%;
  margin: auto;
  height: auto;
  justify-content: space-between;
  display: flex;
  padding-top: 70px;
}

.serfeli .cards .card {
  width: 28%;
  height: auto;
  text-align: left;
  cursor: pointer;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transition: 0.6s ease;
}

.serfeli .cards .card:hover {
  transform: translateY(-10px);
  transition: 0.6s ease;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.serfeli .cards .card .card-head {
  height: 150px;
  border-bottom: 1px solid rgb(228, 228, 228);
  padding: 20px;
}

.serfeli .cards .card .card-head img {
  width: 50px;
  height: 50px;
  transition: 0.6s ease;
}

.serfeli .cards .card .card-head h2 {
  padding-top: 35px;
  font-size: 20px;
}

.serfeli .cards .card .card-body {
  padding: 0px;
}

.serfeli .cards .card .card-body ul li {
  list-style: none;
  margin-bottom: 20px;
}

.serfeli .cards .card .card-body ul {
  padding: 30px 0 0 25px;
}

/** ===================== NEW PALETTE (INFO + FOOTER) ===================== */


/** USTUNLUK — untouched (sənin göndərdiyin kimi qalsın) **/
.ustunluk {
  width: 100%;
  height: auto;
  padding: 50px 0 70px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.ustunluk .img {
  width: 180px;
  height: 180px;
  border-radius: 100%;
  animation: rotate 5s infinite linear;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transition: 0.6s ease;
  margin: auto;
  background-color: white;
}

@keyframes rotate {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

.ustunluk .img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

.ustunluk h1 {
  font-size: 30px;
  cursor: pointer;
  font-weight: 700;
  color: #05194b;
  padding-bottom: 40px;
}

.ustunluk .cards {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding-top: 50px;
  perspective: 1000px;
}

.ustunluk .cards .card {
  width: 28%;
  height: 100px;
  box-shadow: rgba(0, 0, 0, .35) 0 5px 15px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 50px;
  padding: 0 15px;
  cursor: pointer;
  transition: .6s ease;
}

.ustunluk .cards .card img {
  width: 55px;
  height: 55px;
}

.ustunluk .cards .card p {
  padding-top: 10px;
  font-size: 17px;
  color: #1641ad;
  font-weight: 700;
  letter-spacing: .1rem;
}

.ustunluk .cards .card:hover {
  transform: rotateY(10deg);
  transition: 0.6s ease;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px,
    rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px,
    rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

/** ========================= INFO ========================= **/
.info {
  width: 100%;
  height: auto;
  padding: 70px 0;
  background-color: #0C0F14;
  /* dark */
  border-bottom: 1px solid #1F2937;
  /* line */
}

.info .container {
  width: 80%;
}

.info .container .col-sm-4 {
  width: 33%;
  padding-left: 100px;
}

.info h2 {
  font-size: 18px;
  padding-bottom: 20px;
  font-weight: 700;
  color: #E5E7EB;
  /* ink */
  font-family: serif;
}

.info ul {
  padding-left: 0;
}

.info ul li {
  list-style: none;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.info ul li a {
  text-decoration: none;
  color: #CFE8FF;
  /* link */
  font-family: serif;
  transition: color .25s ease, opacity .25s ease;
}

.info ul li a:hover {
  color: #00B0B9;
  /* primary */
}

.info ul li a i {
  color: #00B0B9;
  /* primary icon */
  font-size: 18px;
}

.info p {
  color: #A9B1C6;
  /* muted */
  cursor: pointer;
}

.info .icons a {
  text-decoration: none;
}

/* social icons */
.info .fa-instagram,
.info .fa-whatsapp {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 20px;
  border-radius: 5px;
  background-color: #00B0B9;
  /* primary */
  margin-right: 5px;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
  color: #0C0F14;
  /* contrast on primary */
}

.info .fa-instagram:hover,
.info .fa-whatsapp:hover {
  transform: translateY(5px);
  background-color: #FFFFFF;
  color: #00B0B9;
}

/** ======================== FOOTER ======================== **/
.footer {
  width: 100%;
  height: auto;
  padding: 30px 0 20px 0;
  background-color: #0A0D12;
  /* darker */
}

.footer .main {
  width: 90%;
  margin: auto;
  display: flex;

  justify-content: space-between;
}

.footer .main .left p {
  font-size: 17px;
  color: #E5E7EB;
  /* ink */
}

.footer .main .right ul {
  display: flex;
  gap: 20px;
}

.footer .main .right ul li {
  list-style: none;
  font-size: 17px;
}

.footer .main .right a {
  color: #CFE8FF;
  /* link */
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

.footer .main .right a:hover {
  color: #00B0B9;
  /* primary */
}

.signature-brand {
  text-decoration: none;
  font-family: "Brush Script MT", cursive;
  font-size: 22px;
  font-weight: 600;
  color: #E5E7EB;
  transition: color .25s ease, transform .25s ease;
}

.signature-brand:hover {
  color: #00B0B9;
  /* primary */
  transform: scale(1.05);
}


/* =========================
   RESPONSIVE MEDIA QATINIZ
   (mövcud CSS-in SONUNA əlavə edin)
   ========================= */

/* XXL → XL düzəlişləri */
@media (max-width: 1200px) {
  .serfeli .cards {
    gap: 24px;
  }

  .ustunluk .cards {
    gap: 24px;
  }
}

/* XL → LG (≤ 992px) */
@media (max-width: 992px) {

  /* Kartlar 3→2 sütun — ENİ .card-a yox, col wrapper-ə veririk */
  .serfeli .row .cards,
  .ustunluk .row .cards {
    gap: 20px;
    flex-wrap: wrap;
  }

  .serfeli .cards>.col-sm-4,
  .ustunluk .cards>.col-sm-4 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  /* Carousel başlıq ölçüsü */
  .masked-text {
    font-size: 36px;
    letter-spacing: 0.3rem;
  }
}

/* LG → MD (≤ 768px) */
@media (max-width: 768px) {

  /* Carousel hündürlük */
  .carousel {
    height: 70vh;
  }

  .carousel-inner img {
    height: 70vh;
    object-position: center;
    object-fit: cover;
  }

  /* Kartlar 2→1 sütun — col wrapper 100% */
  .serfeli .cards>.col-sm-4,
  .ustunluk .cards>.col-sm-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Üstünlük kartı iç boşluqlar */
  .ustunluk .cards .card {
    gap: 20px;
    padding: 12px;
  }

  /* Başlıqlar və mətn */
  .serfeli h1,
  .ustunluk h1 {
    font-size: 24px;
  }
}

/* MD → SM (≤ 576px) */
@media (max-width: 576px) {

  /* Carousel başlıq */
  .masked-text {
    font-size: 24px;
    letter-spacing: 0.12rem;
    line-height: 1.2;
  }

  /* Bölmə boşluqları */
  .serfeli {
    padding: 48px 0;
  }

  .serfeli .cards {
    padding-top: 36px;
  }

  .ustunluk {
    padding-bottom: 48px;
  }

  /* İkon ölçüləri */
  .serfeli .cards .card .card-head img,
  .ustunluk .cards .card img {
    width: 45px;
    height: 45px;
  }
}

/* =========================
   SERFELI & USTUNLUK — CARD GRID FIX
   (row içində "cards" wrapper olduğuna görə, flex grid qururuq)
   ========================= */
.serfeli .row .cards,
.ustunluk .row .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Bootstrap column paddingini təkrarlamamaq üçün */
.serfeli .row .cards>[class*="col-"],
.ustunluk .row .cards>[class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

/* ≥992px: 3 sütun (DESKTOP) */
@media (min-width: 992px) {

  .serfeli .cards>.col-sm-4,
  .ustunluk .cards>.col-sm-4 {
    flex: 0 0 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
  }
}

/* 576–991px: 2 sütun (TABLET) — ehtiyat */
@media (max-width: 991.98px) and (min-width: 576px) {

  .serfeli .cards>.col-sm-4,
  .ustunluk .cards>.col-sm-4 {
    flex: 0 0 calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}

/* ≤575px: 1 sütun (MOBİL) — ehtiyat */
@media (max-width: 575.98px) {

  .serfeli .cards>.col-sm-4,
  .ustunluk .cards>.col-sm-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Kartların iç enini sabit saxla (köhnə width:28% qaydalarını ləğv edir) */
.serfeli .cards .card,
.ustunluk .cards .card {
  width: 100% !important;
}

/* =========================
   INFO — MOBİL: hamısı ALT-ALTA, dizaynı dəyişmədən
   ========================= */
@media (max-width: 992px) {
  #info .row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 24px;
  }

  @media(max-width:768px) {
    .info .container .col-sm-4 {
      padding-left: 0px
    }
  }

  /* HTML sırasına toxunmuram: contact → links → services */
  #info .contact,
  #info .links,
  #info .services {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: left;
    /* əvvəlki görünüşü saxla */
  }

  #info h2 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  #info ul {
    padding-left: 0;
    margin: 0;
  }

  #info ul li {
    font-size: 14px;
    padding-bottom: 8px;
    list-style: none;
  }

  #info .icons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  #info {
    padding: 40px 0;
  }

  #info .row {
    row-gap: 18px;
  }

  #info .links ul,
  #info .services ul,
  #info .contact ul {
    max-width: 280px;
    /* oxunaqlılıq */
  }
}

/* =========================
   FOOTER — responsiv düzülüş (eyni qalsın)
   ========================= */
.footer .main {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer .main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer .main .right ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-left: 0;
    margin: 0;
  }
}


/* =========================================================
   ✅ PERFORMANCE ADD-ONS (SAFE) — Rəng və layout dəyişmir
   ========================================================= */

/* Böyük bölmələri lazımi anda render et — CLS azalır */
.serfeli,
.ustunluk,
.info,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
  /* təxmini hündürlük */
}

/* Media elementləri üçün ümumi optimizasiya */
img,
svg,
picture,
video {
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}

/* Carousel şəkillərində layout sıçramasını azaldır (vizual eyni) */
.carousel-item img {
  display: block;
  width: 100%;
}

/* Accessibility + UX — dəyişikliksiz */
:focus-visible {
  outline: 2px solid #999;
  outline-offset: 2px;
}

/* Hərəkəti azaldan istifadəçilər üçün animasiyaları söndür */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobil toxunma performansı */
button,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  touch-action: manipulation;
}

/* Off-canvas açıqkən body scroll-un qarşısını al */
body.menu-open {
  overflow: hidden;
}

/* Layout paint optimizasiyası */
.card-head img,
.cards .card>img,
.ustunluk .card>img {
  contain: layout paint size;
}

/* Kiçik micro-optimization */