/* ===== Base Styles & Variables ===== */
:root {
  --primary-color: #ed0404;
  --secondary-color: #ed0404;
  --accent-color: #ffc107;
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #f8f8f8;
  --bg-dark: #222;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed);
}

/* ===== Layout Components ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header-container {
  width: 100%;
  position: relative;
  z-index: 1000;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 1rem;
  font-size: 0.875rem;
  text-align: center;
  background-color: #f1f1f1;
  color: #666;
  margin: 1rem auto;
  max-width: var(--container-width);
  border-radius: var(--border-radius);
}

.breadcrumb a {
  color: var(--secondary-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background: url('../wireharnessimages/4.png') center/cover no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.overlay {
  position: relative;
  text-align: center;
  padding: 2rem;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.overlay h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.underline {
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 1rem auto 2rem;
}

/* ===== Button Styles ===== */
.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
}

.cta-button:hover {
  background: #247a3d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Content Sections ===== */
.content, .advantages, .customization, .application {
  padding: 4rem 0;
}

.content-grid, .customization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.text-content {
  flex: 1;
  min-width: 300px;
}

.image-content img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* ===== Lists ===== */
.connection-list, .specs-list ul {
  list-style: none;
  margin: 1.5rem 0;
}

.connection-list li, .specs-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.connection-list i, .specs-list i {
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* ===== Advantages Grid ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-card {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-speed);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(45,143,73,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.icon-box i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* ===== Tabs Section ===== */
.industry-tabs {
  margin-top: 3rem;
}

.tab {
  margin-bottom: 1rem;
}

.tab input {
  display: none;
}

.tab label {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  margin-right: 0.5rem;
}

.tab label:hover {
  background: #e0e0e0;
}

.tab label i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.tab input:checked + label {
  background: var(--primary-color);
  color: var(--text-light);
}

.tab input:checked + label i {
  color: var(--text-light);
}

.tab-content {
  display: none;
  background: var(--text-light);
  padding: 2rem;
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.tab input:checked ~ .tab-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.tab-content img {
  width: 100%;
  border-radius: var(--border-radius);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 4rem 0;
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.9);
}

/* ===== AOS Animations ===== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
  transform: translateY(0);
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
  .hero {
    height: 350px;
  }
  
  .overlay h1 {
    font-size: 2rem;
  }
  
  .tab-content {
    grid-template-columns: 1fr;
  }
  
  .content-grid, .customization-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 300px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .tab label {
    display: block;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
  }
  
  .tab-content {
    border-radius: var(--border-radius);
  }
}

@media (max-width: 576px) {
  .hero {
    height: 250px;
  }
  
  .overlay h1 {
    font-size: 1.75rem;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
  }
}