/*
 * Power Solutions 1999 - Main Stylesheet
 * Framework: Bootstrap v5.0
 * Primary Color: #0D2440 (Deep Navy / Midnight Blue)
 */

/* ===================================
   1. CSS VARIABLES & DESIGN TOKENS
   =================================== */
:root {
  /* Brand Colors - Navy Blue Palette */
  --primary-color: #0D2440;
  --primary-dark: #091a30;
  --primary-light: #2E5E99;
  --primary-gradient: linear-gradient(135deg, #0D2440 0%, #2E5E99 100%);
  --secondary-color: #0D2440;
  --accent-color: #E7F0FA;

  /* Grayscale */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #dee2e6;
  --dark-gray: #6c757d;
  --darker-gray: #495057;
  --black: #212529;

  /* Semantic Colors */
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;

  /* Typography */
  --font-primary: 'Parkinsans', sans-serif;
  --font-heading: 'Parkinsans', sans-serif;
  --font-accent: 'Lobster Two', cursive;

  /* Spacing */
  --section-padding: 100px;
  --section-padding-mobile: 60px;
  --container-max-width: 1200px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.20);

  /* Overlay */
  --overlay-light: rgba(0, 0, 0, 0.3);
  --overlay-medium: rgba(0, 0, 0, 0.5);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-gradient: linear-gradient(135deg, rgba(13, 36, 64, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* ===================================
   2. GLOBAL RESETS & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  /* Prevent horizontal scroll issues */
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--secondary-color);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.35rem;
  }

  .section-padding {
    padding: 60px 0;
  }
}

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Custom Button Overrides - For Brand Identity */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.show>.btn-outline-primary.dropdown-toggle {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===================================
   3. UTILITY CLASSES
   =================================== */
.section-padding {
  padding: var(--section-padding) 0;
}

.bg-light-gray {
  background-color: var(--light-gray);
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: var(--white);
  padding: 13px 32px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(13, 36, 64, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2E5E99 0%, #1a4a7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 94, 153, 0.35);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 36, 64, 0.3);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #0D2440 0%, #2E5E99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-title p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 20px auto 0;
}

/* ===================================
   4. TOPBAR
   =================================== */
.topbar {
  background: #1a1a1a;
  color: var(--white);
  padding: 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1001;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 45px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 500;
}

.topbar-item i {
  color: #ffffff;
  font-size: 0.9rem;
}

.topbar-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.875rem;
}

.topbar-item a:hover {
  color: var(--primary-light);
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 45px;
}

.topbar-social-links {
  display: flex;
  height: 100%;
  background: linear-gradient(90deg, #0D2440 0%, #2E5E99 100%);
  padding: 0 25px;
  align-items: center;
  gap: 20px;
}

.topbar-social-links a {
  color: #ffffff;
  font-size: 1rem;
  transition: var(--transition-base);
  text-decoration: none;
}

.topbar-social-links a:hover {
  transform: scale(1.2);
  color: #ffffff;
}

/* Topbar Responsive */
@media (max-width: 991px) {
  .topbar {
    display: none;
  }
}

/* ===================================
   5. HEADER & NAVIGATION
   =================================== */
/* ===================================
   5. PREMIUM HEADER & NAVIGATION
   =================================== */
.main-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
  padding: 5px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header-logo {
  height: 65px;
  width: auto;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.scrolled .header-logo {
  height: 50px;
}

/* Desktop Navigation Styles */
@media (min-width: 992px) {
  .navbar-nav .nav-item {
    margin: 0 5px;
  }

  .navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(13, 36, 64, 0.06);
  }

  .btn-contact-nav {
    background: var(--primary-gradient);
    color: var(--white) !important;
    padding: 12px 25px !important;
    box-shadow: 0 4px 15px rgba(13, 36, 64, 0.2);
    margin-left: 15px !important;
  }

  .btn-contact-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 94, 153, 0.35);
    color: var(--white) !important;
    background: var(--primary-dark) !important;
  }

  /* Dropdown Menus - Premium Animation */
  .dropdown-menu {
    border: none !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    opacity: 0;
    visibility: hidden;
    display: block !important;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .nav-item.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: var(--secondary-color);
  }

  .dropdown-item:hover {
    background: rgba(123, 164, 208, 0.12);
    color: var(--primary-color);
    transform: translateX(5px);
  }

  /* Mega Menu for Products */
  .mega-menu {
    width: 650px;
    left: 50%;
    transform: translateX(-50%) translateY(15px) !important;
  }

  .dropdown:hover>.mega-menu {
    transform: translateX(-50%) translateY(0) !important;
  }

  .mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    padding-left: 20px;
  }
}

