/* ---------- General Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  line-height: 1.6;
  font-size: 16px;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e3d59; /* default, overridden in sections */
}

.nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ff9800; /* highlight */
}

/* ---------- Landing Page Cards ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
}

.card {
  width: 280px;
  height: 220px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s, box-shadow 0.4s;
  background: #ffffff;
  text-align: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 1rem;
}

.card .cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #ff9800;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.card .cta:hover {
  background-color: #e68900;
}

.card-railway {
  background: linear-gradient(135deg, #1e3d59, #3a3a3a);
  color: #ffffff;
}

.card-agri {
  background: linear-gradient(135deg, #9acd32, #ffeb3b);
  color: #333333;
}

/* ---------- Hero Sections ---------- */
.rail-hero, .agri-hero {
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
}

.rail-hero {
  background: linear-gradient(135deg, #1e3d59, #3a3a3a);
}

.agri-hero {
  background: linear-gradient(135deg, #9acd32, #ffeb3b);
  color: #333;
}

.rail-hero h1, .agri-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.rail-hero p, .agri-hero p {
  font-size: 1.2rem;
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.product-card h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #1e3d59;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.price-row .btn.buy {
  background-color: #ff9800;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.price-row .btn.buy:hover {
  background-color: #e68900;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #1e3d59;
  color: #ffffff;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.agriculture .site-footer {
  background-color: #9acd32;
  color: #333;
}

/* ---------- Reveal on Scroll Animation ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-align: center;
  background-color: #ff9800;
  color: #fff;
  font-weight: bold;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #e68900;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
  }
  
  .nav a {
    margin: 0.5rem 0;
  }
  
  .cards {
    flex-direction: column;
    align-items: center;
  }
}
