html {
  scroll-behavior: smooth;
}

/* Reveal-on-scroll: content is visible by default (no JS dependency).
   Only when JS confirms it can run does .js-anim gate the fade-in. */
[data-aos] {
  opacity: 1;
  transform: none;
}

.js-anim [data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim [data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a;
  color: white;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  z-index: 9999;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 13px;
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  background: url('../img/metal-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.logo-top {
  width: 240px;
  margin-bottom: 25px;
  transform: translateY(-20px);
  filter: drop-shadow(0 0 20px rgba(196,122,58,0.7));
}

.bg-logo {
  position: absolute;
  width: 400px;
  max-width: 80%;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero h1 {
  font-size: 48px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.tagline {
  color: #C47A3A;
  margin-bottom: 10px;
  font-size: 22px;
}

.subtitle {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, #C47A3A, #e6a15d);
  color: black;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(196,122,58,0.6);
}

.btn-small {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-whatsapp {
  background: linear-gradient(45deg, #1fae52, #25D366);
  color: white;
}

/* SECTIONS */
section {
  padding: 100px 20px;
}

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 160px 20px 60px;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.95)), url('../img/metal-bg.jpg') center/cover no-repeat;
}

.page-hero h1 {
  color: white;
  font-size: 40px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* SERVICES */
.services {
  text-align: center;
}

.services h2 {
  color: #C47A3A;
  margin-bottom: 40px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

/* CARDS */
.card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.4s;
  text-decoration: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transition: 0.4s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.card:hover::before {
  transform: scale(1.08);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(196,122,58,0.3);
}

.card-content {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.card h3 {
  color: #C47A3A;
}

.card p {
  font-size: 14px;
}

.copper::before { background-image: url('../img/copper.jpg'); }
.aluminum::before { background-image: url('../img/aluminum.jpg'); }
.brass::before { background-image: url('../img/brass.jpg'); }
.steel::before { background-image: url('../img/steel.jpg'); }
.hms::before { background-image: url('../img/hms.jpg'); }
.motor::before { background-image: url('../img/motor.jpg'); }

/* WHY SECTION */
.why {
  text-align: center;
}

.why h2 {
  color: #C47A3A;
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.why-card {
  background: rgba(255,255,255,0.04);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(196,122,58,0.2);
}

.why-card h3 {
  color: #C47A3A;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: #ccc;
}

/* MATERIALS DETAIL PAGE */
.materials-detail {
  max-width: 1000px;
  margin: auto;
  padding-top: 40px;
}

.material-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
  scroll-margin-top: 90px;
}

.material-image {
  height: 220px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.material-copy h2 {
  color: white;
  margin-bottom: 4px;
}

.material-sub {
  color: #C47A3A;
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.material-copy p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ABOUT PAGE */
.about-body {
  max-width: 900px;
  margin: auto;
}

.about-copy p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}

.cta-block {
  text-align: center;
  margin-top: 50px;
}

/* CONTACT PAGE */
.contact-body {
  max-width: 1000px;
  margin: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  padding: 30px;
  border-radius: 12px;
}

.contact-form label {
  font-size: 13px;
  color: #ccc;
  margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 10px 12px;
  color: white;
  font-family: inherit;
  font-size: 14px;
}

.contact-form button {
  margin-top: 15px;
  align-self: flex-start;
}

.contact-side {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.contact-side h3 {
  color: #C47A3A;
  margin-bottom: 10px;
}

.contact-side p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-success {
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 15px 20px;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.4);
  border-radius: 8px;
  text-align: center;
}

/* GENERIC CONTENT */
.generic-content {
  max-width: 800px;
  margin: auto;
  color: #ccc;
  line-height: 1.8;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  width: 100px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.site-footer p {
  color: #888;
  font-size: 13px;
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.whatsapp img {
  width: 26px;
}

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

  .hero {
    height: auto;
    padding: 110px 20px 70px;
  }

  .navbar {
    top: 10px;
    gap: 10px;
    padding: 6px 12px;
  }

  .logo-top {
    width: 140px;
    transform: none;
  }

  .bg-logo {
    width: 250px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .tagline {
    font-size: 18px;
  }

  .page-hero {
    padding: 130px 20px 50px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .material-row {
    grid-template-columns: 1fr;
  }

  .material-image {
    height: 180px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