/* Custom Mobile Toggler */
.custom-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.custom-toggler:focus {
  box-shadow: none;
}

.toggler-icon {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Offcanvas Redesign */
.offcanvas {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  width: 320px !important;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas-header {
  padding: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav {
  padding: 15px;
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 5px;
  opacity: 0;
  transform: translateX(30px);
}

.offcanvas.show .mobile-nav li {
  animation: mobileNavFadeIn 0.5s ease forwards;
}

.offcanvas.show .mobile-nav li:nth-child(1) {
  animation-delay: 0.1s;
}

.offcanvas.show .mobile-nav li:nth-child(2) {
  animation-delay: 0.15s;
}

.offcanvas.show .mobile-nav li:nth-child(3) {
  animation-delay: 0.2s;
}

.offcanvas.show .mobile-nav li:nth-child(4) {
  animation-delay: 0.25s;
}

.offcanvas.show .mobile-nav li:nth-child(5) {
  animation-delay: 0.3s;
}

.offcanvas.show .mobile-nav li:nth-child(6) {
  animation-delay: 0.35s;
}

.offcanvas.show .mobile-nav li:nth-child(7) {
  animation-delay: 0.4s;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: rgba(13, 36, 64, 0.06);
  color: var(--primary-color);
}

.mobile-nav .submenu {
  padding-left: 20px;
  display: none;
  margin-top: 5px;
  list-style: none;
}

.mobile-nav .has-submenu.active .submenu {
  display: block;
}

.mobile-cta {
  background: var(--primary-gradient);
  color: var(--white) !important;
  justify-content: center !important;
  margin-top: 20px;
  box-shadow: 0 10px 20px rgba(13, 36, 64, 0.2);
}

@keyframes mobileNavFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* ===================================
   6. LOVABLE-STYLE HERO SLIDER (REMASTERED)
   =================================== */
.modern-hero {
  position: relative;
  height: 90vh;
  min-height: 700px;
  overflow: hidden;
  background: #000;
  margin-top: 0;
}

.modern-hero .carousel,
.modern-hero .carousel-inner,
.modern-hero .carousel-item {
  height: 100%;
}

/* Absolute Visibility Isolation: Ensures inactive slides are physically impossible to see */
.carousel-item {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modern-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 10s linear;
}

.carousel-item.active .modern-slide-bg {
  transform: scale(1.1);
}

.modern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.modern-content-wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.glass-card {
  max-width: 700px;
  padding: 60px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--white);
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy spring-like entry */
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.carousel-item.active .glass-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.top-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary-light);
  margin-bottom: 25px;
  background: rgba(123, 164, 208, 0.2);
  padding: 6px 15px;
  border-radius: 50px;
}

.glass-card h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--white);
}

.glass-card h1 span {
  background: linear-gradient(90deg, #7BA4D0, #E7F0FA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions .btn {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s ease;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-glass:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: scale(1.05);
}

/* Indicators with Progress Bars */
.modern-hero .carousel-indicators {
  justify-content: center;
  bottom: 40px;
  gap: 15px;
}

.modern-hero .carousel-indicators [data-bs-target] {
  width: 60px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.modern-hero .carousel-indicators .active {
  background-color: rgba(255, 255, 255, 0.3);
}

.modern-hero .carousel-indicators .active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--primary-light);
  animation: progress 6s linear forwards;
}

