/* =========================================
   NARAYAN CABLES - Global Styles
   Color: Red (#E31E24), Black, White
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --red:         #E31E24;
  --red-dark:    #b01519;
  --red-light:   #ff3b41;
  --black:       #0d0d0d;
  --black-2:     #141414;
  --black-3:     #1c1c1c;
  --black-4:     #252525;
  --gray-dark:   #333333;
  --gray:        #555555;
  --gray-light:  #888888;
  --white:       #ffffff;
  --white-90:    rgba(255,255,255,0.9);
  --white-70:    rgba(255,255,255,0.7);
  --white-50:    rgba(255,255,255,0.5);
  --white-10:    rgba(255,255,255,0.08);
  --red-glow:    rgba(227, 30, 36, 0.3);
  --red-subtle:  rgba(227, 30, 36, 0.1);

  --font-main:    'Outfit', sans-serif;
  --font-display: 'Rajdhani', sans-serif;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   30px;

  --shadow-red:  0 4px 30px rgba(227,30,36,0.4);
  --shadow-dark: 0 8px 40px rgba(0,0,0,0.6);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  margin: 0;
  padding: 0;
}

#main-content, main, section, footer {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

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

ul { list-style: none; }

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-3); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ---- Selection ---- */
::selection {
  background: var(--red);
  color: var(--white);
}

/* ---- Utility Classes ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.section-pad { padding: 100px 0; position: relative; }
.section-pad-sm { padding: 70px 0; position: relative; }

.text-red    { color: var(--red); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray-light); }
.text-center { text-align: center; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title span { color: var(--red); }

.section-desc {
  font-size: 16px;
  color: var(--white-70);
  max-width: 620px;
  line-height: 1.7;
}

.red-divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
}

.red-divider.center { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 8px 35px rgba(227,30,36,0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-subtle);
  transform: translateY(-2px);
}

/* ---- Glow Divider Line ---- */
.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
  opacity: 0.4;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--white-50);
  margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--red); }
.breadcrumb i { font-size: 10px; opacity: 0.5; }
.breadcrumb .current { color: var(--white); font-weight: 600; }

/* ---- Global Animation Keyframes ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(227, 30, 36, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

/* Guarantee Hero Section Visibility across all pages */
#hero, #hero *, 
#about-hero, #about-hero *, 
#contact-hero, #contact-hero *, 
#products-hero, #products-hero *, 
.products-hero-banner, .products-hero-banner *,
#blog-hero, #blog-hero *, 
.hero-content, .hero-content *, 
.about-hero-content, .about-hero-content *,
.contact-hero-content, .contact-hero-content *,
.hero-title, .about-hero-title, .contact-hero-title,
.hero-subtitle, .about-hero-desc, .contact-hero-desc,
.hero-badge, .breadcrumb {
  opacity: 1 !important;
  visibility: visible !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---- Responsive Overrides ---- */
@media (max-width: 1024px) { .section-pad { padding: 80px 0; } }
@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .section-pad-sm { padding: 50px 0; }
  .container { padding: 0 16px !important; width: 100% !important; max-width: 100% !important; }

  .reveal-left, .reveal-right {
    transform: translateY(20px) !important;
  }
  .reveal-left.visible, .reveal-right.visible {
    transform: translateY(0) !important;
  }
}
@media (max-width: 480px) {
  .section-pad { padding: 50px 0; }
  .btn { padding: 12px 24px; font-size: 13px; }
}
