/* ========================================
   VIVASAM - Modern CSS with Brand Color #01C0E4
   ======================================== */

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary-color: #01c0e4;
  --primary-dark: #0196b8;
  --primary-light: #33d1f0;
  --primary-rgb: 1, 192, 228;

  /* Neutral Colors */
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Typography */
  --font-family-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-family-heading: "Poppins", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --section-padding: 6rem 0; /* oldingi 5rem → 6rem */
  --border-radius-sm: 0.625rem; /* oldingi 0.5rem → 0.625rem (~10px) */
  --border-radius: 0.875rem; /* oldingi 0.75rem → 0.875rem (~14px) */
  --border-radius-lg: 1.25rem; /* oldingi 1rem → 1.25rem (20px) */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 0.125rem;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 2rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border: 2px solid var(--primary-color);
  color: var(--white);
  box-shadow: 0 0.25rem 0.75rem rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.25rem rgba(var(--primary-rgb), 0.4);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-0.125rem);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark) !important;
  text-decoration: none;
}

.logo-img {
  width: 3rem;
  height: auto;
  /* border-radius: 50%; */
  /* object-fit: cover; */
}

.brand-text {
  color: var(--primary-color);
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0.125rem;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#language-select {
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 120px;
  font-weight: 500;
  color: var(--gray-700) !important;
  background: inherit;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--primary-rgb), 0.1) 100%
  );
  min-height: 100vh;
  padding: 1vw 4vw;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%2301C0E4" fill-opacity="0.05"><circle cx="30" cy="30" r="1"/></g></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.875rem;
}

.badge-item i {
  font-size: 1.125rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 2rem 0;
}

.brand-highlight {
  color: var(--primary-color);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--gray-700);
  font-weight: 400;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.emergency-contact .contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 0.25rem solid var(--primary-color);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.contact-info small {
  display: block;
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-info strong {
  color: var(--dark);
  font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.hero-image {
  width: 45rem;
  height: 35rem;
  filter: drop-shadow(0 2rem 4rem rgba(var(--primary-rgb), 0.2));
  animation: float 6s ease-in-out infinite;
}

.floating-element {
  position: absolute;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.element-1 {
  top: 2%;
  right: 10%;
  animation-delay: -1s;
}

.element-2 {
  bottom: 2%;
  left: 10%;
  animation-delay: -2s;
}

.element-3 {
  top: 50%;
  right: -85%;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* About Section */
.about-section {
  padding: var(--section-padding);
}

.about-features {
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-content h5 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.feature-content p {
  color: var(--gray-600);
  margin: 0;
}

.about-visual img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Certificates Section */
.certificates-section {
  padding: var(--section-padding);
  background: var(--gray-100);
}

.certificate-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.certificate-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow);
}

.certificate-card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

/* Products Section */
.products-section {
  padding: var(--section-padding);
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 30rem;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow);
}

.product-image-container {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px; /* match product-image-container height */
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0196b8;
}
.product-actions {
  margin-top: auto;
}

/* Swiper Styles */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-pagination-bullet {
  background: var(--primary-color);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Partners Section */
.partners-section {
  padding: var(--section-padding);
  background: var(--gray-100);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 150px;
}

.partner-logo:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  /* filter: grayscale(100%); */
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--primary-rgb), 0.02) 100%
  );
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-details h6 {
  margin-bottom: 0.25rem;
  color: var(--dark);
  font-weight: 600;
}

.contact-details p {
  margin: 0;
  color: var(--gray-600);
}

.contact-actions .btn {
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--dark) !important;
  color: var(--gray-300);
}

.footer-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  justify-self: center;
}

.brand-tagline {
  font-size: 1.125rem;
  color: var(--primary-light);
  font-weight: 500;
}

.footer-title {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.footer-contact .contact-item i {
  color: var(--primary-color);
  font-size: 1.125rem;
  width: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.125rem;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-0.125rem);
}

.footer-divider {
  border-color: rgba(var(--primary-rgb), 0.2);
  margin: 2rem 0 1rem;
}

.copyright {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 5vw;
  right: 2rem;
  width: 4vw;
  height: 4vw;
  background: #26cded;
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: var(--shadow);
  border: none;
  font-size: 1.5rem;
}

.back-to-top.show {
  display: flex;
}
.product-section {
  padding-top: 120px;
  padding-bottom: 60px;
}
.product-image {
  max-height: 400px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(1, 192, 228, 0.08);
  /* background: #fff; */
  padding: 1vw;
}
.accordion-button:focus {
  box-shadow: none;
}
.accordion-button {
  font-weight: 500;
}
.accordion-body {
  font-size: 1rem;
  color: #333;
}

.text-muted {
  font-size: 1rem;
}
.related-products h3 {
  font-weight: 700;
  color: #0196b8;
  margin-bottom: 2rem;
}
/* Creative card styles */
.product-card {
  background: linear-gradient(135deg, #f7fafc 60%, #e3f6f5 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(1, 192, 228, 0.09);
  overflow: hidden;
  transition: transform 0.25s;
  border: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(1, 192, 228, 0.18);
}
.product-card .card-img-top {
  width: 100%;
  height: 320px;
  padding: 3vw;
  /* scale: 1.4; */
  overflow: hidden;
  object-fit: contain;
  border-bottom: none;
  /* background: #fff; */
}

.product-card-body {
  padding: 1.5rem;
  text-align: center;
}
.product-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0196b8;
  margin-bottom: 0.5rem;
}
.product-card-desc {
  font-size: 0.98rem;
  color: #666;
  margin-bottom: 1rem;
  min-height: 38px;
}
.product-card .btn {
  border-radius: 20px;
  background-color: #0196b8;
  color: #fff;
  padding: 7px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(1, 192, 228, 0.08);
}
.product-card .btn:hover {
  background: #017a99;
  color: #fff;
}
.product-card .card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  /* background: #7a9b55; */
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(122, 155, 85, 0.12);
}
@media (max-width: 768px) {
  .product-section {
    padding-top: 80px;
    padding-bottom: 30px;
  }
  .product-card .card-img-top {
    /* height: 160px; */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 6rem 0 3rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .trust-badges {
    justify-content: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .emergency-contact .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .about-section .row {
    flex-direction: column-reverse;
  }

  .contact-section .row {
    text-align: center;
  }

  .contact-actions .btn {
    margin-bottom: 1rem;
  }

  .hero-visual {
    margin-top: 3rem;
    min-height: 300px;
  }

  .floating-element {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .partner-logo {
    height: 120px;
    padding: 1.5rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    align-self: center;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Bootstrap Icons Fix */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css");

.bi::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure all icons are visible */
i[class^="bi-"],
i[class*=" bi-"] {
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .back-to-top,
  .floating-element {
    display: none !important;
  }
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

#language-select:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 576px) {
  .hero-image {
    width: 100%;
    height: 100%;
  }
  .back-to-top {
    bottom: 2rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  html {
    overflow-x: hidden !important;
  }
  .navbar-toggler {
    border: none;
  }
  #language-select {
    margin-right: 3vw;
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  z-index: 1030;
}

#language-select {
  border: none;
  margin-right: 3vw;
}

.custom-language-dropdown .dropdown-menu {
  display: none;
  z-index: 9999;
}

.custom-language-dropdown.show .dropdown-menu {
  display: block;
}

.custom-language-dropdown .dropdown-item {
  cursor: pointer;
}


/* Products slider sizing */
.products-section .swiper { width: 100%; height: 420px; }            /* kerakli balandlikni tanlang */
.products-section .swiper .swiper-slide {
  display: flex; align-items: center; justify-content: center;
}
.products-section .swiper .swiper-slide img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
