/* ===== TARAS BATTERIES - MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&family=Roboto:wght@500&display=swap');

:root {
  --navy: #1B3664;
  --navy-dark: #0f2040;
  --navy-light: #2a4f8f;
  --blue-accent: #1E5CB3;
  --blue-btn: #1a4fa0;
  --green: #4CAF50;
  --text-dark: #1a1a2e;
  --text-gray: #333333;
  --text-light: #888;
  --bg-light: #f5f7fa;
  --bg-card: #f0f4f8;
  --white: #ffffff;
  --border: #dde3ec;
  --shadow: 0 4px 20px rgba(27, 54, 100, 0.1);
  --shadow-lg: 0 10px 40px rgba(27, 54, 100, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 15px rgba(27, 54, 100, 0.12);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-barcode {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 6px;
}

.logo-barcode span {
  display: block;
  width: 3px;
  background: var(--white);
  border-radius: 1px;
}

.logo-leaf {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50% 0 50% 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 2px;
}

.logo-sub {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-gray);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--blue-accent);
  background: rgba(30, 92, 179, 0.08);
}

.nav-social {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}

.nav-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--navy);
  transition: var(--transition);
}

.nav-social a:hover {
  background: var(--navy);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SLIDER ===== */
.hero {
  margin-top: 96px;
  position: relative;
  height: 540px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  /* light background for the text side */
}

.slide-image {
  width: 60%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--navy-dark);
}

/* Overlay completely removed so image is not hidden */

.slide.active {
  opacity: 1;
}

.slide-overlay {
  display: none;
}

.slide-content {
  width: 40%;
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 16px;
  color: var(--navy);
  opacity: 0;
  transform: translateX(40px);
}

.slide-content p {
  font-size: clamp(15px, 1.5vw, 18px);
  opacity: 0;
  max-width: 600px;
  font-weight: 500;
  color: var(--text-gray);
  transform: translateX(30px);
}

.slide.active .slide-content h1 {
  animation: heroPopUpRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.2s;
}

.slide.active .slide-content p {
  animation: heroPopUpRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.4s;
}

.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slide-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slide-dots span.active {
  background: var(--white);
  transform: scale(1.2);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--navy);
  border: none;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(27, 54, 100, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.slide-arrow:hover {
  background: var(--blue-accent);
  transform: translateY(-50%) scale(1.1);
}

.slide-arrow.prev {
  left: 20px;
}

.slide-arrow.next {
  right: 20px;
}

/* ===== HERO BANNER (inner pages) ===== */
.page-banner {
  margin-top: 96px;
  height: 350px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}


.page-banner h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 48px);
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 2px 5px rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* ===== SECTIONS ===== */
section {
  padding: 70px 0;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 100%;
  letter-spacing: 0%;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-title span {
  color: var(--blue-accent);
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 50px;
}

.text-center {
  text-align: center;
}

/* ===== SECTORS ===== */
.sectors {
  background: var(--white);
}

.sectors-marquee-outer {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sectors-marquee-outer::before,
.sectors-marquee-outer::after {
  content: '';
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.sectors-marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.sectors-marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.sectors-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: sectorsScroll 30s linear infinite;
}

.sectors-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes sectorsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.33333%);
  }
}

.sector-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  width: 250px;
  flex-shrink: 0;
  cursor: pointer;
  background-color: var(--navy-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.sector-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.sector-card:hover .sector-img {
  transform: scale(1.08);
}

.sector-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 32, 64, 0.2) 0%, rgba(15, 32, 64, 0.2) 20%, transparent 100%);
}

.sector-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}

/* ===== TRUSTED PARTNER ===== */
.trusted {
  background: var(--bg-light);
}

.trusted-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.trusted-left h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 100%;
  letter-spacing: 0%;
  margin-bottom: 16px;
}

.trusted-left h2 span {
  color: var(--blue-accent);
}

.trusted-left p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.trusted-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blue-btn);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-btn);
  padding: 11px 28px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--blue-btn);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--blue-btn);
  color: var(--white);
}

.trusted-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(30, 92, 179, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--blue-accent);
  flex-shrink: 0;
}

.stat-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.stat-text p {
  font-size: 13px;
  color: var(--text-gray);
}

/* ===== PRODUCT TABS ===== */
.products {
  background: var(--white);
}

.tab-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.products-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1020px;
  /* 3 cards * 300px + 2 gaps * 24px + padding */
  margin: 0 auto;
}

.products-slider {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0;
}

.products-slider::-webkit-scrollbar {
  display: none;
}

.products-grid {
  display: flex;
  gap: 24px;
  min-width: max-content;
  padding: 0 60px;
  transition: transform 0.3s ease;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(27, 54, 100, 0.3);
}

