/* RushidaLanka Hardware Shop - Custom Styles */

/* Import Bootstrap */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Custom Variables - Hardware Shop Theme */
:root {
  --primary-color: #1F3D24;    /* Dark Green - Primary Theme */
  --secondary-color: #1976d2;   /* Professional Blue */
  --dark-color: #212121;
  --light-color: #f5f5f5;
  --success-color: #388e3c;
  --warning-color: #f57c00;     /* Hardware Orange */
  --danger-color: #c62828;
  --info-color: #0288d1;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.mobile-sidebar-open {
  overflow: hidden;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
  }

  body * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img, picture, video, canvas, svg {
    max-width: 100%;
    display: block;
    height: auto;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark-color);
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.35rem 0;
  }
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 0.9rem;
  }
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem !important;
}

@media (max-width: 768px) {
  .navbar-nav .nav-link {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .navbar-nav .nav-link {
    padding: 0.25rem 0.35rem !important;
    font-size: 0.85rem;
  }
}

.navbar-nav .nav-link:hover {
  color: var(--warning-color) !important;
}

.navbar-toggler {
  padding: 0.2rem 0.5rem;
  display: none !important;
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* ===== TOUCH-FRIENDLY BUTTONS ===== */
.btn {
  min-height: 44px; /* Apple accessibility standard */
  min-width: 44px;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .btn-lg {
    min-height: 48px;
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .btn-md {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .btn-sm {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Hero Section */
.hero-section {
  background: url('/images/sunshine-banner-image-min.jpg') center/cover;
  color: white;
  padding: 100px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 45vh;
    padding: 40px 0;
  }
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(225, 221, 221, 0.3);
  color: white !important;
}

.hero-section .hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  object-fit: cover;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: -1;
}

.hero-section .container {
  position: relative;
  z-index: 1; /* Ensures content is on top of the overlay and video */
}

.hero-section {
  position: relative;
  height: 70vh; /* Adjust height as needed */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  padding: 0; /* Override default padding */
  background: none; /* Override default background image */
}

/* Typing Animation Styles */
.typing-container {
  position: relative;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: flex-start;
}

.typing-text {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(225, 221, 221, 0.3);
  color: white !important;
  margin-bottom: 1rem;
  line-height: 1.3;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.btn-hero {
  background: var(--warning-color);
  border: none;
  color: var(--dark-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Product View Button */
.product-view-btn {
  background: linear-gradient(135deg, #1F3D24, #2A5A32);
  color: white;
  font-weight: 600;
  padding: 10px;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  border-radius: 6px;
}

.product-view-btn:hover {
  background: linear-gradient(135deg, #0F1F13, #1F3D24);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 61, 36, 0.3);
  color: white;
  text-decoration: none;
}

.product-view-btn:active {
  transform: translateY(0);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

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

.card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 20px;
}

.card-body {
  padding: 25px;
}

/* Product Cards */
.product-card {
  height: 100%;
  transition: all 0.3s ease;
}

.product-card .card-img-top {
  height: 200px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease, height 0.3s ease;
}

.product-card:hover .card-img-top {
  height: 250px;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .product-card .card-img-top {
    height: 150px;
  }

  .product-card:hover .card-img-top {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .product-card .card-img-top {
    height: 120px;
  }

  .product-card:hover .card-img-top {
    height: 150px;
  }

  .product-card {
    margin-bottom: 1rem;
  }
}

.product-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .product-card .card-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .product-card .card-title {
    font-size: 0.8rem;
  }
}

.product-card .card-text {
  font-size: 0.85rem;
  color: #6c757d;
}

@media (max-width: 576px) {
  .product-card .card-text {
    font-size: 0.75rem;
  }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.testimonial-content {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #495057;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-company {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 20px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Main Content */
.flex-grow-1 {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
  overflow-y: auto;
  padding: 20px;
  background: transparent;
  color: inherit;
  padding: 20px;
}

@media (max-width: 991.98px) {
  .flex-grow-1 {
    margin-left: 0;
    width: 100%;
    padding: 15px;
    padding-top: 80px;
  }
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 20px;
}

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

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

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

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Logout button styles */
.admin-sidebar .nav-link.text-danger {
  color: #e74c3c !important;
}

.admin-sidebar .nav-link.text-danger:hover {
  background: rgba(231, 76, 60, 0.1) !important;
  color: #e74c3c !important;
}

/* Make sure the logout button stays at the bottom */
.admin-sidebar .nav {
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px); /* Adjust based on your header height */
}

.admin-sidebar .nav > .mt-auto {
  margin-top: auto !important;
}

/* Admin Panel Layout */
body {
  overflow-x: hidden;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--dark-color) 0%, #2c3e50 100%);
  color: white;
  width: 200px;
  height: 100vh;
  padding: 15px 10px;
  position: fixed;
  left: -100%;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1050;
  transition: left 0.3s ease;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Show sidebar on mobile when toggled */
.admin-sidebar.show {
  left: 0 !important;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3) !important;
}

/* Overlay for mobile sidebar */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1049;
  pointer-events: none;
}

body.sidebar-open::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Custom scrollbar for WebKit browsers */
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar h4 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0 10px 20px;
  margin: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.admin-sidebar h4 i {
  margin-right: 10px;
  font-size: 1.2em;
  color: var(--primary-color);
}

/* Admin Navigation */
.admin-sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  flex: 1;
  min-height: 0; /* Allow flex item to shrink */
}

/* Navigation Links */
.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #adb5bd;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.admin-sidebar .nav-link i {
  width: 24px;
  margin-right: 12px;
  text-align: center;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
}

.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1060;
  background: var(--primary-color);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: var(--secondary-color);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateZ(0);
  will-change: transform, background-color, color, box-shadow;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  transform: translateX(5px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  z-index: 2 !important;
  position: relative !important;
  outline: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
}

.admin-content {
  padding: 30px;
  background-color: #f8f9fa;
  min-height: 100vh;
  margin-left: 0;
  transition: margin-left 0.3s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .admin-content {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

.admin-header {
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  display: block;
}

.admin-header h2 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.admin-header p {
  color: #6c757d;
  margin: 0;
  font-size: 0.9rem;
}

.admin-header .d-flex {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.admin-header .d-flex > * {
  width: 100%;
}

.admin-header .btn {
  width: 100%;
}

.admin-header p {
  color: #6c757d;
  margin: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.admin-stats-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.admin-stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.admin-stats-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.admin-stats-card p {
  margin: 0;
  opacity: 0.9;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.admin-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.admin-card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px 25px;
  border: none;
  font-weight: 600;
}

.admin-card-header h5 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-card-body {
  padding: 25px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--dark-color);
  border-bottom: 2px solid #dee2e6;
}

.admin-table td {
  color: #333;
  padding: 15px;
  border-bottom: 1px solid #4784c2;
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f8f9fa;
}

.admin-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.admin-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.admin-btn-secondary {
  background: #6c757d;
  color: white;
}

.admin-btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.admin-btn-success {
  background: var(--success-color);
  color: white;
}

.admin-btn-success:hover {
  background: #218838;
  transform: translateY(-2px);
}

.admin-btn-danger {
  background: var(--danger-color);
  color: white;
}

.admin-btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.admin-btn-warning {
  background: #ffc107;
  color: #333;
  font-weight: 600;
}

.admin-btn-warning:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,193,7,0.3);
}

.admin-btn-sm {
  padding: 5px 12px;
  font-size: 0.85rem;
  border-radius: 5px;
}

.admin-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

.admin-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.admin-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: none;
}

.admin-alert-success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.admin-alert-error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.admin-alert-warning {
  background: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.admin-alert-info {
  background: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

.admin-pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.admin-pagination .page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
  padding: 8px 12px;
  margin: 0 2px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-pagination .page-link:hover,
.admin-pagination .page-item.active .page-link {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.admin-search {
  position: relative;
  margin-bottom: 20px;
}

.admin-search input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.admin-search i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.admin-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.admin-breadcrumb .breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.admin-breadcrumb .breadcrumb-item.active {
  color: #6c757d;
}

/* Responsive Admin Panel */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  .admin-sidebar.show {
    transform: translateX(0);
  }
  
  .admin-content {
    margin-left: 0;
    width: 100%;
    padding: 80px 15px 15px;
    transition: padding 0.3s ease;
  }
  
  /* Prevent body scroll when menu is open */
  body.sidebar-open {
    overflow: hidden;
    height: 100vh;
  }
  
  /* Adjust content when sidebar is open */
  body.sidebar-open .admin-content {
    transform: translateX(250px);
  }
  
  /* Ensure proper spacing for fixed elements */
  .navbar.fixed-top {
    padding-left: 0;
    transition: padding 0.3s ease;
  }
  
  body.sidebar-open .navbar.fixed-top {
    padding-left: 250px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats-card {
    padding: 20px;
  }

  .admin-stats-card h3 {
    font-size: 2rem;
  }

  .admin-table {
    font-size: 0.9rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px;
  }
}

.stats-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.stats-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stats-card p {
  margin: 0;
  opacity: 0.9;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--dark-color);
}

/* Dark Theme */
body.dark-theme {
  background-color: #1a1a1a;
  color: #ffffff;
}

body.dark-theme .navbar {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}

body.dark-theme .card,
body.dark-theme .testimonial-card,
body.dark-theme .contact-form {
  background: #2d3748;
  color: #ffffff;
}

body.dark-theme .footer {
  background: #1a202c;
}

body.dark-theme .theme-toggle {
  background: #2d3748;
}

body.dark-theme .theme-toggle i {
  color: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }

  .contact-form {
    padding: 25px;
  }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Login Forms */
.login-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
}

.login-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  text-align: center;
}

.login-header h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.login-header p {
  margin: 0;
  opacity: 0.9;
}

.login-body {
  padding: 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Hover Submenu Navigation */
.nav-submenu {
  position: relative;
}

.nav-submenu .submenu-items {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 0;
  margin-top: 8px;
}

.nav-submenu:hover .submenu-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-item {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-weight: 500;
}

.submenu-item:hover {
  background-color: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding-left: 25px;
}

.submenu-item i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
}

.submenu-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.nav-submenu:hover .submenu-arrow {
  transform: rotate(180deg);
}

/* Admin Submenu Navigation */
.admin-submenu {
  position: relative;
}

.admin-submenu .admin-submenu-items {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(44, 62, 80, 0.95);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
  margin-top: 5px;
}

.admin-submenu:hover .admin-submenu-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-submenu-item {
  display: block;
  padding: 10px 20px;
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-weight: 500;
}

.admin-submenu-item:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
  padding-left: 25px;
}

.admin-submenu-item i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
}

.admin-submenu-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.admin-submenu:hover .admin-submenu-arrow {
  transform: rotate(180deg);
}

/* Scrolling Logos Bar */
.logos-bar {
  overflow: hidden;
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: white;
  border-top: 1px solid #dee2e6;
}

.logos-slider {
  display: flex;
  width: calc(200px * 20); /* Adjust based on number of logos */
}

.logos-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: calc(200px * 20); /* Same as above */
}

.logo-item {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 60px;
}

.logo-image {
  max-width: 150px;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-image:hover {
  filter: grayscale(0%);
}

.logo-text {
  font-weight: bold;
  color: #666;
  font-size: 14px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.logos-bar:hover .logos-track {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-item {
    flex: 0 0 150px;
    padding: 0 15px;
  }

  .logo-image {
    max-width: 120px;
    max-height: 40px;
  }

  .logos-slider,
  .logos-track {
    width: calc(150px * 20);
  }
}

/* Flying Solar Components */
.flying-components {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.flying-component {
  position: absolute;
  opacity: 0.8;
  animation: fly 20s linear infinite;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.flying-component.solar-panel {
  width: 150px;
  height: 120px;
}

.flying-component.inverter {
  width: 120px;
  height: 90px;
}

.flying-component.battery {
  width: 90px;
  height: 120px;
}

.flying-component:nth-child(1) {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.flying-component:nth-child(2) {
  top: 30%;
  left: -10%;
  animation-delay: 5s;
  animation-duration: 30s;
}

.flying-component:nth-child(3) {
  top: 50%;
  left: -10%;
  animation-delay: 10s;
  animation-duration: 20s;
}

.flying-component:nth-child(4) {
  top: 70%;
  left: -10%;
  animation-delay: 15s;
  animation-duration: 35s;
}

.flying-component:nth-child(5) {
  top: 20%;
  left: -10%;
  animation-delay: 20s;
  animation-duration: 28s;
}

.flying-component:nth-child(6) {
  top: 60%;
  left: -10%;
  animation-delay: 25s;
  animation-duration: 22s;
}

.flying-component:nth-child(7) {
  top: 40%;
  left: -10%;
  animation-delay: 30s;
  animation-duration: 32s;
}

.flying-component:nth-child(8) {
  top: 80%;
  left: -10%;
  animation-delay: 35s;
  animation-duration: 26s;
}

.flying-component:nth-child(9) {
  top: 15%;
  left: -10%;
  animation-delay: 40s;
  animation-duration: 27s;
}

.flying-component:nth-child(10) {
  top: 65%;
  left: -10%;
  animation-delay: 45s;
  animation-duration: 33s;
}

@keyframes fly {
  0% {
    transform: translateX(-100px) translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(0px) rotate(360deg);
    opacity: 0;
  }
}

/* ====================== ENHANCED MODERN STYLES ====================== */

/* Premium Product Cards with 3D Effects */
.product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

.product-card:hover::before {
  animation: shine 0.6s;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.product-card .card-img-top {
  background: linear-gradient(135deg, #e8f1eb 0%, #d4e8dc 100%);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  margin: 12px;
}

.product-card:hover .card-img-top {
  transform: scale(1.12) rotateZ(2deg);
  filter: brightness(1.05);
}

/* Enhanced Button Styles */
.btn-primary {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Modern Form Styling */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.95);
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background: white;
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #99a0a8;
}

/* Enhanced Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Floating Elements Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.floating-element {
  animation: float 4s ease-in-out infinite;
}

/* Glow Effects */
.glow-effect {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), 0 0 40px rgba(102, 126, 234, 0.2);
}

.glow-effect:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5), 0 0 60px rgba(102, 126, 234, 0.3);
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
  }
}

.pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Badge Styles */
.badge {
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.badge-success {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: white;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Enhanced Navbar on Scroll */
.navbar.scrolled {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,255,0.98) 100%) !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* Better Card Shadows */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-md {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.shadow-lg {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Enhanced Filter Pills */
.filter-pill {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 25px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  background: white;
  color: #333;
}

.filter-pill:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Loading Animation */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 1s ease-in-out infinite;
}

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

/* Better Responsive Padding */
@media (max-width: 768px) {
  .section {
    padding: 60px 15px;
  }

  .product-card:hover {
    transform: translateY(-10px) scale(1.01);
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Mobile First - Extra Small Screens (< 576px) */
@media (max-width: 575.98px) {
  /* Hero Section */
  .hero-section {
    height: 50vh;
    padding: 0;
  }

  .hero-section h1,
  .typing-text {
    font-size: 1.75rem !important;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-section p,
  .hero-section .lead {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .d-flex.flex-column.flex-sm-row {
    flex-direction: column !important;
  }

  .btn-hero,
  .btn-outline-light {
    width: 100%;
    padding: 12px 20px !important;
    font-size: 0.9rem;
  }

  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }

  .display-4 { font-size: 2rem !important; }
  .section-title h2 { font-size: 1.5rem !important; }

  /* Navbar */
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-logo {
    height: 40px !important;
  }

  .navbar-nav {
    padding-top: 1rem;
    gap: 0 !important;
  }

  .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
  }

  .nav-item-enhanced {
    width: 100%;
  }

  /* Cards & Products */
  .card {
    margin-bottom: 1rem;
  }

  .product-card .card-img-top {
    height: 150px;
  }

  .product-card:hover .card-img-top {
    height: 180px;
  }

  .card-body {
    padding: 15px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-text {
    font-size: 0.8rem;
  }

  /* Sections */
  .section {
    padding: 40px 15px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  /* Grid Layouts */
  .row {
    row-gap: 1.5rem;
  }

  .col-md-6,
  .col-lg-4 {
    margin-bottom: 1rem;
  }

  /* Feature Icons */
  .feature-icon i {
    font-size: 2.5rem !important;
  }

  /* Buttons */
  .btn-lg {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  /* Container Padding */
  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .row {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    display: flex;
    flex-wrap: wrap;
  }

  .row > * {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Spacing Utilities */
  .mb-5 { margin-bottom: 1.5rem !important; }
  .mt-5 { margin-top: 1.5rem !important; }
  .mx-auto { margin-left: 0 !important; margin-right: 0 !important; }

  /* Form Elements */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 10px 12px;
  }

  /* Text Alignment */
  .text-center {
    text-align: left;
  }

  /* Dropdowns */
  .dropdown-menu {
    min-width: 200px;
    right: 0 !important;
  }

  /* Admin Panel Adjustments */
  .admin-sidebar {
    position: fixed;
    left: -100%;
    transition: left 0.3s ease;
    z-index: 1000;
    width: 80%;
    max-width: 300px;
  }

  .admin-sidebar.active {
    left: 0;
  }

  .admin-content {
    margin-left: 0;
  }
}

/* Small Devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    height: 55vh;
  }

  .hero-section h1,
  .typing-text {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  h2 { font-size: 1.75rem; }
  .section-title h2 { font-size: 1.75rem !important; }

  .display-4 { font-size: 2.25rem !important; }

  .section {
    padding: 50px 20px;
  }

  .product-card .card-img-top {
    height: 180px;
  }

  .product-card:hover .card-img-top {
    height: 220px;
  }

  .navbar-logo {
    height: 45px !important;
  }

  .btn-hero {
    width: auto;
    display: inline-block;
  }

  .feature-icon i {
    font-size: 3rem !important;
  }

  .card-body {
    padding: 20px;
  }
}

/* Medium Devices - Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    height: 60vh;
  }

  .hero-section h1,
  .typing-text {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  h2 { font-size: 2rem; }
  .section-title h2 { font-size: 2rem !important; }

  .display-4 { font-size: 2.75rem !important; }

  .section {
    padding: 60px 25px;
  }

  .product-card .card-img-top {
    height: 200px;
  }

  .product-card:hover .card-img-top {
    height: 240px;
  }

  .navbar-logo {
    height: 50px !important;
  }

  .feature-icon i {
    font-size: 3.25rem !important;
  }

  .row > div {
    margin-bottom: 2rem;
  }

  /* Navbar on tablets */
  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem;
  }

  .explore-btn {
    padding: 0.5rem 1rem !important;
  }
}

/* Large Devices - Desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    height: 65vh;
  }

  .hero-section h1,
  .typing-text {
    font-size: 3rem;
  }

  .hero-section p {
    font-size: 1.2rem;
  }

  h2 { font-size: 2.2rem; }
  .section-title h2 { font-size: 2.2rem !important; }

  .display-4 { font-size: 3rem !important; }

  .section {
    padding: 70px 30px;
  }

  .product-card .card-img-top {
    height: 220px;
  }

  .product-card:hover .card-img-top {
    height: 260px;
  }

  .navbar-logo {
    height: 55px !important;
  }

  .feature-icon i {
    font-size: 3.5rem !important;
  }

  .row > div {
    margin-bottom: 2.5rem;
  }
}

/* Extra Large Devices (1200px +) */
@media (min-width: 1200px) {
  .hero-section {
    height: 70vh;
  }

  .hero-section h1,
  .typing-text {
    font-size: 3.5rem;
  }

  .hero-section p {
    font-size: 1.25rem;
  }

  h2 { font-size: 2.5rem; }
  .section-title h2 { font-size: 2.5rem !important; }

  .display-4 { font-size: 3.5rem !important; }

  .section {
    padding: 80px 30px;
  }

  .product-card .card-img-top {
    height: 200px;
  }

  .product-card:hover .card-img-top {
    height: 250px;
  }

  .feature-icon i {
    font-size: 3.5rem !important;
  }

  .row > div {
    margin-bottom: 3rem;
  }
}

/* Ultra Large Screens (1600px+) */
@media (min-width: 1600px) {
  .container,
  .container-xl {
    max-width: 1500px;
  }

  .section {
    padding: 100px 40px;
  }

  .product-card .card-img-top {
    height: 250px;
  }

  .product-card:hover .card-img-top {
    height: 300px;
  }
}

/* Quality Hardware Product Showcase */
.hardware-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .hardware-specs {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .hardware-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.spec-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.spec-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.spec-label {
  font-weight: 600;
  color: #667eea;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-value {
  font-weight: 700;
  color: #2c3e50;
  margin-top: 5px;
}

/* ===== RESPONSIVE IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

picture img {
  width: 100%;
  height: auto;
}

/* Responsive Image Containers */
.img-responsive {
  max-width: 100%;
  height: auto;
}

.img-fluid-sm {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .img-fluid-sm {
    width: 100%;
    height: auto;
  }
}

/* ===== RESPONSIVE GRID UTILITIES ===== */
.grid-responsive {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
  .grid-responsive {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.grid-responsive-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid-responsive-2 {
    grid-template-columns: 1fr;
  }
}

.grid-responsive-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
  .grid-responsive-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-responsive-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
.text-responsive {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.heading-responsive {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
}

.subheading-responsive {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUpSmooth {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes for Scroll */
.animate-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
}

.animate-on-scroll.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-on-scroll.animate-fade-in-left {
  animation: fadeInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-on-scroll.animate-fade-in-right {
  animation: fadeInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-on-scroll.animate-slide-in-up {
  animation: slideInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-on-scroll.animate-slide-in-up-smooth {
  animation: slideInUpSmooth 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-on-scroll.animate-scale-in {
  animation: scaleIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-on-scroll.animate-delay-1 {
  animation-delay: 0.15s;
}

.animate-on-scroll.animate-delay-2 {
  animation-delay: 0.3s;
}

.animate-on-scroll.animate-delay-3 {
  animation-delay: 0.45s;
}

.animate-on-scroll.animate-delay-4 {
  animation-delay: 0.6s;
}

/* Ensure smooth rendering */
section {
  transform: translateZ(0);
}

/* ===== MOBILE VIEWPORT FIX - PREVENT HORIZONTAL SCROLL ===== */
@media (max-width: 768px) {
  /* Fix body and html overflow */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
  }

  /* Fix all containers */
  .container, .container-fluid,
  .navbar, .navbar-collapse,
  .row, ul, ol, div {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Ensure images don't overflow */
  img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Fix navbar */
  .navbar {
    position: relative;
    width: 100%;
    padding: 0 0;
    overflow-x: hidden;
  }

  .navbar-brand {
    padding-left: 12px;
    max-width: 60vw;
    overflow: hidden;
  }

  .navbar-nav {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* Fix hero section */
  .hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .hero-section .container {
    width: 100%;
    padding: 0 12px;
    margin: 0;
  }

  /* Fix sections */
  section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
  }

  /* Fix cards */
  .card {
    width: 100%;
    max-width: 100%;
  }

  /* Fix rows */
  .row {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
  .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Fix buttons and links */
  .btn, button, a {
    max-width: calc(100% - 24px);
  }

  /* Fix forms */
  form, .form-group {
    width: 100%;
    max-width: 100%;
  }

  .form-control, .form-select {
    width: 100%;
    max-width: 100%;
  }

  /* Fix tables */
  table {
    width: 100%;
    overflow-x: auto;
  }

  /* Fix dropdowns */
  .dropdown-menu {
    max-width: calc(100vw - 24px);
  }

  /* No horizontal scroll allowed */
  * {
    -webkit-user-select: none;
    user-select: none;
  }

  a, button, input, select, textarea {
    -webkit-user-select: text;
    user-select: text;
  }
}

/* ===== ADMIN DASHBOARD RESPONSIVE ===== */

/* Bootstrap flex-grow-1 class - extends full width */
.flex-grow-1 {
  flex: 1;
  width: 100%;
  margin-left: 0 !important;
  display: flex;
  flex-direction: column;
}

/* Default layout - mobile first */
.d-flex {
  display: flex;
}

.admin-content {
  margin-left: 0;
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
  transition: margin-left 0.3s ease, width 0.3s ease;
  box-sizing: border-box;
}

/* Admin Menu Toggle Button - VISIBLE on mobile by default */
#adminMenuToggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  top: 15px !important;
  left: 15px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  z-index: 1061 !important;
  border: 1px solid #dee2e6 !important;
  background-color: #fff !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
  flex-direction: column !important;
  font-size: 0 !important;
}

#adminMenuToggle i {
  color: #333 !important;
  font-size: 18px !important;
  display: block !important;
  line-height: 1 !important;
}

#adminMenuToggle:hover {
  background-color: #f0f0f0 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

#adminMenuToggle:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* LARGE SCREENS (992px and above) */
@media (min-width: 992px) {
  .admin-sidebar {
    width: 250px !important;
    padding: 25px 15px !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1030 !important;
    transition: none !important;
  }

  #adminMenuToggle {
    display: none !important;
  }

  .d-flex {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
    flex-wrap: wrap;
  }

  .admin-content {
    margin-left: 0;
    width: 100%;
    padding: 30px !important;
  }

  .flex-grow-1 {
    margin-left: 0;
    width: 100%;
  }

  .admin-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 15px !important;
  }

  .admin-header .d-flex {
    flex-direction: row !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  .admin-header .d-flex > * {
    width: auto !important;
  }

  .admin-header .btn {
    width: auto !important;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }

  .admin-header h2 {
    font-size: 2rem !important;
  }
}

/* MEDIUM SCREENS (768px - 991px) */
@media (max-width: 991.98px) {
  #adminMenuToggle {
    display: flex !important;
  }

  .admin-sidebar {
    position: fixed !important;
    width: 200px !important;
    height: 100vh !important;
    top: 0 !important;
    left: -100% !important;
    transition: left 0.3s ease !important;
    z-index: 1050 !important;
    flex-direction: column !important;
    padding: 15px 10px !important;
    overflow-y: auto !important;
  }

  .admin-sidebar.show {
    left: 0 !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3) !important;
  }

  .admin-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 20px 15px !important;
    padding-top: 75px !important;
  }

  .flex-grow-1 {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 0 !important;
  }

  .admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
  }

  .admin-header h2 {
    font-size: 1.5rem !important;
    margin-bottom: 5px !important;
  }

  .admin-header p {
    font-size: 0.9rem !important;
  }

  .admin-header .d-flex {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .admin-stats-card {
    padding: 20px !important;
  }

  .admin-sidebar h4 {
    font-size: 1.1rem !important;
    padding: 0 8px 12px !important;
  }

  .admin-sidebar .nav-link {
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }

  .row > [class*='col'] {
    padding-left: 7.5px !important;
    padding-right: 7.5px !important;
    margin-bottom: 15px !important;
  }

  .col-md-8,
  .col-md-6,
  .col-md-4,
  .col-md-3 {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  .admin-form-control,
  .form-control,
  .form-select {
    font-size: 16px !important;
    padding: 10px 12px !important;
    min-height: 44px !important;
  }
}

/* SMALL SCREENS (576px - 767px) */
@media (max-width: 767.98px) {
  #adminMenuToggle {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    top: 12px !important;
    left: 12px !important;
  }

  .admin-sidebar {
    position: fixed !important;
    width: 70vw !important;
    max-width: 200px !important;
    height: 100vh !important;
    top: 0 !important;
    left: -100% !important;
    transition: left 0.3s ease !important;
    z-index: 1050 !important;
    flex-direction: column !important;
    padding: 10px !important;
    overflow-y: auto !important;
  }

  .admin-sidebar.show {
    left: 0 !important;
  }

  .admin-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 12px !important;
    padding-top: 70px !important;
  }

  .flex-grow-1 {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
  }

  .admin-header h2 {
    font-size: 1.3rem !important;
    margin-bottom: 3px !important;
  }

  .admin-header p {
    font-size: 0.85rem !important;
  }

  .admin-header .d-flex {
    width: 100% !important;
    flex-direction: column !important;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .admin-stats-card {
    padding: 15px !important;
  }

  .admin-stats-card h3 {
    font-size: 1.5rem !important;
  }

  .admin-sidebar h4 {
    font-size: 0.95rem !important;
    padding: 0 6px 8px !important;
  }

  .admin-sidebar .nav-link {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }

  table {
    font-size: 0.75rem !important;
    min-width: 450px !important;
  }

  table th, table td {
    padding: 6px 4px !important;
  }

  .form-control, .form-select {
    font-size: 16px !important;
    padding: 8px 10px !important;
    min-height: 44px !important;
  }
}

/* EXTRA SMALL SCREENS (≤575px) */
@media (max-width: 575.98px) {
  #adminMenuToggle {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    top: 10px !important;
    left: 10px !important;
    font-size: 0 !important;
  }

  #adminMenuToggle i {
    font-size: 16px !important;
  }

  .admin-sidebar {
    position: fixed !important;
    width: 70vw !important;
    max-width: 180px !important;
    height: 100vh !important;
    top: 0 !important;
    left: -100% !important;
    transition: left 0.3s ease !important;
    z-index: 1050 !important;
    flex-direction: column !important;
    padding: 8px !important;
    overflow-y: auto !important;
  }

  .admin-sidebar.show {
    left: 0 !important;
  }

  .admin-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 10px !important;
    padding-top: 65px !important;
  }

  .flex-grow-1 {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
  }

  .admin-header h2 {
    font-size: 1.15rem !important;
    margin-bottom: 2px !important;
  }

  .admin-header p {
    font-size: 0.8rem !important;
  }

  .admin-header .d-flex {
    width: 100% !important;
    flex-direction: column !important;
  }

  .admin-header .d-flex > * {
    width: 100% !important;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-stats-card {
    padding: 12px !important;
  }

  .admin-stats-card h3 {
    font-size: 1.4rem !important;
  }

  .admin-stats-card p {
    font-size: 0.75rem !important;
  }

  .admin-sidebar h4 {
    font-size: 0.9rem !important;
    padding: 0 5px 6px !important;
  }

  .admin-sidebar .nav-link {
    padding: 8px 8px !important;
    font-size: 0.75rem !important;
  }

  .admin-sidebar .nav-link i {
    width: 16px !important;
    font-size: 0.85em !important;
    margin-right: 6px !important;
  }

  table {
    font-size: 0.7rem !important;
    min-width: 400px !important;
  }

  table th, table td {
    padding: 5px 3px !important;
  }

  .form-control, .form-select {
    font-size: 16px !important;
    padding: 8px !important;
    min-height: 44px !important;
  }

  .btn {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    min-height: 36px !important;
  }

  .btn-sm {
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
    min-height: 32px !important;
  }

  .card {
    margin-bottom: 10px !important;
  }

  .card-body {
    padding: 10px !important;
  }

  .card-header {
    padding: 10px !important;
  }
}/* ===== MOBILE NAVBAR SIDEBAR ===== */
/* Mobile navigation sidebar - hidden by default */
.mobile-navbar-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  width: 280px;
  background: linear-gradient(135deg, #1F3D24 0%, #0F1F13 100%);
  z-index: 1055;
  overflow-y: auto;
  transition: left 0.3s ease, transform 0.3s ease;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
  padding-top: 70px;
  will-change: left;
}

/* Show mobile sidebar when active */
.mobile-navbar-sidebar.show {
  left: 0;
  box-shadow: 2px 0 30px rgba(0, 0, 0, 0.5);
}

/* Mobile navbar items */
.mobile-navbar-sidebar .mobile-nav-item {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 16px;
}

.mobile-navbar-sidebar .mobile-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 30px;
}

.mobile-navbar-sidebar .mobile-nav-item i {
  margin-right: 10px;
  width: 20px;
}

/* Mobile submenu */
.mobile-navbar-sidebar .mobile-nav-submenu {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  padding-left: 0;
}

.mobile-navbar-sidebar .mobile-nav-submenu.show {
  display: block;
}

.mobile-navbar-sidebar .mobile-nav-submenu .mobile-nav-item {
  padding-left: 50px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile navbar overlay */
.mobile-navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1054;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  will-change: opacity;
}

.mobile-navbar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile navbar toggle button */
.navbar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  margin-right: auto;
  transition: all 0.3s ease;
  z-index: 1055;
  position: relative;
}

.navbar-mobile-toggle:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.navbar-mobile-toggle:active {
  transform: scale(0.95);
}

/* Show mobile toggle on small screens */
@media (max-width: 991.98px) {
  .navbar-mobile-toggle {
    display: block !important;
  }

  .navbar-collapse {
    display: none !important;
  }
}

/* Hide mobile sidebar on large screens */
@media (min-width: 992px) {
  .mobile-navbar-sidebar {
    display: none !important;
  }
  
  .mobile-navbar-overlay {
    display: none !important;
  }
  
  .navbar-mobile-toggle {
    display: none !important;
  }
}

/* ===== RESPONSIVE HERO SECTION ===== */
.hero-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 40px 15px;
  }

  .hero-section .display-4 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-section .lead {
    font-size: 16px;
  }

  .hero-section .d-flex {
    gap: 10px;
  }

  .hero-section .btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  /* Features section responsive */
  .card {
    margin-bottom: 15px;
  }

  .feature-icon {
    font-size: 40px !important;
  }

  .card-title {
    font-size: 18px;
  }

  /* Section typography responsive */
  h2.section-title {
    font-size: 26px !important;
  }

  h3 {
    font-size: 20px;
  }

  /* Stats section responsive */
  .stats-section {
    padding: 50px 20px !important;
  }

  .stats-section > div > div {
    margin-bottom: 20px;
  }

  .stats-section .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Category grid responsive */
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 12px;
    padding: 0 10px;
  }

  .category-item {
    padding: 15px 10px !important;
    font-size: 13px;
  }

  .category-item:hover {
    transform: translateY(-8px);
  }

  /* Service cards responsive */
  .service-card {
    margin-bottom: 15px;
  }

  .service-card .service-icon {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  body, html {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
  }

  .hero-section {
    min-height: 55vh;
    padding: 30px 12px;
  }

  .hero-section .display-4 {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 14px;
    margin-bottom: 15px !important;
  }

  .hero-section .d-flex {
    flex-direction: column;
    gap: 8px;
  }

  .hero-section .btn {
    font-size: 13px;
    padding: 10px 14px;
    width: 100%;
  }

  /* Section styling responsive */
  .section {
    padding: 40px 0 !important;
  }

  h2.section-title {
    font-size: 20px !important;
    margin-bottom: 15px !important;
  }

  .section > .container > .row.text-center > .col-12 > p {
    font-size: 14px !important;
  }

  /* Card responsive */
  .card {
    margin-bottom: 12px;
  }

  .card-body {
    padding: 12px 15px !important;
  }

  .card-title {
    font-size: 16px;
  }

  .card-text {
    font-size: 13px;
  }

  /* Feature icon responsive */
  .feature-icon {
    font-size: 32px !important;
  }

  .feature-icon i {
    font-size: 32px !important;
  }

  /* Container responsive */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Row and col responsive */
  .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  [class*='col-'] {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Stats section mobile */
  .stats-section {
    padding: 35px 15px !important;
    background: linear-gradient(135deg, #1F3D24 0%, #0F1F13 100%) !important;
  }

  .stats-section .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

  .stats-section div[style*="font-size: 3.5rem"] {
    font-size: 2.5rem !important;
  }

  .stats-section h5 {
    font-size: 16px;
  }

  .stats-section p {
    font-size: 13px;
  }

  /* Categories grid mobile */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    padding: 0 8px;
  }

  .category-item {
    padding: 12px 8px !important;
    font-size: 11px;
  }

  .category-item i {
    font-size: 24px !important;
    margin-bottom: 8px;
  }

  /* Products grid mobile */
  .products-grid, 
  .row.g-4 {
    gap: 12px !important;
  }

  .col-lg-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .product-card {
    margin-bottom: 0;
  }

  .product-card-image {
    height: 160px !important;
  }

  .product-card-body {
    padding: 12px !important;
  }

  /* Navbar responsive */
  .premium-navbar {
    padding: 8px 12px !important;
  }

  .navbar-logo {
    height: 40px !important;
  }

  .navbar-brand span {
    display: none !important;
  }

  /* Button responsive */
  .btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .btn-lg {
    font-size: 13px;
    padding: 10px 14px;
  }

  /* Form responsive */
  .form-control,
  .form-select {
    font-size: 14px;
    padding: 8px 10px;
  }

  /* Typing text responsive */
  .typing-text {
    font-size: 18px;
    line-height: 1.2;
  }

  /* Text utilities responsive */
  .display-4 {
    font-size: 24px;
  }

  .display-5 {
    font-size: 20px;
  }

  .lead {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }

  h5 {
    font-size: 14px;
  }

  /* Margin utilities responsive */
  .mb-4 {
    margin-bottom: 15px !important;
  }

  .mb-5 {
    margin-bottom: 20px !important;
  }

  .my-4 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }

  /* Padding utilities responsive */
  .p-5 {
    padding: 15px !important;
  }

  .px-4 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Video responsive */
  .hero-background-video {
    object-fit: cover;
    height: auto;
  }

  /* Dropdown responsive */
  .dropdown-menu {
    width: calc(100% - 20px);
    margin-left: 10px;
  }

  /* Table responsive */
  table {
    font-size: 12px;
  }

  /* Image responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Utility spacing */
  .gap-2 {
    gap: 8px !important;
  }

  .gap-3 {
    gap: 10px !important;
  }

  .gap-4 {
    gap: 12px !important;
  }
}

/* ===== RESPONSIVE SECTIONS ===== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0 !important;
  }

  .section-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }

  .card {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0 !important;
  }

  .section-title {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===== RESPONSIVE PRODUCT CARDS ===== */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 20px;
  }

  .product-card-image {
    height: 200px;
  }

  .product-card-body {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .row.g-4 {
    gap: 10px !important;
  }

  .col-lg-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .product-card-image {
    height: 180px;
  }
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 12px;
  }

  .categories-grid .category-item {
    padding: 15px 10px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .categories-grid .category-item {
    padding: 12px 8px;
    font-size: 12px;
  }

  .categories-grid .category-item i {
    font-size: 24px;
  }
}

/* ===== RESPONSIVE STATS ===== */
@media (max-width: 768px) {
  .stats-section .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 20px;
  }

  .stats-section .col-lg-3:nth-child(n+3) {
    flex: 0 0 50%;
  }
}

@media (max-width: 576px) {
  .stats-section .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

  .stats-section .col-lg-3:nth-child(n+2) {
    flex: 0 0 100%;
  }
}

/* ===== NAVBAR RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .premium-navbar {
    padding: 12px 15px !important;
  }

  .navbar-logo {
    height: 45px !important;
  }

  .navbar-brand span {
    display: none !important;
  }

  .nav-link {
    padding: 10px 12px !important;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .premium-navbar {
    padding: 10px 12px !important;
  }

  .navbar-logo {
    height: 40px !important;
  }
}
/* Small Screens (576px - 767px) */
@media (max-width: 767.98px) {
