/* =================================================================
   1. CSS DEYİŞƏNLƏR VƏ TƏMƏL AYARLAR
   ================================================================= */
:root {
  /* Rəng Sxemi - Dark Premium */
  --bg-0: #080c14;       /* Əsas arxafon */
  --bg-1: #0f1624;       /* Kartlar və panellər */
  --bg-2: #1a2235;       /* Hover vəziyyəti */
  --accent: #3b82f6;     /* Əsas aksent - mavi */
  --accent-2: #8b5cf6;   /* İkinci aksent - bənövşəyi */
  --text-1: #f1f5f9;     /* Əsas mətn */
  --text-2: #94a3b8;     /* İkinci dərəcəli mətn */
  --border: rgba(255, 255, 255, 0.08); /* Zərif kənar xətlər */
  
  /* Radiuslar */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  /* Transisiyalar */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --header-height: 72px;
  --container-max: 1280px;
}

/* Müasir CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-0);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fluid Tipografiya */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
p { font-size: clamp(16px, 2vw, 18px); color: var(--text-2); }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* =================================================================
   2. KOMPONENTLƏR
   ================================================================= */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Header (Şüşə effekti) */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-1), var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.nav__link:hover, .nav__link.active {
  color: var(--text-1);
}

/* Hamburger Menyu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-1);
  transition: var(--transition);
}

/* Düymələr */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 8px;
}

.btn--solid {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn--solid:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-1);
  border-color: var(--border);
}

.btn--outline:hover {
  background-color: var(--bg-1);
  border-color: var(--text-2);
}

/* Hero Bölməsi */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 8px;
}

.hero__title {
  max-width: 900px;
  margin: 0 auto;
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  max-width: 600px;
  margin: 0 auto 16px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

/* Bölmə Separatoru (Gradient Line) */
.separator {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 80px 0;
}

/* Seksiyalar */
.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Qrid və Kartlar */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background-color: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  background-color: var(--bg-2);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.card__title {
  font-size: 20px;
  margin: 0;
}

/* Kataloq Kartı (Image Background) */
.catalog-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 32px 24px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border);
  background-color: var(--bg-1);
}

.catalog-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark premium overlay for readability */
  background: linear-gradient(to bottom, rgba(8, 12, 20, 0.4) 0%, rgba(8, 12, 20, 0.6) 60%, rgba(8, 12, 20, 0.9) 100%);
  z-index: 2;
  transition: var(--transition);
}

.catalog-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.catalog-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.catalog-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.catalog-card__icon {
  color: #fff;
  opacity: 0.7;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-card__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.5;
  max-width: 85%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

@media (hover: hover) {
  .catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
  }

  .catalog-card:hover .catalog-card__bg {
    transform: scale(1.08);
  }

  .catalog-card:hover .catalog-card__overlay {
    background: linear-gradient(to bottom, rgba(8, 12, 20, 0.2) 0%, rgba(8, 12, 20, 0.5) 60%, rgba(8, 12, 20, 0.9) 100%);
  }

  .catalog-card:hover .catalog-card__icon {
    opacity: 1;
    background: var(--accent);
    transform: translateX(4px);
  }
}

/* =================================================================
   3. INNER PAGE PRODUCTS
   ================================================================= */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  background-color: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.product-card__image-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  background-color: rgba(255, 255, 255, 0.03);
}

.product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image-wrapper img {
  transform: scale(1.05);
}

.product-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card__price {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Xidmət və ya Məhsul Nümayişi */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.showcase__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.showcase__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.showcase__image img {
  width: 100%;
  aspect-ratio: 4/3;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background-color: var(--bg-1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__title {
  font-size: 16px;
  color: var(--text-1);
  margin-bottom: 8px;
}

.footer__link {
  color: var(--text-2);
  font-size: 15px;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-2);
}

/* =================================================================
   4. SCROLL ANİMASİYALARI VƏ UTILITIES
   ================================================================= */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-up {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .card:hover { transform: none; }
  .btn--solid:hover { transform: none; }
}

/* =================================================================
   5. RESPONSIVE YANAŞMA (Mobile-first -> Desktop)
   ================================================================= */
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase--reverse .showcase__content { order: 2; }
  .showcase--reverse .showcase__image { order: 1; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-0);
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .nav__link {
    font-size: 18px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.is-active span:nth-child(2) { opacity: 0; }
  .hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn { width: 100%; }
  
  .hero {
    padding: 80px 0 60px;
  }
}

/* FAQ Accordion Styling */
.faq-section {
  max-width: 800px;
  margin: 40px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--container-padding);
}

.faq-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 32px;
}

.faq-item {
  background-color: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-2);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: '−';
  color: var(--accent);
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  border-top: 1px solid transparent;
  animation: slideDown 0.3s ease-out;
}

.faq-item[open] .faq-answer {
  border-top-color: var(--border);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Contacts Widget */
.floating-contacts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  animation: floatingBounce 3s ease-in-out infinite;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-btn--wa {
  background: #25D366;
  color: #fff;
}

.floating-btn--tg {
  background: #0088cc;
  color: #fff;
}

.floating-btn--max {
  background: linear-gradient(135deg, #0077ff, #8a2be2);
  color: #fff;
}

/* Pulsing Outer Ring */
.floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0.8;
  z-index: -1;
  animation: pulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Delay pulses for staggered visual effect */
.floating-btn--tg::before {
  animation-delay: 1s;
}

.floating-btn--max::before {
  animation-delay: 0.5s;
}

.floating-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Map Section */
.map-section {
  padding: 60px 0;
  background: var(--bg-0);
}

.map-container {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-1);
  padding: 8px;
}

.map-container iframe {
  width: 100%;
  height: 900px;
  border: 0;
  display: block;
  border-radius: var(--radius-md);
  filter: grayscale(1) invert(0.9) contrast(1.2);
}


/* Animations */
@keyframes floatingBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
