:root {
  --primary: #004b87;
  --primary-dark: #00335e;
  --accent: #00a8e8;
  --dark: #1e293b;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

/* Nudge in-page anchor jumps clear of the sticky navbar. The home sections
   already carry 90px of top padding, so only a small offset is needed here. */
html {
  scroll-padding-top: 24px;
}

body {
  color: var(--dark);
  background-color: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-container {
  display: flex;
  justify-content: space-between;
}

.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-container a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s;
}

.logo h2 {
  color: var(--primary);
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo span {
  font-size: 0.75rem;
  color: var(--gray);
  display: block;
  letter-spacing: 2px;
}

.site-logo-img {
  max-height: 48px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 10px;
  font-weight: 600;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background: var(--light);
}

.subheading {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#about, #products, #quality, #contact, #clients {
  padding: 90px 0 80px 0;
  background-color: #f1f5f9;
  position: relative;
  z-index: 1;
}

.about-card {
  display: flex;
  gap: 20px;
  background: var(--primary);
  padding: 40px;
  border-radius: 8px;
  color: white;
  text-align: center;
}

.card-stat {
  flex: 1;
}

.card-stat h3 {
  font-size: 3rem;
  color: var(--accent);
}

.check-list {
  list-style: none;
  margin-top: 20px;
}

.check-list li {
  margin-bottom: 10px;
  font-weight: 600;
}

.check-list i {
  color: var(--accent);
  margin-right: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-bottom: 3px solid var(--primary);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-card img.product-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

#quality .subheading {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 5px;
}

#quality .section-title h2 {
  color: var(--primary-dark);
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 5px;
}

.quality-box {
  text-align: center;
  padding: 35px 25px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 75, 135, 0.15);
}

.quality-box i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.quality-box h4 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.quality-box p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info .info-item {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.contact-info i {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.btn-full {
  width: 100%;
}

.alert-box {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 600;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.field-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: -10px;
  margin-bottom: 10px;
  display: block;
}

footer {
  background: var(--dark);
  color: var(--white);
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.socials a {
  color: var(--white);
  margin-left: 15px;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .top-container {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.client-card {
  background: var(--light);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 75, 135, 0.1);
  border-color: var(--primary);
}

.client-logo-placeholder {
  height: 60px;
  background: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  border: 1px dashed #cbd5e1;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.client-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--primary);
  border-radius: 8px;
  padding: 30px;
  color: var(--white);
  text-align: center;
}

.stat-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-item h3 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  color: #e2e8f0;
}

@media (max-width: 768px) {
  .client-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);
  min-height: 550px;
  overflow: hidden;
  background-color: #0f172a;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 51, 94, 0.7), rgba(15, 23, 42, 0.85));
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #e2e8f0;
  max-width: 680px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

.slider-dots {
  position: absolute;
  bottom: 35px;
  left: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.scroll-down-indicator {
  position: absolute;
  right: 25px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.scroll-down-indicator span {
  writing-mode: vertical-rl;
  margin-bottom: 8px;
}

.scroll-down-indicator i {
  font-size: 1.1rem;
  animation: bounceDown 2s infinite;
}

.scroll-down-indicator:hover {
  opacity: 1;
  color: var(--accent);
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .slider-dots { left: 20px; bottom: 20px; }
  .scroll-down-indicator { display: none; }
}

.view-details-btn {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.product-card:hover .view-details-btn { color: var(--accent); }
.view-details-btn i { margin-left: 5px; transition: transform 0.3s ease; }
.product-card:hover .view-details-btn i { transform: translateX(4px); }

.modal-specs-list {
  list-style: none;
  margin-bottom: 25px;
}

.modal-specs-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.95rem;
}

.modal-specs-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.client-title-wrapper { text-align: center; margin-bottom: 30px; }
.client-title-wrapper h2 { font-size: 2rem; color: var(--dark); font-weight: 700; }
.title-underline { width: 40px; height: 3px; background-color: #ef4444; margin: 8px auto 12px; }
.client-title-wrapper .subtitle { color: var(--gray); font-size: 0.95rem; }

.client-slider-container { overflow: hidden; position: relative; padding: 10px 0 20px 0; }
.client-slider-track { display: flex; gap: 20px; transition: transform 0.5s ease-in-out; }

.client-logo-card {
  min-width: calc((100% - 80px) / 5);
  height: 90px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.client-logo-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.client-logo-card img { max-height: 55px; max-width: 100%; object-fit: contain; }

.brand-logo { font-weight: 800; text-align: center; color: var(--primary); font-size: 1rem; }

.client-slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.client-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #334155; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.client-dot.active { background-color: #ef4444; transform: scale(1.2); }

@media (max-width: 992px) { .client-logo-card { min-width: calc((100% - 40px) / 3); } }
@media (max-width: 600px) { .client-logo-card { min-width: 100%; } }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.6rem; color: var(--primary); cursor: pointer; z-index: 1002; padding: 5px; }

.nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(3px);
  z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); display: flex !important; flex-direction: column;
    justify-content: flex-start; align-items: flex-start; padding: 90px 30px 30px 30px;
    gap: 20px; box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999;
  }
  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; list-style: none; }
  .nav-links a { color: var(--dark) !important; font-size: 1.1rem; font-weight: 600; display: block; width: 100%; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
  .nav-links .btn-primary { color: var(--white) !important; text-align: center; margin-top: 15px; border-bottom: none; }
}

.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination-wrap a, .pagination-wrap span { padding: 8px 14px; border-radius: 4px; border: 1px solid #cbd5e1; color: var(--dark); text-decoration: none; }
.pagination-wrap .active { background: var(--primary); color: #fff; border-color: var(--primary); }

.filters-bar { display: flex; gap: 15px; margin-bottom: 35px; flex-wrap: wrap; }
.filters-bar input, .filters-bar select { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 4px; }

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-detail-grid img { width: 100%; max-height: 480px; object-fit: contain; border-radius: 8px; background: #fff; }
.about-img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; background: #fff; }
@media (max-width: 900px) { .product-detail-grid { grid-template-columns: 1fr; } }