@keyframes progress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Custom Navigation Buttons */
.modern-hero .carousel-control-prev,
.modern-hero .carousel-control-next {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.4s ease;
}

.modern-hero:hover .carousel-control-prev,
.modern-hero:hover .carousel-control-next {
  opacity: 1;
}

.modern-hero .carousel-control-prev {
  left: 40px;
}

.modern-hero .carousel-control-next {
  right: 40px;
}

.modern-hero .carousel-control-prev:hover,
.modern-hero .carousel-control-next:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 991px) {
  .modern-hero {
    height: 800px;
  }

  .glass-card {
    padding: 40px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .glass-card h1 {
    font-size: 2.8rem;
  }

  .modern-hero .carousel-control-prev,
  .modern-hero .carousel-control-next {
    display: none;
  }
}

@media (max-width: 768px) {
  .modern-hero {
    height: auto;
    min-height: 500px;
    padding: 0;
    /* Removed extra padding that caused gaps */
  }

  .modern-hero .carousel-inner,
  .modern-hero .carousel-item {
    min-height: 500px;
  }

  .glass-card {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .glass-card h1 {
    font-size: 2.2rem;
  }

  .glass-card p {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    margin: 10px 0 !important;
    display: block;
  }
}

/* ===================================
   6. INTERNAL PAGE HERO
   =================================== */
.page-hero {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #0D2440 0%, #2E5E99 100%) !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-darker);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
}

.page-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 800;
  color: var(--white);
  /* Add a subtle drop shadow to make it pop against the hero gradient background */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.breadcrumb {
  background-color: transparent;
  justify-content: center;
  margin-bottom: 0;
  padding: 0;
}

.breadcrumb-item {
  color: var(--white);
  font-size: 0.95rem;
}

.breadcrumb-item a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition-base);
}

.breadcrumb-item a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.breadcrumb-item.active {
  color: var(--accent-color);
  font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--white);
  opacity: 0.6;
}

/* ===================================
   8. CARDS & CONTENT BLOCKS
   =================================== */
.card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-img-top {
  height: 240px;
  object-fit: cover;
  transition: var(--transition-slow);
  background: var(--light-gray);
}

.card:hover .card-img-top {
  transform: scale(1.08);
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--primary-color);
  font-weight: 700;
  transition: var(--transition-fast);
}

.card:hover .card-title {
  color: var(--primary-dark);
}

.card-text {
  color: var(--darker-gray);
  margin-bottom: 24px;
  line-height: 1.7;
  flex-grow: 1;
}

.card .btn {
  margin-top: auto;
  border-radius: var(--radius-md);
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 45px 35px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  background: var(--primary-gradient);
  color: var(--white);
  border-color: transparent;
}

.feature-card .icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition-base);
}

.feature-card:hover .icon {
  color: var(--white);
  transform: scale(1.1);
}

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  transition: var(--transition-base);
}

.feature-card:hover h4 {
  color: var(--white);
}

.feature-card p {
  color: var(--dark-gray);
  transition: var(--transition-base);
}

.feature-card:hover p {
  color: var(--white);
  opacity: 0.95;
}

/* ===================================
   9. GALLERY
   =================================== */
.gallery-grid {
  column-count: 3;
  column-gap: 24px;
  margin-top: 30px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--light-gray);
}

.gallery-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 0.9;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 10px;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  transition-delay: 0.1s;
}

.gallery-item:hover .gallery-overlay i,
.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
  opacity: 1;
}

/* ===================================
   9. TESTIMONIALS
   =================================== */
.testimonial-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  margin: 20px 10px;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* ===================================
   10. CONTACT FORM
   =================================== */
.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 8px;
  display: block;
}

.form-control {
  border: 2px solid var(--medium-gray);
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(46, 94, 153, 0.2);
  outline: none;
}

.form-select {
  border: 2px solid var(--medium-gray);
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(46, 94, 153, 0.2);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===================================
   11. FOOTER
   =================================== */
.main-footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding-top: 60px;
}

