/* ==========================================================================
   TexVeda Fabrics - Modern Textile Manufacturer Design System
   Coimbatore, Tamil Nadu, India
   ========================================================================== */

:root {
  --primary: #0b2239;
  --primary-dark: #061320;
  --primary-light: #163e63;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --blue-gradient: linear-gradient(135deg, #0b2239 0%, #1e3a8a 100%);
  --secondary: #2563eb;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(11, 34, 57, 0.08), 0 8px 10px -6px rgba(11, 34, 57, 0.04);
  --card-hover-shadow: 0 20px 35px -5px rgba(11, 34, 57, 0.15), 0 10px 15px -5px rgba(11, 34, 57, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.6);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* --- Top Header Info Bar --- */
.top-header {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header a {
  color: #cbd5e1;
}

.top-header a:hover {
  color: var(--accent-light);
}

.top-header-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-light);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Main Navbar --- */
.navbar-custom {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: var(--blue-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(11, 34, 57, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-icon-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--primary);
  display: block;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  padding: 8px 14px !important;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--secondary);
}

.navbar-nav .nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- Buttons --- */
.btn-primary-custom {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(11, 34, 57, 0.25);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.btn-accent:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* --- Big Hero Sliders --- */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-carousel .carousel-item {
  height: 82vh;
  min-height: 600px;
  max-height: 750px;
  position: relative;
}

.hero-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.hero-carousel .carousel-item.active .hero-slider-img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 19, 32, 0.92) 0%, rgba(6, 19, 32, 0.75) 50%, rgba(6, 19, 32, 0.4) 100%);
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title .text-gradient-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: #e2e8f0;
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 35px;
  line-height: 1.6;
}

.carousel-indicators [data-bs-target] {
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  margin: 0 5px;
  transition: var(--transition);
}

.carousel-indicators .active {
  background-color: var(--accent-light);
  width: 55px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  margin: 0 25px;
  transition: var(--transition);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: var(--accent);
  opacity: 1;
}

/* --- Floating Quick Stats Strip --- */
.quick-stats-strip {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 30px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 15px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(11, 34, 57, 0.06);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.stat-item:hover .stat-icon {
  background: var(--blue-gradient);
  color: #fff;
  transform: scale(1.08);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Section Titles & Badges --- */
.section-padding {
  padding: 90px 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

/* --- Product Cards --- */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: #cbd5e1;
}

.product-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(11, 34, 57, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-tagline {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-spec-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.product-spec-pill strong {
  color: var(--primary);
}

/* --- Features & Process Flow --- */
.process-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 35px 25px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--accent-light);
}

.process-step-num {
  position: absolute;
  top: 15px;
  right: 18px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #e2e8f0;
}

.process-icon {
  width: 72px;
  height: 72px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 22px auto;
  transition: var(--transition);
}

.process-card:hover .process-icon {
  background: var(--accent-gradient);
  color: #fff;
  transform: rotate(6deg) scale(1.05);
}

/* --- Machine Card --- */
.machine-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 25px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
}

.machine-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--secondary);
}

.machine-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.machine-icon {
  width: 50px;
  height: 50px;
  background: rgba(11, 34, 57, 0.08);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.machine-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.machine-meta {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- Gallery & Lightbox --- */
.gallery-filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 280px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 34, 57, 0.9) 0%, rgba(11, 34, 57, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-overlay-desc {
  color: #cbd5e1;
  font-size: 0.82rem;
}

/* --- Inner Page Banner --- */
.page-banner {
  background: var(--blue-gradient);
  position: relative;
  padding: 70px 0;
  color: #ffffff;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
}

.page-banner-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.page-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.page-breadcrumb a {
  color: #94a3b8;
}

.page-breadcrumb a:hover {
  color: var(--accent-light);
}

/* --- Contact & Inquiry Card --- */
.contact-info-card {
  background: var(--blue-gradient);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.form-control-custom {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  background-color: #ffffff;
  transition: var(--transition);
}

.form-control-custom:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1020;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  color: #ffffff;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* --- Footer --- */
.site-footer {
  background: #061320;
  color: #94a3b8;
  padding-top: 75px;
  border-top: 4px solid var(--accent);
}

.footer-brand-title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-heading {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}

.footer-bottom {
  padding: 25px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

/* --- Responsive Helpers --- */
@media (max-width: 991.98px) {
  .hero-carousel .carousel-item {
    height: 70vh;
    min-height: 520px;
  }
  .quick-stats-strip {
    margin-top: 20px;
  }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }
  .hero-carousel .carousel-item {
    height: 65vh;
    min-height: 480px;
  }
}