.slider-btn:hover {
  background: var(--blue-accent);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.slider-prev {
  left: 10px;
}

.slider-btn.slider-next {
  right: 10px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-name {
  padding: 16px 16px 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.product-spec {
  padding: 0 16px 16px;
  color: var(--text-gray);
  font-size: 14px;
}

.product-footer {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.product-footer:hover {
  background: var(--blue-accent);
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  padding: 14px 18px 4px;
}

.product-spec {
  font-size: 12px;
  color: var(--text-gray);
  padding: 0 18px 14px;
}

/* ===== EMPOWERING ===== */
.empowering {
  background: var(--bg-light);
}

.empowering-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.empowering-inner h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 100%;
  letter-spacing: 0%;
  margin-bottom: 20px;
}

.empowering-inner h2 span {
  color: var(--blue-accent);
}

.empowering-inner p {
  color: var(--text-gray);
  line-height: 1.9;
  font-size: 16px;
}

/* ===== CORE POWER ===== */
.core-power {
  background: var(--white);
  padding: 70px 0 200px;
}

.core-power h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  margin-bottom: 50px;
}

.core-power h2 span {
  color: var(--blue-accent);
}

.core-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 20px;
  max-width: 1140px;
  height: 560px;
  margin: 0 auto;
}

/* All image wrappers — card style */
.core-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: var(--white);
}

.core-image-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

/* Left and right — full-height vertical cards */
.core-grid>div:nth-child(1),
.core-grid>div:nth-child(3) {
  height: 100%;
}

.core-grid>div:nth-child(1) .core-image-wrapper,
.core-grid>div:nth-child(3) .core-image-wrapper {
  height: 100%;
}

.core-grid>div:nth-child(1) img,
.core-grid>div:nth-child(3) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.core-grid>div:nth-child(1) .core-image-wrapper:hover img,
.core-grid>div:nth-child(3) .core-image-wrapper:hover img {
  transform: scale(1.06);
}

/* Middle column — two horizontal cards stacked */
.core-grid>div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.core-grid>div:nth-child(2) .core-image-wrapper {
  flex: 1;
  height: calc(50% - 10px);
}

.core-grid>div:nth-child(2) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.core-grid>div:nth-child(2) .core-image-wrapper:hover img {
  transform: scale(1.06);
}

/* Responsive */
@media (max-width: 900px) {
  .core-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
    gap: 16px;
  }

  .core-grid>div:nth-child(1) .core-image-wrapper,
  .core-grid>div:nth-child(3) .core-image-wrapper {
    height: 280px;
  }

  .core-grid>div:nth-child(2) {
    grid-column: 1 / -1;
    flex-direction: row;
    height: 220px;
  }

  .core-grid>div:nth-child(2) .core-image-wrapper {
    height: 100%;
  }
}

@media (max-width: 600px) {
  .core-grid {
    grid-template-columns: 1fr;
  }

  .core-grid>div:nth-child(2) {
    grid-column: 1;
    flex-direction: column;
    height: auto;
  }

  .core-grid>div:nth-child(2) .core-image-wrapper {
    height: 200px;
  }
}


/* ── Clients Section ── */
.clients {
  padding: 80px 0 70px;
  background: var(--white);
  overflow: hidden;
}

.clients .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.clients-marquee-outer {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px 0;
}

/* Soft fade on left & right edges */
.clients-marquee-outer::before,
.clients-marquee-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.clients-marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* The scrolling strip */
.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: clientsScroll 38s linear infinite;
}

.clients-marquee-track:hover {
  animation-play-state: paused;
}

/* Each logo item — NO card, NO border, NO background */
.client-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 180px;
}

/* Sharp client logos */
.client-logo-item img {
  height: 90px;
  width: 180px;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: opacity 0.35s ease, transform 0.3s ease;
  display: block;
}

.client-logo-item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Fallback text shown when image fails */
.client-logo-item .client-name-text {
  display: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--navy-dark);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* Show name label below logo always */
.client-logo-item .client-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy-dark);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

@keyframes clientsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.core-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.core-grid .core-img:first-child {
  grid-row: span 2;
  height: 100%;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  padding: 80px 0;
  background: var(--white);
}

.about-content-inner {
  max-width: 860px;
  margin: 0 auto;
}

.about-content-inner p {
  color: var(--text-gray);
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 18px;
}

.about-highlight {
  border: 2px solid var(--blue-accent);
  border-radius: var(--radius);
  padding: 30px 36px;
  margin-bottom: 40px;
}

.about-highlight p {
  margin: 0;
  color: var(--text-dark);
  font-size: 16px;
}

