@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --accent-primary: #1E3A8A;      /* Deep Navy Blue */
  --accent-secondary: #2563EB;    /* Royal / Tech Blue */
  --accent-hover: #1D4ED8;
  --accent-light: #EFF6FF;
  --border-color: #E2E8F0;
  --whatsapp-color: #25D366;      /* WhatsApp Green */
  --whatsapp-hover: #128C7E;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 30px -3px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 40px -5px rgba(15, 23, 42, 0.1), 0 10px 20px -5px rgba(15, 23, 42, 0.04);
}

/* Global Styles */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

.section-padding {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

/* Typography Enhancements */
.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-secondary);
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-muted-custom {
  color: var(--text-secondary);
}

/* Header & Top Bar */
.topbar {
  background-color: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
  color: rgba(255, 255, 255, 0.8);
}

.topbar a:hover {
  color: #FFFFFF;
}

.navbar {
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.sticky-nav {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary) !important;
  margin: 0 10px;
  position: relative;
  padding: 5px 0 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Custom Buttons */
.btn-tech {
  background-color: var(--accent-secondary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid var(--accent-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-tech:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-tech-outline {
  background-color: transparent;
  color: var(--accent-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  border: 2px solid var(--accent-secondary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-tech-outline:hover {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #FFFFFF;
  border: 1px solid var(--whatsapp-color);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-navy {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border: 1px solid var(--accent-primary);
}

.btn-navy:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--accent-primary);
  background-image: linear-gradient(135deg, var(--accent-primary) 0%, var(--text-primary) 100%);
  color: #FFFFFF;
  padding: 140px 0 100px 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.75);
}

/* Hero Grid Visual */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 15px;
  position: relative;
}

.hero-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.hero-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-grid-item:hover img {
  transform: scale(1.05);
}

.hero-grid-item-1 {
  grid-column: 1 / 8;
  grid-row: 1 / 7;
  height: 260px;
}

.hero-grid-item-2 {
  grid-column: 8 / 13;
  grid-row: 1 / 10;
  height: 380px;
}

.hero-grid-item-3 {
  grid-column: 1 / 8;
  grid-row: 7 / 13;
  height: 240px;
  margin-top: 15px;
}

/* Stats Counter */
.stat-box {
  border-left: 3px solid var(--accent-secondary);
  padding-left: 15px;
  margin-top: 20px;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.filter-btn.active {
  background-color: var(--accent-secondary);
  color: #FFFFFF;
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

/* Product Cards Grid */
.product-grid {
  transition: opacity 0.3s ease;
}

.product-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.2);
}

.product-image-container {
  height: 220px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 10;
}

.product-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-specs li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-specs li i {
  color: var(--accent-secondary);
  margin-top: 3px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-footer .btn {
  width: 100%;
}

/* Compliance Section */
.compliance-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-color: var(--accent-light);
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.compliance-card:hover .compliance-icon-box {
  background-color: var(--accent-secondary);
  color: #FFFFFF;
  transform: scale(1.1);
}

/* Interactive Form Card */
.form-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 40px;
}

.form-control, .form-select {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-color);
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulse-ring 2s infinite;
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-4px) scale(1.05);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Dialog Specs Modal */
dialog.specs-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  background-color: var(--bg-primary);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

dialog.specs-modal:not([open]) {
  display: none !important;
}

dialog.specs-modal[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
  display: flex;
}

dialog.specs-modal::backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

dialog.specs-modal[open]::backdrop {
  opacity: 1;
}

/* Prevent scroll on body when dialog open */
body:has(dialog[open]) {
  overflow: hidden;
}

.modal-header-custom {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-custom h3 {
  color: #FFFFFF;
  margin: 0;
  font-size: 1.25rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-body-custom {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-body-custom img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.spec-table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}

.spec-table th, .spec-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.spec-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  width: 35%;
  background-color: var(--bg-secondary);
}

.spec-table td {
  color: var(--text-secondary);
}

.modal-footer-custom {
  padding: 16px 24px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Map Section */
.map-container {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer Section */
.footer {
  background-color: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.footer h5 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent-secondary);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact li i {
  color: var(--accent-secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand img {
  height: 80px;
  margin-bottom: 15px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 15px;
    border: 1px solid var(--border-color);
  }
  
  .nav-link {
    margin: 10px 0;
  }
  
  .hero-section {
    padding: 100px 0 60px 0;
  }
  
  .hero-grid {
    margin-top: 40px;
  }
  
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .hero-grid-item-1 {
    height: 180px;
  }
  
  .hero-grid-item-2 {
    height: 280px;
  }
  
  .hero-grid-item-3 {
    height: 160px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .form-card {
    padding: 20px;
  }
}
