/* =========================================
               ROOT VARIABLES (DARK & LIGHT THEMES)
               EXACT MATCH WITH HOME PAGE
           ========================================= */
:root {
  /* Brand Colors */
  --smv-blue: #0a3a8b;
  --smv-red: #c8102e;

  /* Dark Theme Colors */
  --smv-bg-base: #0d1117;
  --smv-bg-surface: #161b22;
  --smv-bg-card: #21262d;
  --smv-text-main: #f0f6fc;
  --smv-text-muted: #8b949e;
  --smv-border: rgba(255, 255, 255, 0.08);

  /* Light Theme Colors */
  --smv-light-base: #ffffff;
  --smv-light-surface: #f8f9fa;
  --smv-light-card: #ffffff;
  --smv-light-text-main: #111827;
  --smv-light-text-muted: #4b5563;
  --smv-light-border: rgba(0, 0, 0, 0.08);

  --font-head: "Montserrat", sans-serif;
  --font-body: "Manrope", sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
               GLOBAL SETTINGS & LENIS SMOOTH SCROLL
           ========================================= */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--smv-bg-base);
  color: var(--smv-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  margin-bottom: 0;
}

p {
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--smv-bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--smv-red);
  border-radius: 4px;
}

/* Universal Section Classes */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--smv-red);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
  position: relative;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
}

/* Themes */
.theme-dark {
  background-color: var(--smv-bg-base);
  color: var(--smv-text-main);
}

.theme-dark .section-title {
  color: var(--smv-text-main);
}

.theme-dark .section-title span {
  color: var(--smv-red);
}

.theme-light {
  background-color: var(--smv-light-base);
  color: var(--smv-light-text-main);
}

.theme-light .section-title {
  color: var(--smv-light-text-main);
}

.theme-light .section-title span {
  color: var(--smv-blue);
}

/* =========================================
               1. RESPONSIVE NAVBAR (EXACT MATCH)
           ========================================= */
.smv-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.6);
  padding: 15px 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.smv-navbar.scrolled {
  padding: 10px 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--smv-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.smv-logo {
  height: 60px;
  width: auto;
  transition: var(--transition-smooth);
  filter: brightness(1.2);
}

.smv-logo:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.navbar-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--smv-text-main) !important;
  position: relative;
  padding: 10px 15px !important;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 0%;
    height: 2px;
    background-color: var(--smv-red);
    transition: var(--transition-smooth);
  }

  .navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);
  }
}

.navbar-nav .nav-link:hover {
  color: var(--smv-red) !important;
}

.dropdown-menu {
  background: #ffffff;
  border: none;
  border-top: 4px solid var(--smv-red);
  border-radius: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
}

.dropdown-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  padding: 10px 25px;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background-color: #f4f6fa;
  color: var(--smv-red);
  padding-left: 30px;
}

.smv-cta-btn {
  background: var(--smv-red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: 2px solid var(--smv-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.smv-cta-btn:hover {
  background: transparent;
  color: var(--smv-red);
  transform: translateY(-2px);
}

/* =========================================
               2. INNER PAGE HERO (Professional Industrial)
           ========================================= */
.smv-inner-hero {
  position: relative;
  width: 100vw;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* background-color: var(--smv-bg-base); */
  padding-top: 80px;
  border-bottom: 1px solid var(--smv-border);
}

.smv-inner-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/gallery-images/gal-1.jpeg") center/cover no-repeat;

  /* Darker & Grittier */
  z-index: 1;
}

.smv-inner-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      rgba(13, 17, 23, 0.664) 0%,
      rgba(13, 17, 23, 0.6) 50%,
      transparent 100%
    ),
    url("https://www.apsteel.in/assets/images/banner/quality-ban.jpg");
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.smv-inner-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.smv-inner-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 4.5rem);
  color: var(--smv-text-main);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
  /* Forces heading on exactly 1 line */
}

.smv-inner-title span {
  color: var(--smv-red);
}