/* Team Section */
.team-section {
  margin-top: 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.team-member {
  background: transparent;
  border-radius: 0;
  padding: 20px 14px;
  text-align: center;
  box-shadow: none;
  border: none;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  border: 3px solid var(--blue-accent);
  box-shadow: 0 4px 16px rgba(27, 54, 100, 0.18);
  display: block;
}

.team-member h3 {
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}

.team-member p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.5;
}

/* Company Details Section */
.company-details {
  margin-top: 60px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.detail-item {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--blue-accent);
}

.detail-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 16px;
}

.detail-item p {
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

/* ===== BATTERIES PAGE ===== */
.batteries-section {
  background: var(--white);
}

.batteries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
  overflow: visible;
}

.battery-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.battery-card:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  z-index: 2;
}

.battery-card-img-wrap {
  overflow: visible;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-light);
  position: relative;
  z-index: 1;
}

.battery-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-light);
  padding: 0;
  border-radius: var(--radius-lg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  display: block;
}

.battery-card:hover .battery-card-img {
  transform: scale(1.32) translateY(-22px);
  filter: drop-shadow(0 24px 32px rgba(27, 54, 100, 0.35));
  position: relative;
  z-index: 10;
}

.battery-card-body {
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--white);
  position: relative;
  z-index: 0;
}

.battery-card-footer {
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
}

/* ===== FEATURES ===== */
.features {
  background: var(--bg-light);
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--navy);
  margin: 0 auto 16px;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
  background: rgba(30, 92, 179, 0.06);
}

.feature-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===== BATTERY DETAIL ===== */
.battery-detail {
  padding: 70px 0;
}

.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}


.detail-main-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 2px solid var(--border);
  margin-bottom: 14px;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
}

.detail-thumb {
  width: 80px;
  height: 70px;
  object-fit: contain;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--blue-accent);
}


.specs-title {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
}

.spec-row {
  padding: 13px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.spec-row:hover {
  background: rgba(30, 92, 179, 0.06);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--text-gray);
}

.spec-value {
  font-weight: 500;
}

/* ===== GALLERY PAGE ===== */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Changed from cover to contain to show full image */
  background: transparent;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: var(--transition);
}

.lightbox-close:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  background: var(--white);
  padding: 80px 0;
}

.contact-subtitle {
  text-align: center;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 40px;
  font-family: var(--font-heading);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 92, 179, 0.1);
}

.form-group textarea {
  min-height: 120px;
}

.form-submit {
  text-align: center;
  margin-top: 10px;
}

.form-submit .btn-primary {
  padding: 14px 48px;
  font-size: 15px;
}

.toast {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #28a745;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer-top {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-contact-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-contact-cta h3 {
  font-size: 20px;
  color: var(--text-dark);
}

.footer-contact-cta a {
  color: var(--blue-accent);
  font-weight: 600;
  font-size: 14px;
}

.footer-contact-items {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 16px;
  box-shadow: var(--shadow);
}

.footer-contact-item p {
  font-size: 11px;
  color: var(--text-light);
}

.footer-contact-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.footer-main {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-career p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}

.btn-career {
  background: var(--blue-accent);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-career:hover {
  background: var(--navy-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroPopUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPopUpRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== PLACEHOLDER IMAGES ===== */
.placeholder-img {
  background: linear-gradient(135deg, #e8edf4, #c8d4e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trusted-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .batteries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-social {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .hero {
    height: auto;
    min-height: 500px;
    padding-bottom: 0;
  }

  .slide {
    flex-direction: column;
  }

  .slide-image {
    width: 100%;
    height: 50%;
  }

  .slide-content {
    width: 100%;
    height: 50%;
    text-align: center;
    padding: 40px 20px;
  }

  .slide-content h1,
  .slide-content p {
    transform: translateY(30px);
  }

  .slide.active .slide-content h1 {
    animation: heroPopUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.2s;
  }

  .slide.active .slide-content p {
    animation: heroPopUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.4s;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .batteries-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .core-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .core-grid .core-image-wrapper:first-child {
    grid-row: span 1;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .footer-contact-items {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===== CERTIFICATES ===== */
.certificates-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.cert-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid rgba(27, 54, 100, 0.05);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(27, 54, 100, 0.15);
}

.cert-img-wrapper {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e1e9f1 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 4px solid var(--blue-accent);
  padding: 20px;
  box-sizing: border-box;
}

.cert-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.05);
}

.cert-card h3 {
  font-size: 1.3rem;
  color: var(--navy-blue);
  margin: 0 20px 10px;
  font-weight: 700;
}

.cert-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 20px 25px;
  flex-grow: 1;
  line-height: 1.5;
}

.btn-cert {
  display: inline-block;
  padding: 10px 24px;
  background: var(--blue-accent);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 auto;
  border: 2px solid var(--blue-accent);
}

.btn-cert:hover {
  background: var(--navy-blue);
  border-color: var(--navy-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(27, 54, 100, 0.2);
}