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

:root {
  --font-heading: 'Montserrat', sans-serif;
  /* Modern, Geometric */
  --font-body: 'Inter', sans-serif;
  /* High Readability Standard */
  --font-logo: 'Rajdhani', sans-serif;
  /* Industrial Brand Identity */
  --color-primary: #0f1215;
  /* Deep Obsidian */
  --color-secondary: #1a2026;
  /* Dark Gunmetal */
  --color-text-light: #e2e8f0;
  /* Polished Steel */
  --color-text-dim: #94a3b8;
  /* Brushed Metal */
  --color-accent: #f97316;
  /* Industrial Safety Orange */
  --color-steel-blue: #60a5fa;
  /* For accents */
  --color-steel-light: #cbd5e1;
  /* Lighter steel */
  --color-steel-dim: #94a3b8;
  /* Dim steel */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-text-light);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo,
.btn {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dense Grid Utility */
.dense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  /* Smaller cards */
  gap: 1.5rem;
  /* Tighter gap */
  margin-top: 2rem;
}

/* Navbar */
header {
  background-color: rgba(15, 18, 21, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: var(--font-logo);
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-dim);
  font-size: 1rem;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-accent);
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn:hover {
  background: var(--color-accent);
  color: white;
}

/* Global Cards */
.feature-card {
  background: var(--color-secondary);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

/* Unique Compact Product Card */
.product-card {
  background: #111;
  border: 1px solid #333;
  padding: 1rem;
  /* Compact padding */
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  /* Technical drawing look */
  pointer-events: none;
  z-index: 10;
}

.feature-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.feature-card h3 {
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--color-accent);
}

.feature-card h3,
.product-card h4 {
  color: var(--color-text-light);
  margin-top: 0;
  font-family: var(--font-heading);
}

/* Technical Grid Background */
body {
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Tech Card Style for Benefits */
.tech-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.tech-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card-item:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: var(--color-accent);
  transform: translateX(5px);
}

.tech-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tech-card-item:hover::before {
  opacity: 1;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.scroll-indicator::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 6px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

.feature-card p,
.product-card p {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  /* Smaller text */
}

/* Compact Product Card Specifics */
.card-img-placeholder {
  height: 140px;
  /* Reduced height from 200px */
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  overflow: hidden;
  border-bottom: 1px solid #333;
}

.card-img-placeholder img {
  transition: transform 0.3s ease;
  filter: grayscale(80%);
}

.product-card:hover .card-img-placeholder img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.spec-list {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  /* Smaller specs */
  color: var(--color-text-dim);
  border-top: 1px solid #222;
  padding-top: 0.5rem;
}

.spec-list li {
  border-bottom: none;
  padding: 0.1rem 0;
  display: flex;
  justify-content: space-between;
}

/* Footer */
footer {
  background-color: #000;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-dim);
}

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

.footer-col h3 {
  color: white;
  margin-bottom: 1rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* Elegant easing */
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  position: relative;
  display: inline-block;
}

/* Elegant Underline for Nav & Titles */
.nav-links a::after,
.section-title::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.4s ease;
}

.nav-links a:hover::after,
.section-title:hover::after,
.reveal.active .section-title::after {
  width: 100%;
}

/* Technical Scan Effect for Product Cards */
.product-card {
  position: relative;
  overflow: hidden;
  /* ensure existing styles like background/border are preserved by cascade */
}

.product-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom,
      transparent 49%,
      rgba(249, 115, 22, 0.1) 50%,
      transparent 51%);
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.6s;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover::after {
  transform: rotate(45deg) translateY(100%);
  transition: transform 1.2s ease-in-out;
}

/* Ensure content stays above scan effect */
.product-card .card-body,
.product-card .card-img-placeholder {
  position: relative;
  z-index: 2;
}

/* Infinite Marquee Animation */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
}

.marquee-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  color: var(--color-text-dim);
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- New Global Classes from Refactor --- */
.est-box {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--color-steel-dim);
}

.features-section {
  margin: 6rem 0;
}

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

.feature-card {
  padding: 3rem;
}

.about-section {
  margin: 6rem 0;
}

.about-container {
  background: var(--color-secondary);
  padding: 4rem 3rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-text-dim);
  font-size: 1.1rem;
  line-height: 1.8;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 4rem;
}

.why-choose-title {
  color: var(--color-accent);
  margin-bottom: 3rem;
  text-align: center;
}

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

.benefits-subtitle {
  color: white;
  margin-bottom: 1.5rem;
}

