/* ==========================================================================
   Tatanagar Hi-Tech Casting Private Limited - Master Stylesheet
   Independent Heavy Iron Foundry Enterprise (https://tatanagarcasting.com/)
   Foundry Plant: 2nd Phase Industrial Area, Plot C71, PS Adityapur, Adityapur, Seraikela-Kharsawan, Jharkhand - 832109
   Strict Rule: All presentation and visual styles centralized here (NO inline CSS)
   ========================================================================== */

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* ==================== CORE LAYOUT & ZERO CLS STABILIZERS ==================== */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: #ffffff;
}

main {
  padding-top: 7rem; /* 112px matching header height */
  min-height: 80vh;
}

.logo-header-img {
  height: 48px;
  width: auto;
  aspect-ratio: 240 / 58;
  display: block;
}

/* Material Symbols Icon Stabilizer (Prevents raw ligature text expansion layout shift) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  width: 1em;
  height: 1em;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  vertical-align: middle;
  text-align: center;
  user-select: none;
}

/* Hero Slider Track Explicit Dimensions (Prevents 0.26 CLS) */
.hero-slider-track {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background-color: #080d1a;
}
@media (min-width: 1024px) {
  .hero-slider-track {
    height: 700px;
  }
}
@media (min-width: 1280px) {
  .hero-slider-track {
    height: 760px;
  }
}

/* Custom Corporate Industrial Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #e51923;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c8101a;
}

/* Glassmorphism Navigation Bar */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-dark {
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Navigation Active & Hover Underline Effect */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: -4px;
  left: 0;
  background: #e51923;
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Slider Transition */
.hero-slide {
  transition: opacity 1000ms ease-in-out;
}

/* Interactive Card & Button Hover Elevate */
.card-hover-elevate {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover-elevate:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(229, 25, 35, 0.14);
}

/* ==================== INNER PAGE HERO BANNER ==================== */
.inner-hero-banner {
  background: linear-gradient(135deg, #080d1a 0%, #0f172a 60%, #1a101f 100%);
  position: relative;
  overflow: hidden;
}

.inner-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(229, 25, 35, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255, 77, 45, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  pointer-events: none;
}

/* Molten Flame Glow Accents */
.flame-glow-badge {
  background: linear-gradient(135deg, rgba(229, 25, 35, 0.15) 0%, rgba(255, 77, 45, 0.08) 100%);
  border: 1px solid rgba(229, 25, 35, 0.35);
}

/* ==================== TECHNICAL METALLURGY SPEC TABLE ==================== */
.spec-table-container {
  overflow-x: auto;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.spec-table thead {
  background-color: #0f172a;
  color: #f8fafc;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.spec-table th {
  padding: 0.875rem 1rem;
}

.spec-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}

.spec-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.spec-table tbody tr:hover {
  background-color: #fee2e2;
}

.spec-table td {
  padding: 0.875rem 1rem;
  color: #334155;
}

.spec-table td.highlight-col {
  font-weight: 600;
  color: #0f172a;
}

/* ==================== PROCESS TIMELINE / STEP CARDS ==================== */
.process-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.process-step-card:hover {
  border-color: #e51923;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(229, 25, 35, 0.12);
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: #e51923;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 10px rgba(229, 25, 35, 0.35);
}

/* ==================== PRODUCT FILTER TABS ==================== */
.product-filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.product-filter-btn:hover {
  border-color: #e51923;
  color: #e51923;
}

.product-filter-btn.active {
  background: #e51923;
  color: #ffffff;
  border-color: #e51923;
  box-shadow: 0 4px 12px rgba(229, 25, 35, 0.3);
}

/* ==================== INDUSTRIAL STAT CALLOUT COUNTER ==================== */
.stat-box {
  background: linear-gradient(180deg, #131f33 0%, #0b0f19 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e51923, #ff4d2d);
}

/* ==================== INTERACTIVE TOAST NOTIFICATION ==================== */
.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: #0f172a;
  color: #ffffff;
  border-left: 4px solid #e51923;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.toast-hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}