.smv-breadcrumb {
  display: inline-flex;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--smv-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  border-left: 3px solid var(--smv-red);
  padding-left: 15px;
}

.smv-breadcrumb a {
  color: var(--smv-text-main);
  transition: var(--transition-smooth);
}

.smv-breadcrumb a:hover {
  color: var(--smv-red);
}

/* =========================================
               3. PRODUCT OVERVIEW (Light Theme)
           ========================================= */
.smv-prod-wrap {
  background-color: var(--smv-light-base);
  border-bottom: 1px solid var(--smv-light-border);
  position: relative;
  overflow: hidden;
}

/* Massive Watermark */
.smv-prod-watermark {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 15vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.02);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}

.smv-prod-img-box {
  position: relative;
  z-index: 5;
  /* ZERO Border Radius for raw industrial feel */
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--smv-light-border);
}

/* Heavy steel accent edge */
.smv-prod-img-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--smv-red);
  z-index: 3;
}

.smv-prod-img-box img {
  width: 100%;
  height: auto;
  min-height: 550px;
  object-fit: cover;
  filter: contrast(1.1);
  transition: var(--transition-smooth);
  display: block;
}

.smv-prod-img-box:hover img {
  transform: scale(1.05);
}

.smv-prod-info {
  padding-left: 40px;
  position: relative;
  z-index: 5;
}

.smv-prod-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--smv-light-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.smv-prod-desc {
  font-size: 1.1rem;
  color: var(--smv-light-text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.smv-prod-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.smv-prod-features li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-weight: 700;
  color: var(--smv-light-text-main);
  font-size: 1.05rem;
}

.smv-prod-features i {
  color: var(--smv-red);
  font-size: 1.3rem;
  margin-top: 2px;
}

/* Outline button specifically for light theme */
.smv-btn-outline {
  background: transparent;
  color: var(--smv-light-text-main);
  padding: 12px 28px;
  border-radius: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: 2px solid var(--smv-light-text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.smv-btn-outline:hover {
  background: var(--smv-light-text-main);
  color: var(--smv-light-base);
}

.smv-action-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* =========================================
               4. APPLICATIONS (Dark Grid)
           ========================================= */
.smv-app-wrap {
  background-color: var(--smv-bg-base);
  border-bottom: 1px solid var(--smv-border);
}

.smv-app-box {
  background: var(--smv-bg-surface);
  border: 1px solid var(--smv-border);
  padding: 40px 30px;
  border-radius: 0;
  /* Sharp Industrial */
  text-align: center;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.smv-app-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--smv-blue);
  transition: var(--transition-smooth);
  z-index: -1;
}

.smv-app-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--smv-bg-card);
}

.smv-app-box:hover::before {
  height: 100%;
  background: rgba(10, 58, 139, 0.1);
}

.smv-app-icon {
  font-size: 2.5rem;
  color: var(--smv-text-main);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.smv-app-box:hover .smv-app-icon {
  color: var(--smv-red);
  transform: scale(1.1);
}

.smv-app-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--smv-text-main);
  margin-bottom: 10px;
}

/* =========================================
               5. TECHNICAL SPECS & FORM (PARALLAX)
           ========================================= */
.smv-tech-wrap {
  position: relative;
  padding: 100px 0;
  background: url("../images/plants-machinary/polish-machine.jpeg") center/cover
    no-repeat fixed;
  border-bottom: 1px solid var(--smv-border);
}

.smv-tech-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.85);
  /* Dark overlay */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1;
}

.smv-tech-container {
  position: relative;
  z-index: 5;
}

/* The Table */
.smv-table-wrapper {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 0;
  /* Sharp */
  height: 100%;
}

.smv-table-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--smv-text-main);
  margin-bottom: 25px;
  border-left: 4px solid var(--smv-red);
  padding-left: 15px;
}

.smv-tech-table {
  width: 100%;
  border-collapse: collapse;
}

.smv-tech-table th,
.smv-tech-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smv-tech-table th {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--smv-text-main);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.smv-tech-table td {
  font-size: 1rem;
  color: var(--smv-text-muted);
  font-weight: 600;
}