.footer-column h5 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column p {
  color: var(--white);
  line-height: 1.8;
  opacity: 0.9;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition-base);
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--white);
  opacity: 1;
  padding-left: 5px;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 20px;
}

.footer-contact-info {
  margin-top: 20px;
}

.footer-contact-info div {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
}

.footer-contact-info i {
  margin-right: 20px;
  font-size: 0.75rem;
  width: 24px;
  text-align: center;
  color: var(--primary-light);
  margin-top: 5px;
}

.footer-contact-info a {
  color: var(--white);
  transition: var(--transition-fast);
}

.footer-contact-info a:hover {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50% !important;
  color: var(--white);
  transition: var(--transition-base);
  flex-shrink: 0;
}

.social-links a i {
  font-size: 0.85rem;
}

/* Testimonials Section */
.testimonial-card {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author h5 {
  margin: 0;
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stars {
  color: #ffc107;
  margin-bottom: 15px;
}

.stars i {
  font-size: 0.8rem;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #000000;
  padding: 20px 0;
  margin-top: 50px;
}

.footer-bottom p {
  margin: 0;
  color: var(--white);
  opacity: 0.8;
}

.sub-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .sub-footer-links {
    justify-content: center;
  }
}

.sub-footer-links a {
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.sub-footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

/* ===================================
   12. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1199px) {
  :root {
    --section-padding: 90px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 75px;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .page-hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }

  /* End of Responsive section adjustments */
}

@media (max-width: 768px) {

  :root {
    --section-padding: 60px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .modern-hero {
    height: auto;
    min-height: 500px;
  }

  .page-hero {
    height: 280px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .subtitle {
    font-size: 0.95rem;
    padding: 6px 16px;
  }

  .navbar-brand img {
    height: 50px;
  }

  .contact-form {
    padding: 30px;
  }

  .footer-column {
    margin-bottom: 35px;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 20px;
  }

  .feature-card {
    padding: 35px 25px;
  }

  .card-body {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 50px;
  }

  .modern-hero {
    height: auto;
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section-title h2 {
    font-size: 1.875rem;
  }

  .hero-content .btn {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
    padding: 12px 28px;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    column-count: 1;
  }

  .card-img-top {
    height: 200px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .section-title h2::after {
    width: 70px;
  }
}

/* ===================================
   13. ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Glassmorphism & Modern Utilities */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-effect-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.info-icon-box {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(13, 36, 64, 0.25);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark-gray);
  font-weight: 600;
}

/* About Section Specific Styling */
.about-image-wrapper {
  width: 100%;
}

.about-image {
  width: 100%;
  height: 400px;
  /* Reduced height as requested */
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991px) {
  .about-image {
    height: auto;
    max-height: 350px;
  }
}

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }
}

/* Alert Messages */
.alert {
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* ===================================
   14. PARTNER BRANDS CAROUSEL
   =================================== */
.brands-swiper {
  padding: 20px 0 50px;
}

.brand-item {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 120px !important;
  transition: var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.brand-item img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  transition: var(--transition-base);
}

.brands-swiper .swiper-pagination-bullet-active {
  background: var(--primary-color);
}

/* ===================================
   15. INFORMATIVE VIDEOS SECTION
   =================================== */
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.video-container {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--primary-color);
  background: var(--black);
  /* Visibility safeguard */
  min-height: 200px;
}

.video-container .ratio {
  background: var(--black);
}

.video-container iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.video-card-body {
  padding: 25px;
}

.video-card-body h4 {
  color: var(--title-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.video-card-body p {
  color: var(--text-color);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================================
   16. ACCORDION STYLING
   =================================== */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary-color);
  background-color: var(--white);
  transition: var(--transition-base);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(46, 94, 153, 0.15);
}

.accordion-button::after {
  background-size: 1.25rem;
  transition: var(--transition-base);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 25px;
  background-color: var(--white);
  color: var(--dark-gray);
  line-height: 1.8;
}