:root {
  --primary: #00a8ff;
  --primary-dark: #0097e6;
  --secondary: #0a3d62;
  --accent: #2ecc71;
  --danger: #e74c3c;
  --bg-dark: #050a14;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-light: #f5f6fa;
  --text-dim: #a4b0be;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 168, 255, 0.1);
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 10, 20, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

.lang-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* --- HERO --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(5, 10, 20, 0.7), rgba(5, 10, 20, 0.8)),
    url('https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=1920');
  background-size: cover;
  background-position: center;
  padding-top: 80px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #00a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-btn {
  background: var(--primary);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 168, 255, 0.5);
}

/* --- GRIDS --- */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-dim);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* --- PRODUCTS CAROUSEL --- */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.left {
  left: -20px;
}

.carousel-btn.right {
  right: -20px;
}

#productsList {
  display: flex !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  gap: 30px;
  padding-bottom: 20px;
  width: 100%;
}

#productsList::-webkit-scrollbar {
  display: none;
}

#productsList .card {
  min-width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: auto;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

#productsList .card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2);
}

.card {
  padding: 40px;
  text-align: left;
}

.card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.review-card {
  padding: 25px;
  font-size: 0.9rem;
}

.review-card p {
  color: var(--text-light);
  line-height: 1.5;
}

.review-card b {
  font-size: 0.85rem;
  color: var(--primary);
}

/* --- CONTACT --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.info-item i {
  width: 50px;
  height: 50px;
  background: var(--glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
}

input,
textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--white);
  outline: none;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* --- WHATSAPP FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1) rotate(10deg);
}

.whatsapp-fab i {
  font-size: 2rem;
  color: var(--white);
}

/* --- FOOTER --- */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
  color: var(--white);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.copyright {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    padding: 60px 0;
    transition: var(--transition);
  }

  nav.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 15px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* Specific mobile overrides for Services & Products grids */
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .container.grids {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .card {
    padding: 15px;
    /* Smaller padding for mobile */
    text-align: center;
  }

  .card h3 {
    font-size: 1.1rem;
    /* Smaller font */
    margin-bottom: 5px;
  }

  .card p {
    font-size: 0.85rem;
    /* Smaller font */
  }

  .card i {
    text-align: center;
    width: 100%;
    font-size: 2rem;
    /* Smaller icon */
    margin-bottom: 15px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-btn.left {
    left: -10px;
  }

  .carousel-btn.right {
    right: -10px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  #productsList {
    gap: 15px;
  }

  #productsList .card {
    min-width: 65vw;
    /* Make horizontal cards smaller */
  }
}

/* --- SKELETON --- */
.skeleton {
  background: var(--glass);
  animation: pulse 1.5s infinite ease-in-out;
  border-radius: 20px;
  height: 250px;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: var(--bg-dark);
  border-radius: 20px;
  overflow: hidden;
  transform: translateY(50px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
}

.modal-img-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-img-container img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
}

.modal-info {
  flex: 1;
  padding: 40px;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.price-tag {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-desc {
  color: var(--text-dim);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* --- TOAST --- */
#toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--primary);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: var(--transition);
}

#toast.show {
  transform: translateX(-50%) translateY(0);
}