/* ===================================================================
   CSS VARIABLES & COLOR SYSTEM
   =================================================================== */

:root {
  --font-heading: "Playfair Display", serif;
  --font-body: "Raleway", sans-serif;
  --font-logo: "Montserrat", sans-serif;

  --primary-color: #1a365d;
  --secondary-color: #2b77ad;
  --accent-color: #3182ce;
  --text-color: #1a202c;
  --text-light: #4a5568;
  --bg-color: #ffffff;
  --bg-alt-color: #f7fafc;
  --bg-section: #fafbfc;
  --border-color: #e2e8f0;

  --shadow-light: rgba(26, 54, 93, 0.08);
  --shadow-medium: rgba(26, 54, 93, 0.12);
  --shadow-heavy: rgba(26, 54, 93, 0.16);

  --transition-speed: 1s;
  --nav-height: 80px;
  --light-red-color: #ffffe0;
  --logo-text-color: #000000;

  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(26, 54, 93, 0.15);
  --glass-shadow: 0 8px 32px rgba(26, 54, 93, 0.1);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(26, 54, 93, 0.1);
}

html[data-theme="dark"] {
  --primary-color: #63b3ed;
  --secondary-color: #4299e1;
  --accent-color: #90cdf4;
  --text-color: #e2e8f0;
  --text-light: #a0aec0;
  --bg-color: #0f1419;
  --bg-alt-color: #1a202c;
  --bg-section: #171923;
  --border-color: #2d3748;

  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-heavy: rgba(0, 0, 0, 0.6);

  --light-red-color: #ff6b6b;
  --logo-text-color: #ffffff;

  --glass-bg: rgba(0, 0, 0, 0.25);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --card-bg: rgba(26, 32, 44, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   BASE STYLES
   =================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  min-height: 100vh;
  color: var(--text-color);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

path {
  stroke: #000;
  fill: #000;
}

/* ===================================================================
   NAVIGATION
   =================================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: transparent;
  padding: 0;
  z-index: 1000;
  transition: all var(--transition-speed);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  position: relative;
  gap: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-logo);
  font-size: 1.5rem;
  color: var(--logo-text-color);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-speed);
  background: transparent;
  z-index: 1001;
  flex-shrink: 0;
}

.logo-text-surya,
.logo-text-steel {
  font-family: var(--font-logo);
  font-weight: 450;
  font-size: 1.5rem;
  color: var(--logo-text-color);
  transition: color var(--transition-speed);
}

.logo-monogram {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.floating-navbar {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px) brightness(110%) grayscale(10%);
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

html[data-theme="dark"] .floating-navbar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-speed);
  position: relative;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
}

.nav-link:hover {
  background: rgba(30, 58, 138, 0.1);
}

.nav-link.contact-btn {
  background: #000;
  color: #fff;
  margin-left: 0.5rem;
}

.nav-link.contact-btn:hover {
  background: #333;
}

html[data-theme="dark"] .nav-link.contact-btn {
  background: #fff;
  color: #000;
  font-weight: 700;
}

html[data-theme="dark"] .nav-link.contact-btn:hover {
  background: #e5e5e5;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.5rem;
  transition: transform var(--transition-speed);
  z-index: 1001;
  flex-shrink: 0;
  margin-left: auto;
}

.theme-toggle .uil-sun {
  font-size: 1.5rem;
}

.theme-toggle:hover {
  transform: rotate(360deg);
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================================================
   HERO & BACKGROUND
   =================================================================== */

.page-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.sky {
  position: relative;
  width: 100%;
  height: 100vh;
}

.sky-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.5s ease-in-out;
}

.light-mode-bg {
  background: linear-gradient(to bottom, #87ceeb 0%, #add8e6 25%, #e0ffff 40%, #f0f8ff 53%, #fffacd 85%, #ffdab9 100%);
  opacity: 1;
}

.dark-mode-bg {
  background: linear-gradient(to bottom, #000508 0%, #163c52 25%, #4f4f47 40%, #c5752d 53%, #b7490f 85%, #2f1107 100%);
  opacity: 0;
}

html[data-theme="dark"] .light-mode-bg {
  opacity: 0;
}

html[data-theme="dark"] .dark-mode-bg {
  opacity: 1;
}

.sun {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 54.5%;
  left: 16.3%;
  border-radius: 50%;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.light-mode-sun {
  background: radial-gradient(
    circle,
    #ffffff 0%,
    #ffffe0 10%,
    #ffd700 11%,
    rgba(255, 250, 250, 0) 35%,
    rgba(255, 250, 250, 0) 100%
  );
  opacity: 1;
}

.dark-mode-sun {
  background: radial-gradient(
    circle,
    #ffe483 0%,
    #ffc700 10%,
    #ff8117 11%,
    rgba(245, 116, 3, 0) 35%,
    rgba(245, 116, 3, 0) 100%
  );
  opacity: 0;
}

html[data-theme="dark"] .light-mode-sun {
  opacity: 0;
}

html[data-theme="dark"] .dark-mode-sun {
  opacity: 1;
}

.component-wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
}

.background-grid {
  height: 100vh;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  align-items: flex-end;
  z-index: 1;
}

.background {
  width: 100%;
  margin: 0 -20px -5px;
  display: flex;
  align-items: flex-end;
}

.background img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

/* ===================================================================
   SVG & ANIMATIONS COMPONENTS
   =================================================================== */

.svg-components {
  position: relative;
  height: 0;
  width: 100%;
  padding-bottom: 90vh;
  margin: auto;
  margin-left: -10%;
  z-index: 35;
}

.svg-components svg {
  position: absolute;
  height: 100%;
  width: 80%;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  margin-right: 0;
  max-height: calc(80vw / 1.33);
  z-index: inherit;
}

.sky .svg-image {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 80%;
  max-height: 80vh;
  z-index: 31;
}

.light-wrapper,
.weld-wrapper,
.spark-wrapper {
  position: relative;
  padding-bottom: calc((768 / 1024) * 100%);
  height: 0;
}

.light-bar {
  transform: rotate(4deg) translateX(15px);
  display: flex;
  justify-content: space-between;
  width: 87%;
  position: absolute;
  height: 100%;
  bottom: -12%;
}

.light.red {
  visibility: visible;
  opacity: 1;
  width: 1px;
  height: 1px;
  box-shadow: 0 0 5px 5px var(--light-red-color);
  background-color: var(--light-red-color);
  animation: strobe 3s steps(2, start) infinite alternate;
}

.light.top {
  position: absolute;
  top: 1.5%;
  right: 28%;
}

.material {
  z-index: 40;
}

.material path,
.hook {
  animation: move-trolly-components 45s infinite ease-in-out alternate;
}

.hook {
  z-index: 39;
}

.cable {
  stroke-width: 1;
  stroke: black;
  stroke-dasharray: 485;
  stroke-dashoffset: 485;
  animation: move-cable 45s infinite ease-in-out alternate, move-trolly-components 45s infinite ease-in-out alternate;
  z-index: 38;
}

.trolly-movement {
  animation: move-trolly-components 45s infinite ease-in-out alternate;
  z-index: 37;
}

.material,
.trolly-movement,
.cable,
.hook {
  --transX1: -55%;
  --transX2: -50%;
  --transX3: -5%;
  --transX4: -5%;
  --transY1: 14%;
  --transY2: 14%;
  --transY3: 20%;
  --transY4: 20%;
  --scale1: 1.1;
  --scale2: 1;
}

.hook,
.material {
  --transY1: 75%;
  --transY2: 14%;
  --transY3: 20%;
  --transY4: 75%;
}

.material.hidden {
  visibility: hidden;
}

.spark {
  position: relative;
  width: 10%;
  margin-top: -20px;
  animation-timing-function: linear;
}

.weld-container,
.spark-container {
  width: 10px;
  height: 10px;
  position: absolute;
}

.weld-container:first-child,
.spark-container:first-child {
  left: 82.7%;
  top: 46%;
}

.weld-container:last-child,
.spark-container:last-child {
  left: 52%;
  top: 68.5%;
}

.weld {
  opacity: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff 0%,
    #ddedff 25%,
    #e1ecf9 35%,
    #cee4ff 40%,
    #badaff 50%,
    rgba(186, 218, 255, 0.4) 80%,
    rgba(186, 218, 255, 0.1) 100%
  );
  animation: welding 8s infinite;
}

.particle {
  opacity: 0;
  position: absolute;
  background-color: rgba(255, 251, 209, 1);
}

.particle.negative-X {
  animation: sparks-neg-X 0.7s infinite, welding 8s infinite;
}

.particle.positive-X {
  animation: sparks-pos-X 0.7s infinite, welding 8s infinite;
}

/* ===================================================================
   SECTIONS & LAYOUTS
   =================================================================== */

.about,
.services,
.gallery,
.contact {
  position: relative;
  flex-shrink: 0;
}

.about,
.gallery {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.services {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 4.5rem 1.5rem 3rem 1.5rem;
}

.about {
  background: var(--bg-section);
  padding: 1.5rem;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(26, 54, 93, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(43, 119, 173, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.services {
  background: var(--bg-color);
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(26, 54, 93, 0.02) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(43, 119, 173, 0.02) 50%, transparent 51%);
  background-size: 40px 40px;
  pointer-events: none;
}

.gallery {
  background: linear-gradient(135deg, var(--bg-alt-color) 0%, var(--bg-color) 100%);
  padding: 3.5rem 1.5rem 1.5rem 1.5rem;
}

.gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(43, 119, 173, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact {
  background: var(--bg-color);
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(26, 54, 93, 0.02) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(43, 119, 173, 0.02) 50%, transparent 51%);
  background-size: 60px 60px;
  pointer-events: none;
}

.section-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===================================================================
   SECTION HEADINGS
   =================================================================== */

section h2 {
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.services > .section-content-wrapper > h2,
.gallery > .section-content-wrapper > h2,
.contact .section-content-wrapper > h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

/* ===================================================================
   ABOUT SECTION
   =================================================================== */

.about-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.about-text {
  width: 100%;
  margin-bottom: 1.8rem;
  text-align: center;
}

.about-text p {
  margin: 0.6rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-text b {
  color: var(--primary-color);
  font-weight: 600;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.feature {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 16px 16px 0 0;
}

.feature:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px var(--shadow-medium);
  border-color: var(--primary-color);
}

.feature h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-logo);
}

.feature p {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===================================================================
   PRODUCT GRID
   =================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.product-card-item {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 8px 25px var(--shadow-light);
}

.product-card-item.hidden-product {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.product-grid.expanded .product-card-item.hidden-product {
  display: block;
  animation: fadeInProduct 0.5s ease forwards;
}

@keyframes fadeInProduct {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-grid.expanded .view-more-card {
  order: 12;
}

.view-more-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 2px dashed var(--primary-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
}

.view-more-card i.fa-th-large {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.view-more-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.view-more-text span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.view-more-arrow {
  font-size: 0.9rem !important;
  color: var(--primary-color);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more-card.expanded .view-more-arrow {
  transform: rotate(90deg);
}

.view-more-card:hover {
  background: var(--primary-color);
  border-style: solid;
}

.view-more-card:hover i,
.view-more-card:hover span {
  color: #fff;
}

.view-more-card:hover i.fa-th-large {
  transform: scale(1.2);
}

.product-card-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-card-item:hover::after {
  opacity: 0.08;
}

.product-card-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px var(--shadow-medium);
  border-color: var(--primary-color);
}

.product-card-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.product-card-item:hover img {
  transform: scale(1.08);
}

.product-card-item .product-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.9rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ===================================================================
   SERVICES SECTION
   =================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.service-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow-light);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.service-card:hover::after {
  opacity: 0.06;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-heavy);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 0.6rem;
  background: var(--glass-bg);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.service-card-header .service-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-card-title {
  flex: 1;
}

.service-card-title h3 {
  margin-bottom: 0.2rem;
}

.service-card-title p {
  margin-bottom: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-light);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
  font-size: 1rem;
  font-weight: 700;
}

.service-card p {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  line-height: 1.35;
  font-size: 0.8rem;
  text-align: justify;
}

.service-card ul {
  margin-top: 0.5rem;
  padding-left: 0;
  position: relative;
  z-index: 2;
  list-style: none;
}

.service-card ul li {
  padding: 0.15rem 0 0.15rem 1.2rem;
  color: var(--text-light);
  position: relative;
  font-size: 0.75rem;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.8rem;
}

/* ===================================================================
   GALLERY & CAROUSEL
   =================================================================== */

.carousel-container {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 25px;
  background: rgba(235, 242, 250, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(26, 54, 93, 0.2);
  box-shadow: 0 8px 32px rgba(26, 54, 93, 0.15);
  padding: 0.45rem;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
  height: auto;
}

.carousel-item {
  position: relative;
  flex: 0 0 100%;
  padding: 8px;
  box-sizing: border-box;
}

html[data-theme="dark"] .carousel-container {
  background: rgba(26, 32, 44, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 33.34%;
  }
}

.carousel-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

/* Subtle glass morphism caption - static for both modes (over white images) */
.carousel-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(26, 54, 93, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(102, 102, 102, 0.15);
  padding: 0.9rem 1.3rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a365d;
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-caption:hover {
  background: rgba(26, 54, 93, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 54, 93, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(26, 54, 93, 0.25);
}

/* Subtle glass morphism buttons - static for both modes (over white images) */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  padding: 0;
  background: rgba(26, 54, 93, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(26, 54, 93, 0.15);
  color: #1a365d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-button:hover {
  background: rgba(26, 54, 93, 0.9);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 24px rgba(26, 54, 93, 0.25);
  border-color: transparent;
}

.carousel-button.prev {
  left: 1.2rem;
}

.carousel-button.next {
  right: 1.2rem;
}

/* ===================================================================
   CONTACT SECTION
   =================================================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
}

.contact-content::-webkit-scrollbar {
  width: 6px;
}

.contact-content::-webkit-scrollbar-track {
  background: transparent;
}

.contact-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.contact-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.contact-info,
.contact-form {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px var(--shadow-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  font-family: var(--font-logo);
}

.contact-info h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.contact-info > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.contact-details {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-details p {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1rem;
  margin: 0;
  font-family: var(--font-logo);
}

.contact-details i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
  word-break: break-word;
}

.contact-details a:hover {
  color: var(--accent-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: flex-start;
}

.form-group {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--glass-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
  outline: none;
  background: var(--bg-color);
}

.form-group textarea {
  resize: none;
  min-height: 65px;
  max-height: 80px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.25);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 0.3rem;
  align-self: flex-start;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(26, 54, 93, 0.35);
}

.submit-btn i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.submit-btn:hover i {
  transform: translateX(2px);
}

/* ===================================================================
   FOOTER
   =================================================================== */

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0.5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  margin: 0;
  z-index: 3;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(74, 158, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(43, 119, 173, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0rem 2rem;
}

footer p {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  opacity: 0.9;
  color: #ffffff;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.mobile-call-button {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.25);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}

.mobile-call-button:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 30px rgba(26, 54, 93, 0.35);
}

/* ===================================================================
   ANIMATIONS & KEYFRAMES
   =================================================================== */

@keyframes welding {
  0%,
  2%,
  4%,
  12%,
  60%,
  100% {
    opacity: 0;
  }
  1%,
  3%,
  5%,
  11%,
  13%,
  59% {
    opacity: 1;
  }
}

@keyframes sparks-neg-X {
  0% {
    opacity: 1;
    transform: translateY(0%);
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(1500%) translateX(-5px);
  }
}

@keyframes sparks-pos-X {
  0% {
    opacity: 1;
    transform: translateY(0%) rotate(0);
  }
  93% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(1500%) translateX(5px);
  }
}

@keyframes strobe {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

@keyframes move-trolly-components {
  0% {
    transform: translateX(var(--transX1)) translateY(var(--transY1)) scale(var(--scale1));
  }
  25% {
    transform: translateX(var(--transX2)) translateY(var(--transY2)) scale(var(--scale1));
  }
  75% {
    transform: translateX(var(--transX3)) translateY(var(--transY3)) scale(var(--scale2));
  }
  100% {
    transform: translateX(var(--transX4)) translateY(var(--transY4)) scale(var(--scale2));
  }
}

@keyframes move-cable {
  0%,
  100% {
    stroke-dashoffset: 970;
  }
  25%,
  75% {
    stroke-dashoffset: 543;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 1024px) {
  .mobile-call-button {
    display: block;
  }

  footer {
    padding: 0.8rem 0;
  }

  footer p {
    font-size: 0.9rem;
  }

  .about,
  .contact {
    min-height: auto;
    padding: 3rem 2rem;
  }

  .contact {
    padding: 1.5rem;
    height: 100vh;
  }

  .contact .section-content-wrapper > h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: calc(100vh - 220px);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1002;
  }

  .floating-navbar {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    transform: none;
    height: 100vh;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 2rem;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  html[data-theme="dark"] .floating-navbar {
    background: rgba(15, 23, 42, 0.98);
  }

  .floating-navbar.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
  }

  .nav-link {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-text-surya,
  .logo-text-steel {
    font-size: 1.2rem;
  }

  .logo-monogram {
    height: 28px;
  }

  .nav-content {
    gap: 1rem;
  }

  section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .view-more-card {
    min-height: 160px;
  }

  .carousel-item img {
    height: 220px;
  }

  .carousel-button {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: calc(100vh - 200px);
  }

  .contact {
    padding: 1rem;
    height: 100vh;
  }

  .contact .section-content-wrapper > h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  footer {
    padding: 0.7rem 0;
  }

  footer p {
    font-size: 0.85rem;
  }

  .footer-content {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  }

  .contact-info,
  .contact-form {
    padding: 1.2rem;
    border-radius: 12px;
  }

  .contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .contact-info > p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .contact-details p {
    font-size: 0.75rem;
    gap: 0.6rem;
  }

  .contact-details i {
    font-size: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .form-group textarea {
    min-height: 60px;
    max-height: 75px;
  }

  .submit-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.8rem;
  }
}

.limit {
  max-height: 80vh;
  max-width: 100vh;
  width: calc((768 / 1024) * 107%);
  bottom: 0;
}