
/* Base Styles */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary-color: #6c757d;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --white-color: #ffffff;
  --black-color: #000000;
  --body-bg: #f8f9fa;
  --text-color: #212529;
  --border-color: #dee2e6;
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--body-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Top Bar */
.top-bar {
  background-color: var(--dark-color);
  color: var(--white-color);
  font-size: 0.85rem;
}

.top-bar a {
  color: var(--white-color);
}

.top-bar a:hover {
  color: var(--primary-color);
}

.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.top-social a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* Navigation */
.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

/* Hero Section */
.hero-section {
  height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.slide-1 {
  background-image: url('https://via.placeholder.com/1920x600/0d6efd/FFFFFF?text=Power+Transformers');
}

.slide-2 {
  background-image: url('https://via.placeholder.com/1920x600/0d6efd/FFFFFF?text=Distribution+Transformers');
}

.slide-3 {
  background-image: url('https://via.placeholder.com/1920x600/0d6efd/FFFFFF?text=Quality+Manufacturing');
}

.hero-btns .btn {
  padding: 0.75rem 1.5rem;
}

/* Section Title */
.section-title {
  margin-bottom: 3rem;
}

.section-title h6 {
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Feature Box */
.feature-box {
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
}

.feature-content h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Product Card */
.product-card {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-features .badge {
  padding: 0.5em 0.8em;
}

/* Why Choose Us Accordion */
.accordion-button {
  padding: 1.25rem;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(13, 110, 253, 0.1);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.25);
}

/* Testimonials */
.testimonial-item {
  position: relative;
  background-color: var(--white-color);
  border-radius: 0.5rem;
}

.testimonial-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding: 0 2rem;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  position: absolute;
  font-size: 3rem;
  font-family: serif;
  color: rgba(13, 110, 253, 0.2);
  line-height: 1;
}

.testimonial-text::before {
  left: 0;
  top: -10px;
}

.testimonial-text::after {
  right: 0;
  bottom: -20px;
  transform: rotate(180deg);
}

/* CTA Box */
.cta-box {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

/* Footer */
.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

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

.footer-contact li {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--primary-color);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Page Headers */
.page-header {
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white-color);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header .breadcrumb {
  justify-content: center;
  background: transparent;
  margin-bottom: 0;
}

.page-header .breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
  color: var(--white-color);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb a {
  color: var(--white-color);
}

.about-header {
  background-image: url('../images/transformersfacility.jpg');
}


.product-header {
  background-image: url('../images/transformersfacility.jpg');
}

.power-header {
  background-image: url('../images/transformersfacility.jpg');
}

.contact-header {
  background-image: url('../images/transformersfacility.jpg');
}

/* About Page Styles */
.timeline-year {
  min-width: 80px;
  text-align: center;
  font-weight: bold;
}

.value-card {
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-img {
  position: relative;
  overflow: hidden;
}

.member-social {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background-color: rgba(13, 110, 253, 0.8);
  padding: 10px 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.member-img:hover .member-social {
  bottom: 0;
  opacity: 1;
}

.member-social a {
  color: var(--white-color);
  margin: 0 5px;
  display: inline-block;
}

.facility-img {
  position: relative;
  overflow: hidden;
}

.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(13, 110, 253, 0.8);
  padding: 20px;
  color: var(--white-color);
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.facility-img:hover .facility-overlay {
  transform: translateY(0);
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
}

.check-list li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
}

.certification-item {
  transition: all 0.3s ease;
}

.certification-item:hover {
  transform: translateY(-5px);
}

/* Products Page Styles */
.product-item {
  overflow: hidden;
}

.product-image {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 5px 15px;
  border-radius: 4px;
  font-weight: bold;
}

.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.application-card {
  position: relative;
  transition: all 0.3s ease;
}

.application-card:hover {
  transform: translateY(-5px);
}

.application-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--white-color);
}

.comparison-table thead th {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-weight: bold;
}

.process-card {
  transition: all 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Page Styles */
.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper {
  transition: all 0.3s ease;
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.business-hours {
  background-color: var(--white-color);
  padding: 20px;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.emergency-support {
  transition: all 0.3s ease;
}

.emergency-support:hover {
  transform: translateY(-5px);
}

.office-card {
  transition: all 0.3s ease;
}

.office-card:hover {
  transform: translateY(-5px);
}

/* Gallery Item Styles */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.gallery-item img {
  transition: all 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-section,
  .hero-slide {
    height: 500px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .navbar-collapse {
    padding: 1rem 0;
  }
  
  .top-contact {
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .top-social {
    text-align: center !important;
  }
  
  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 767px) {
  .hero-section,
  .hero-slide {
    height: 400px;
  }
  
  .hero-slide h1 {
    font-size: 2rem;
  }
  
  .page-header {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
}

/* Animation Styles */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Utility Classes */
.object-fit-cover {
  object-fit: cover;
}

/* Form Validation Styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--danger-color);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--success-color);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Print Styles */
@media print {
  .top-bar,
  .navbar,
  .footer-section,
  .back-to-top {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: none !important;
  }
  
  .container {
    max-width: 100%;
  }
}