.smv-tech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--smv-text-main);
}

.smv-tech-table tr:last-child td {
  border-bottom: none;
}

/* The Form */
.smv-form-wrapper {
  background: rgba(200, 16, 46, 0.9);
  /* Red Accent Background */
  padding: 50px 40px;
  border-radius: 0;
  height: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.smv-form-wrapper h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.smv-form-wrapper p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-weight: 500;
}

.smv-input-glass {
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: #fff;
  font-family: var(--font-body);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.smv-input-glass::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.smv-input-glass:focus {
  outline: none;
  border-color: #fff;
  background: rgba(0, 0, 0, 0.4);
}

.smv-btn-dark {
  background: var(--smv-bg-base);
  color: #fff;
  padding: 16px 30px;
  border: none;
  border-radius: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.smv-btn-dark:hover {
  background: #fff;
  color: var(--smv-red);
}

/* =========================================
               6. MASSIVE PREMIUM FOOTER (EXACT MATCH)
           ========================================= */
.smv-footer {
  background-color: #05070a;
  padding: 100px 0 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--smv-border);
}

.smv-footer-watermark {
  position: absolute;
  bottom: -40px;
  right: -5%;
  font-size: 15vw;
  font-family: var(--font-head);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  pointer-events: none;
}

.smv-footer-top {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
}

.smv-footer-col {
  position: relative;
  z-index: 1;
}

.smv-footer-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #fff;
}

.smv-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.smv-footer-links li {
  margin-bottom: 15px;
}

.smv-footer-links a {
  color: var(--smv-text-muted);
  font-size: 0.95rem;
  transition: 0.3s;
  font-weight: 600;
  text-decoration: none;
}

.smv-footer-links a:hover {
  color: var(--smv-red);
  padding-left: 8px;
}

.smv-contact-list {
  list-style: none;
  padding: 0;
}

.smv-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--smv-text-muted);
  line-height: 1.6;
}

.smv-contact-list i {
  color: var(--smv-red);
  font-size: 1.2rem;
  margin-top: 5px;
}

.smv-newsletter-box {
  background: var(--smv-bg-surface);
  padding: 25px;
  border-radius: 0;
  border: 1px solid var(--smv-border);
}

.smv-newsletter-input {
  background: var(--smv-bg-base);
  border: 1px solid var(--smv-border);
  color: #fff;
  padding: 12px 15px;
  border-radius: 0;
  width: 100%;
  margin-bottom: 15px;
  outline: none;
}

.smv-newsletter-btn {
  width: 100%;
  background: var(--smv-red);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.smv-newsletter-btn:hover {
  background: var(--smv-blue);
}

/* FAB */
.smv-fab-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.smv-fab-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.smv-fab-whatsapp {
  background-color: #25d366;
}

.smv-fab-phone {
  background-color: var(--smv-blue);
}

.smv-fab-email {
  background-color: var(--smv-red);
}

.smv-fab-item:hover {
  transform: translateY(-3px) scale(1.1);
  color: #fff;
}

/* Mobile Fixes */
@media (max-width: 991px) {
  .section-padding {
    padding: 70px 0;
  }

  .smv-navbar {
    padding: 15px 0;
  }

  .navbar-collapse {
    background: #0d1117;
    padding: 20px;
    border-radius: 0;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 15px;
  }

  .dropdown-item {
    color: #ccc;
  }

  .dropdown-item:hover {
    background: transparent;
    color: var(--smv-red);
    padding-left: 25px;
  }

  .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2) !important;
    padding: 8px 12px;
  }

  .navbar-toggler-icon {
    filter: invert(1);
  }

  .smv-prod-info {
    padding-left: 15px;
    margin-top: 40px;
  }

  .smv-prod-img-box img {
    min-height: 350px;
  }

  .smv-table-wrapper {
    padding: 25px 15px;
    margin-bottom: 40px;
    overflow-x: auto;
  }

  .smv-form-wrapper {
    padding: 40px 25px;
  }
}