.tech-card-item span {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.benefits-text {
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
}

/* --- Navigation & Mobile Menu --- */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-light);
  margin: 5px auto;
  transition: all 0.3s ease;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

  /* Navigation */
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--color-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 1.5rem 0;
    font-size: 1.2rem;
  }

  /* Typography & Spacing */
  .hero {
    padding: 8rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .est-box {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features-section,
  .about-section {
    margin: 3rem 0;
  }

  .about-container {
    padding: 2rem 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .benefits-grid {
    gap: 2rem;
  }

  .section-title,
  .why-choose-title {
    font-size: 1.8rem;
  }

  /* Fix horizontal scroll */
  img,
  svg,
  video {
    max-width: 100%;
    height: auto;
  }
}

/* --- Product Page Specific Styles --- */
.product-header {
  padding-top: 8rem;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
  margin-bottom: 40px;
  position: relative;
}

.products-section {
  position: relative;
}

.product-hover {
  position: relative;
  border-radius: 8px;
  overflow: visible;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  /* Changed from fixed 300px to responsive */
  max-width: 350px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.product-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(230, 126, 34, 0.4);
  z-index: 10;
}

.products-section:has(.product-hover:hover) .product-hover:not(:hover) {
  opacity: 0.3;
  filter: blur(4px);
  pointer-events: none;
}

.product-hover-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: border-color 0.3s ease;
}

.product-hover:hover .product-hover-img-wrapper {
  border-color: #e67e22;
}

.product-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}

.product-hover-desc {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(230, 126, 34, 0.98);
  color: white;
  padding: 25px 30px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-width: 280px;
  max-height: 80vh;
  overflow-y: auto;
}

.product-hover:hover .product-hover-desc {
  opacity: 1;
  pointer-events: auto;
}

.product-hover h5 {
  margin: 0 0 15px 0;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.product-hover-types {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.product-hover-types li {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.product-hover-types li:last-child {
  border-bottom: none;
}

/* Responsive Tables */
.table-container {
  overflow-x: auto;
  margin-bottom: 4rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  -webkit-overflow-scrolling: touch;
}

.table-container table {
  min-width: 600px;
  /* Ensure table doesn't squash too much */
}

/* Mobile Adjustments for Products */
@media (max-width: 900px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 768px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-hover {
    height: 180px;
    /* More height for better visibility */
    width: 100%;
    max-width: 100%;
  }

  .product-hover-img-wrapper {
    background: #f8fafc;
    /* Professional background for contained images */
    padding: 10px;
  }

  .product-hover img {
    object-fit: contain;
    /* Don't crop product hardware on mobile */
  }

  .spec-table th,
  .spec-table td {
    padding: 6px 4px !important;
    /* Further reduced padding for tighter mobile feel */
    font-size: 0.8rem !important;
  }

  /* Adjust hover description for mobile - show as modal or below */
  .product-hover-desc {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(100%);
    border-radius: 12px 12px 0 0;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease;
  }

  .product-hover:hover .product-hover-desc {
    transform: translateY(0);
  }

  /* Disable the blur effect on mobile as it can be confusing with touch */
  .products-section:has(.product-hover:hover) .product-hover:not(:hover) {
    opacity: 1;
    filter: none;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* --- Contact Page Styles --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background: var(--color-secondary);
  color: var(--color-text-light);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  /* Sync with map-container */
  position: relative;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  /* Sync with map-container */
}

/* Decorative Accent for Info Box */
.info-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, var(--color-accent) 50%);
  opacity: 0.5;
}

.info-box h3 {
  color: var(--color-accent);
  margin-top: 0;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: 2px solid var(--color-steel-dim);
  color: #333;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

button.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--color-secondary);
  color: white;
  border: 1px solid var(--color-accent);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

button.submit-btn:hover {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.contact-header-wrapper {
  text-align: center;
  margin-top: 4rem;
}

.contact-content-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .contact-content-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

@media (max-width: 992px) {
  .contact-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Product Specification Tables --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 1rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid #000 !important;
  padding: 10px 12px;
  text-align: center;
  background: #ffffff;
  color: #000000;
}

.spec-table th {
  background-color: #e67e22 !important;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 1.1rem;
  border: 2px solid #000 !important;
}

.spec-table td {
  font-weight: 700;
}

/* Mobile adjustments for tables */
@media (max-width: 768px) {

  .spec-table th,
  .spec-table td {
    padding: 8px 5px !important;
    font-size: 0.85rem !important;
  }

  .spec-table th {
    font-size: 0.95rem !important;
  }

  .table-container {
    margin: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
  }
}

/* --- Map Section --- */
.map-container-small {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  height: 200px;
  /* Compact height */
  width: 100%;
}

.map-container-small iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) invert(92%) contrast(83%);
  /* Dark mode map effect */
  transition: var(--transition-smooth);
}

.map-container-small:hover iframe {
  filter: none;
  /* Show colorful map on hover */
}