@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

:root {
  --yellow: #FFD700;
  --red: #FF4C4C;
  --dark-bg: #121212;
  --light-bg: #FFFFFF;
  --dark-text: #FFFFFF;
  --light-text: #121212;
  --light-gray-text: #6e6e6e;
}

/* ========================================= */
/* 1. BASE STYLES & RESET                    */
/* ========================================= */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

/* Visually hide labels (accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================= */
/* 2. TOP HEADING BAR                        */
/* ========================================= */
.heading {
  background-color: #222222;
  padding: 5px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.heading div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.heading p {
  color: #828282;
  margin: 0;
  font-size: 0.9rem;
}

/* ========================================= */
/* 3. NAVIGATION                             */
/* ========================================= */
nav {
  position: sticky;
  top: 0;
  background-color: rgba(18, 18, 18, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

nav .logo img {
  height: 50px; /* Adjusted for better proportion */
  width: auto;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li a {
  font-weight: 500;
  color: var(--dark-text);
}

nav ul li a:hover {
  color: var(--yellow);
}

.cta-button {
  background-color: #810002;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
}

.cta-button:hover {
  transform: scale(1.05);
  background-color: #a00003;
}

/* ========================================= */
/* 4. HERO SECTIONS                          */
/* ========================================= */
/* Home Page Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("image/hero-image.jpg") center/cover no-repeat;
  height: 80vh; /* Reduced from 100vh for better fold visibility */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3em;
  margin: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero p {
  font-size: 1.5em;
  margin: 20px 0;
  animation: fadeInUp 1.5s ease forwards;
}

/* Standard Page Hero (About, Products, Partners) */
.page-hero, .partners-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('image/hero-image.jpg');
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 3px solid var(--yellow);
}

.hero-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.hero-subtitle {
  color: #cccccc;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================= */
/* 5. GENERAL SECTIONS & COMPONENTS          */
/* ========================================= */
.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: var(--yellow);
}

.spacing {
  padding: 80px 20px;
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

/* ========================================= */
/* 6. HOME: PRODUCTS GRID                    */
/* ========================================= */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.product-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s, background-color 0.3s;
}

.product-card img {
  max-width: 100%;
  border-radius: 5px;
  height: 200px;
  object-fit: cover;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-link:hover .product-card {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================= */
/* 7. HOME: VIDEO SECTION                    */
/* ========================================= */
.video-section {
  background-color: #121212;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #333;
}

.video-header h2 {
  color: #ffffff;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  border-bottom: 4px solid var(--yellow);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* ========================================= */
/* 8. HOME: LOGO SLIDER                      */
/* ========================================= */
.slider-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 60px auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 25%; /* 4 logos visible */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.slide img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}



/* ========================================= */
/* 9. ABOUT PAGE                             */
/* ========================================= */
.about-section {
  padding: 80px 40px;
  background-color: #f8f8f8;
  color: #333;
  text-align: center;
}

.about-narrative-section {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  align-items: center;
  gap: 40px;
}

.narrative-content, .narrative-image-container {
  flex: 1;
}

.narrative-content h2 {
  font-size: 2em;
  color: var(--yellow);
  margin-bottom: 20px;
}

.narrative-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.highlight-emphasis {
  font-weight: 800;
  color: #FF8C00;
}

.highlight-background {
  background-color: var(--yellow);
  font-weight: 700;
  color: var(--light-text);
  padding: 2px 5px;
  border-radius: 3px;
}

/* Modern Values Section */
.values-section-modern {
  background-color: #121212;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #333;
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.value-item {
  background: #1e1e1e;
  padding: 40px 30px;
  border-radius: 8px;
  border-top: 4px solid #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
  transform: translateY(-10px);
  border-top-color: var(--yellow);
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--yellow);
  color: #121212;
  font-size: 3rem;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Location Section */
.location-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
}

.location-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.address-text {
  padding: 20px;
  background-color: #252525;
  border: 1px solid #444;
  border-radius: 5px;
}
/* --- Fix for About Us Title --- */
.about-section-title {
  text-align: center;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  
  /* 1. Set Text to Black */
  color: black; 
  
  /* 2. Force Uppercase (so it says "ABOUT US") */
  text-transform: uppercase; 
  
  position: relative;
  padding-bottom: 15px;
}

/* 3. Set Underline to Red */
.about-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  
  /* Use your red variable defined at the top of the file */
  background-color: var(--red); 
}

/* ========================================= */
/* 10. PRODUCT CATALOG (Technical List)      */
/* ========================================= */
.catalog-container {
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 50px;
  min-height: 100vh;
}

/* Sidebar */
.catalog-sidebar {
  flex: 0 0 240px;
  display: none; /* Hidden on mobile */
}

@media (min-width: 900px) {
  .catalog-sidebar { display: block; }
}

.sidebar-sticky {
  position: sticky;
  top: 140px;
  border-right: 1px solid #333;
  padding-right: 20px;
}

.sidebar-title {
  color: var(--yellow);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.cat-list-v4 a {
  display: block;
  color: #888;
  padding: 12px 0;
  border-bottom: 1px solid #222;
  transition: all 0.2s;
}

.cat-list-v4 a:hover, .cat-list-v4 a.active {
  color: #fff;
  padding-left: 10px;
  border-left: 3px solid var(--yellow);
}

/* Main Feed */
.catalog-feed { flex: 1; }

.cat-section-v4 {
  margin-bottom: 20px;
  scroll-margin-top: 140px;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.cat-header-v4 {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #222;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.cat-header-v4 i {
  font-size: 1.5rem;
  color: var(--yellow);
}

.cat-header-v4 h2 {
  margin: 0;
  font-size: 1.5rem;
  flex: 1;
}

/* Chevron */
.cat-header-v4::after {
  content: '\f078'; /* FontAwesome Chevron Down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #888;
  transition: transform 0.4s;
}

.cat-section-v4.active .cat-header-v4::after {
  transform: rotate(180deg);
  color: var(--yellow);
}

/* Product List (Accordion Body) */
.product-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
  padding: 0 20px;
  background-color: #1a1a1a;
}

.cat-section-v4.active .product-list {
  padding-top: 20px;
  padding-bottom: 20px;
  opacity: 1;
}

/* Product Row Item */
.prod-item-row {
  display: flex;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.prod-item-row:hover {
  border-color: #555;
  transform: translateX(5px);
}

.prod-thumb {
  flex: 0 0 200px;
  background: #000;
}

.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.prod-content {
  flex: 1;
  padding: 20px;
}

.prod-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px; 
  margin-bottom: 10px;
}

.cert-badge {
  background-color: #333;
  color: var(--yellow);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--yellow);
  white-space: nowrap;
  height: fit-content;
  flex-shrink: 0;
  margin-top: 5px;
}

.prod-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.prod-specs li {
  font-size: 0.85rem;
  color: #888;
}

.prod-specs i {
  color: var(--yellow);
  margin-right: 5px;
}

.prod-action {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #333;
  background-color: #252525;
}

.btn-enquire {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.btn-enquire:hover {
  background-color: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

/* Partial Collapse Logic */
.product-list.partial-collapse .prod-item-row:nth-child(n+5) {
  display: none;
}

.product-list.partial-collapse .prod-item-row:nth-child(4) {
  position: relative;
  cursor: pointer;
}

.product-list.partial-collapse .prod-item-row:nth-child(4) > * {
  filter: blur(4px) brightness(0.7);
  pointer-events: none;
}

.product-list.partial-collapse .prod-item-row:nth-child(4)::after {
  content: attr(data-view-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--yellow);
  color: #121212;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  white-space: nowrap;
}

/* ========================================= */
/* 11. DISTRIBUTORS & PARTNERS PAGE          */
/* ========================================= */
.partners-container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.partner-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.partner-row {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  border-left: 5px solid transparent;
}

.partner-row:hover {
  transform: translateY(-3px);
  border-left-color: var(--yellow);
}

.partner-logo-box {
  flex: 0 0 220px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-right: 1px solid #eee;
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.partner-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partner-content h3 {
  margin: 0 0 10px 0;
  color: #222;
  font-size: 1.4rem;
}

.partner-content p {
  color: #555;
  font-size: 0.95rem;
}

.partner-tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: bold;
  text-transform: uppercase;
  width: fit-content;
}

/* ========================================= */
/* 12. POPUP MODAL                           */
/* ========================================= */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #1e1e1e;
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  border-top: 5px solid var(--yellow);
  animation: slideIn 0.3s ease-out;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  box-sizing: border-box;
}

.popup-content input:focus, .popup-content textarea:focus {
  border-color: var(--yellow);
  outline: none;
}

.form-actions {
  display: flex;
  gap: 15px;
}

.form-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

.btn-submit {
  background-color: var(--yellow);
  color: #000;
}

.btn-cancel {
  background-color: transparent;
  border: 1px solid #555 !important;
  color: #ccc;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* 13. FOOTER                                */
/* ========================================= */
.site-footer {
  background-color: #0d0d0d;
  color: #b0b0b0;
  padding-top: 70px;
  font-size: 0.95rem;
  border-top: 4px solid var(--yellow);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--yellow);
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 20px;
  filter: grayscale(100%) brightness(200%);
}

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

.footer-links a:hover {
  color: var(--yellow);
  padding-left: 5px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  background-color: #222;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  background-color: var(--yellow);
  color: #000;
}

/* Flip phone icon */
.footer-contact .fa-phone-alt {
  transform: scaleX(-1);
  display: inline-block;
  margin-right: 10px;
}

.footer-bottom {
  background-color: #050505;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1a1a1a;
}

/* ========================================= */
/* 14. MOBILE RESPONSIVENESS                 */
/* ========================================= */
@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .catalog-container { flex-direction: column; }
  .catalog-sidebar { display: block; width: 100%; overflow-x: auto; }
  .sidebar-sticky { position: static; border: none; padding: 0; }
  .cat-list-v4 { display: flex; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #333; }
  .cat-list-v4 a { border: 1px solid #444; padding: 8px 15px; border-radius: 20px; white-space: nowrap; }
}

@media (max-width: 768px) {
  .about-narrative-section { flex-direction: column; }
  .partner-row { flex-direction: column; text-align: center; }
  .partner-logo-box { flex: 0 0 150px; width: 100%; border-right: none; border-bottom: 1px solid #eee; }
  .footer-container { grid-template-columns: 1fr; }
  .prod-item-row { flex-direction: column; }
  .prod-thumb { height: 200px; }
  .prod-action { border-left: none; border-top: 1px solid #333; padding: 15px; }
  .btn-enquire { width: 100%; }
}