/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties & Design System */
:root {
  --primary-color: #0A192F; /* Deep Navy Blue from logo */
  --primary-rgb: 10, 25, 47;
  --secondary-color: #FFB300; /* Sun Gold / Yellow from logo */
  --secondary-rgb: 255, 179, 0;
  --accent-color: #76C720; /* Vibrant Lime Green from logo */
  --accent-rgb: 118, 199, 32;
  
  /* Light Theme Variables */
  --bg-color: #F8FAFC;
  --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(10, 25, 47, 0.08);
  --card-shadow: 0 8px 32px 0 rgba(10, 25, 47, 0.04);
  --text-primary: #0A192F;
  --text-secondary: #4A5568;
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --border-color: #E2E8F0;
  --glass-blur: 12px;
  --input-bg: rgba(255, 255, 255, 0.8);
  --hover-bg: rgba(118, 199, 32, 0.05);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-color: #070D19; /* Deeper space navy/black background from logo */
  --bg-gradient: linear-gradient(135deg, #070D19 0%, #0A192F 100%);
  --card-bg: rgba(10, 25, 47, 0.7);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --navbar-bg: rgba(7, 13, 25, 0.95);
  --border-color: #1E293B;
  --input-bg: rgba(10, 25, 47, 0.8);
  --hover-bg: rgba(255, 179, 0, 0.05);
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  width: 0%;
  z-index: 9999;
}

/* Preloader Animation */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(var(--primary-rgb), 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glassmorphism Styles */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px 0 rgba(var(--primary-rgb), 0.15);
}

/* Header Top Bar */
.top-bar {
  font-size: 0.85rem;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 8px 0;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

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

/* Premium Navigation Bar */
.custom-navbar {
  background-color: var(--navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s ease;
  z-index: 999;
}

.custom-navbar.scrolled {
  padding: 5px 0;
  box-shadow: var(--card-shadow);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-color) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-accent {
  color: var(--secondary-color);
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  position: relative;
  padding: 0.5rem 1rem;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background-color: #0b150f;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 100px 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Buttons Styling */
.btn-premium-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-premium-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-premium-secondary {
  background-color: var(--secondary-color);
  color: #1E293B;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.3);
}

.btn-premium-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.4);
}

.btn-premium-outline {
  background-color: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-premium-outline:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Sections Styling */
.section-padding {
  padding: 80px 0;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
}

.section-title.centered::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Why Choose Us Cards */
.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.glass-card:hover .feature-icon-wrapper {
  background: var(--primary-color);
  color: #ffffff;
  transform: rotateY(360deg);
}

/* Brands We Deal In */
.brand-card {
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.brand-logo-placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.brand-card:hover .brand-logo-placeholder {
  color: var(--primary-color);
}

/* Products Cards */
.product-card {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.product-image-wrapper {
  height: 220px;
  background-color: rgba(var(--primary-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-wrapper svg {
  width: 100px;
  height: 100px;
  color: var(--primary-color);
  opacity: 0.8;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper svg {
  transform: scale(1.1) rotate(5deg);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary-color);
  color: #1E293B;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.product-content {
  padding: 25px;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-features-list {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-features-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features-list i {
  color: var(--primary-color);
}

/* Counter Statistics Section */
.counter-section {
  position: relative;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 60px 0;
  overflow: hidden;
}

.counter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.03);
  transform: rotate(30deg);
  pointer-events: none;
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.counter-title {
  font-size: 0.95rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Energy Saving Calculator */
.calc-container {
  padding: 40px;
}

.calc-input-group {
  margin-bottom: 20px;
}

.calc-input-group label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.form-control-premium {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 10px;
  width: 100%;
}

.form-control-premium:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

.calc-result-card {
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* FAQ Accordion Styling */
.accordion-item-premium {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  margin-bottom: 12px;
  border-radius: 12px !important;
  overflow: hidden;
}

.accordion-button-premium {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  border: none !important;
  box-shadow: none !important;
  padding: 20px;
}

.accordion-button-premium:not(.collapsed) {
  border-bottom: 1px solid var(--border-color);
}

.accordion-body-premium {
  padding: 20px;
  color: var(--text-secondary);
}

/* Testimonials */
.testimonial-card {
  padding: 30px;
  border-radius: 16px;
  position: relative;
}

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.testimonial-rating {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-company {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Gallery Portfolio Section */
.gallery-filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 5px;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 250px;
}

.gallery-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: rgba(var(--primary-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(118, 199, 32, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Timeline/History (About Us Page) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: transparent;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--secondary-color);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left-item {
  left: 0;
}

.right-item {
  left: 50%;
}

.right-item::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  position: relative;
  border-radius: 12px;
}

/* Floating Action Elements */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.whatsapp-btn {
  background-color: #25D366;
}

.call-btn {
  background-color: var(--accent-color);
}

.back-to-top-btn {
  background-color: var(--text-primary);
  color: var(--bg-color) !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Footer Section */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .navbar-brand {
  color: var(--accent-color) !important;
}

.footer .navbar-brand .text-warning,
.footer .navbar-brand .brand-accent {
  color: var(--secondary-color) !important;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.copyright-bar {
  padding-top: 25px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.inquiry-form-card {
  padding: 40px;
}

.inquiry-form-card .form-label {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Map Container */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 450px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

/* Products Filter Page Styles */
.product-filter-sidebar {
  padding: 30px;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}
