/* --- GOOGLE FONTS & VARIABLES --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Poppins:wght@300;400;500;700&display=swap");

:root {
  /* LIGHT THEME (Default) */
  --primary-red: #d90429;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #f5f5f5;
  --border-color: #dddddd;
  --footer-bg: #111111; /* Footer stays dark for contrast */
  --footer-text: #cccccc;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
  /* DARK THEME */
  --bg-color: #050505;
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
  --nav-bg: rgba(5, 5, 5, 0.95);
  --card-bg: #1a1a1a;
  --border-color: #333333;
  --footer-bg: #000000;
  --footer-text: #888888;
}

/* --- GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.3s,
    color 0.3s;
}
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}
a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}
ul {
  list-style: none;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.text-red {
  color: var(--primary-red);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: transparent;
  border-color: var(--primary-red);
  color: var(--primary-red);
  box-shadow: 0 0 15px rgba(217, 4, 41, 0.3);
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
}
.logo img {
  height: 70px;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-red);
}

/* Theme Toggle Button */
#theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-color);
  transition: 0.3s;
}
#theme-toggle:hover {
  color: var(--primary-red);
  transform: scale(1.1);
}

/* --- PAGE HEADERS --- */
.page-header {
  padding: 150px 0 50px;
  text-align: center;
  background: var(--card-bg);
  border-bottom: 2px solid var(--primary-red);
}
.page-header h1 {
  font-size: 3rem;
}

/* --- HOME: HERO --- */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
    url("../images/power-cables.png") center/cover;
  padding-top: 80px;
  color: #ffffff;
}
.hero-content {
  max-width: 800px;
  animation: slideUp 1s ease forwards;
}
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.2rem;
  color: #dddddd;
  margin-bottom: 30px;
}

/* --- HOME: DETAILED FEATURES (Block Elements) --- */
.features-section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-red);
  margin: 10px auto 0;
}
.feature-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-red);
  transition: var(--transition);
}
.feature-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.feature-icon {
  font-size: 4rem;
  color: var(--primary-red);
  flex: 0 0 80px;
  text-align: center;
}
.feature-text {
  flex: 1;
  min-width: 300px;
}
.feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.feature-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- HOME: HIGHLIGHTED PRODUCTS --- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.highlight-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.highlight-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-10px);
}
.highlight-card img {
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}
.highlight-card h3 {
  margin-bottom: 10px;
}
.highlight-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* --- PRODUCTS: DETAILED BLOCKS --- */
.products-section {
  padding: 80px 0;
}
.product-category-title {
  font-size: 2rem;
  color: var(--primary-red);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin: 60px 0 30px;
}
.product-block {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  align-items: center;
}
.product-block:nth-child(even) {
  flex-direction: row-reverse;
} /* Alternating layout */
.product-block-img {
  flex: 1;
  min-width: 250px;
  text-align: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
}
.product-block-img img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.product-block-text {
  flex: 2;
  min-width: 300px;
}
.product-block-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.product-block-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.product-block-text ul {
  list-style: square inside;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* --- ABOUT & CONTACT --- */
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 80px 0;
}
.contact-card {
  background: var(--card-bg);
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  border-bottom: 4px solid var(--primary-red);
}
.contact-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 20px;
}

/* --- FOOTER (3 Column Flex) --- */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  margin-top: 50px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col {
  flex: 1;
  min-width: 250px;
}
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-red);
  display: inline-block;
  padding-bottom: 5px;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: var(--footer-text);
}
.footer-col ul li a:hover {
  color: var(--primary-red);
  padding-left: 5px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  } /* Mobile menu implementation needed for prod */
  .product-block:nth-child(even) {
    flex-direction: column;
  }
  .product-block {
    flex-direction: column;
  }
}
