body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(#0f172a, #131e5a);
  padding-top: 65px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: white;
}

/* NAVBAR */
.navbar {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(198, 226, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  gap: 10px;
  height: 65px;
  flex-wrap: nowrap;
}

.logo {
  position: absolute;
  left: 20px;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.navbar ul,
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #000207d9;
  font-weight: 500;
  margin: 0;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #4fc3f7;
  transition: 0.3s;
}

nav a:hover {
  color: #4fc3f7;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: #4fc3f7;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.nav-right a,
.nav-right button {
  padding: 8px 15px;
  border-radius: 6px;
  background: #0ea5e9;
  color: white;
  border: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}

.nav-right a:hover,
.nav-right button:hover {
  background: #0284c7;
}

/* HERO */
.hero-slider {
  position: relative;
  height: calc(100vh - 65px);
  overflow: hidden;
  z-index: 1;
  background: #0f172a;
}

.hero h1 {
  font-size: 40px;
}

.hero p {
  margin-top: 15px;
  color: #cbd5e1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 700px;
  z-index: 2;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50px;
  right: 30px;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  max-width: 800px;
}

.overlay h1 {
  font-size: 50px;
  margin: 0;
}

.overlay p {
  font-size: 18px;
  margin-top: 10px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* GALLERY */
.gallery {
  padding: 80px 10%;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.g-card {
  background: #b6e0fe;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  position: relative;
  z-index: 2;
  padding: 40px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.g-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.g-card:hover {
  transform: translateY(-10px);
}

/* ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s forwards;
}

.fade-up:nth-child(2) {
  animation-delay: 0.3s;
}

.fade-up:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ABOUT */
.about-section {
  padding: 100px 10%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  text-align: center;
}

.about-title {
  font-size: 40px;
  margin-bottom: 20px;
}

.about-intro {
  max-width: 700px;
  margin: auto;
  margin-bottom: 60px;
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5f5;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: auto;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 25px;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.timeline-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08);
}

.timeline-year {
  font-size: 26px;
  font-weight: bold;
  color: #38bdf8;
  min-width: 80px;
}

.timeline-content h3 {
  margin: 0 0 5px 0;
}

.timeline-content p {
  margin: 0;
  color: #cbd5f5;
}

/* LOGIN */
.login-box {
  width: 320px;
  margin: 150px auto;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: #0ea5e9;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#logoutBtn {
  background: #228088;
  border-radius: 6px;
  padding: 8px 15px;
}

/* SERVICES */
.services-section {
  padding: 80px 10%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  text-align: center;
}

.services-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  border-radius: 15px;
  transition: transform 0.3s, background 0.3s;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #38bdf8;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.service-card p {
  color: #cbd5f5;
  font-size: 16px;
  line-height: 1.5;
}

/* STATS */
.stats-section {
  width: 100%;
  padding: 80px 40px;
  background: #f5f3ee;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(100, 149, 200, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(180, 160, 100, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  padding: 50px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(30, 50, 80, 0.12);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  cursor: default;
  position: relative;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 1;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease,
    box-shadow 0.45s ease;
}

.stat-card {
  flex: 1;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 50, 80, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-3px);
  z-index: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: #1e3250;
  opacity: 0.85;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1e3250;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
  animation: fadeUp 0.7s ease both;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a6a80;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.stat-card:nth-child(1) .stat-number {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) .stat-number {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) .stat-number {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) .stat-number {
  animation-delay: 0.4s;
}

/* PASSWORD */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  color: #666;
}

.toggle-password:hover {
  color: #111;
}

/* SOCIAL */
.cf-social-btn {
  width: 30px;
  height: 40px;
  color: white;
}

/* FLOATING ACTION BUTTON */
.social-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.fab-main {
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fab-main:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.fab-main.active {
  transform: rotate(45deg);
}

.fab-options {
  position: absolute;
  right: 7px;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.35s ease;
}

.fab-options.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fab-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.fab-link:hover {
  transform: scale(1.12);
}

.whatsapp-fab {
  background: #25d366;
}

.instagram-fab {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.telegram-fab {
  background: #229ed9;
}

.fab-label {
  position: absolute;
  right: 60px;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.fab-item:hover .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    padding-top: 65px !important;
    overflow-x: hidden !important;
  }

  /* NAVBAR MOBILE FIX */
  .navbar {
    height: 65px !important;
    padding: 0 10px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .logo {
    position: static !important;
    width: 75px !important;
    height: 42px !important;
    flex: 0 0 75px !important;
    margin: 0 !important;
  }

  .logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .navbar ul,
  .nav-links {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 11px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .navbar ul::-webkit-scrollbar,
  .nav-links::-webkit-scrollbar {
    display: none !important;
  }

  nav a {
    font-size: 13px !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  /* HERO MOBILE FIX */
  .hero-slider {
    height: calc(100svh - 65px) !important;
    min-height: 560px !important;
    overflow: hidden !important;
    background: #0f172a !important;
  }

  .hero-slider .slide {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .hero-slider .logistics-slide {
    background-position: center center !important;
  }

  .hero-slider .product-slide {
    background-size: cover !important;
    background-position: 68% center !important;
    background-color: #9fb7c7 !important;
  }

  .hero-slider .chemistry-slide {
    background-position: 70% center !important;
  }

  .hero-slider .slide::before {
    background: rgba(0, 0, 0, 0.38) !important;
  }

  .overlay {
    left: 34px !important;
    right: 22px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    max-width: 90% !important;
  }

  .overlay h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .overlay p {
    font-size: 18px !important;
    line-height: 1.45 !important;
    margin-top: 14px !important;
  }

  .hero-content {
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .about-title {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .login-box {
    width: 90%;
    margin: 100px auto;
  }

  .gallery {
    padding: 40px 5%;
  }

  .gallery-grid,
  .services-grid,
  #productList {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    flex-direction: column;
    gap: 15px;
  }

  .stat-card {
    width: 100%;
  }

  .services-section {
    padding: 50px 5%;
  }

  .services-section h2 {
    font-size: 28px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 15px;
  }

  .social-fab {
    right: 22px !important;
    bottom: 24px !important;
  }

  .fab-main {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .fab-link {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .fab-options {
    bottom: 70px;
    right: 6px;
  }

  .fab-label {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 600px) {
  .stats-section {
    padding: 50px 20px;
  }

  .stats-grid {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.4rem;
  }
}