/* Custom styles for this website */

/* Logo visibility based on theme - prevent duplication */
/* Default: show light logo, hide dark logo */
.logo .logo-dark-mode {
  display: none !important;
}

.logo .logo-light-mode {
  display: block !important;
}

/* Dark theme: show dark logo, hide light logo */
[data-theme="dark"] .logo .logo-dark-mode,
body.theme-dark .logo .logo-dark-mode,
html[data-theme="dark"] .logo .logo-dark-mode {
  display: block !important;
}

[data-theme="dark"] .logo .logo-light-mode,
body.theme-dark .logo .logo-light-mode,
html[data-theme="dark"] .logo .logo-light-mode {
  display: none !important;
}

/* Light theme: show light logo, hide dark logo */
[data-theme="light"] .logo .logo-light-mode,
body.theme-light .logo .logo-light-mode,
html[data-theme="light"] .logo .logo-light-mode {
  display: block !important;
}

[data-theme="light"] .logo .logo-dark-mode,
body.theme-light .logo .logo-dark-mode,
html[data-theme="light"] .logo .logo-dark-mode {
  display: none !important;
}

/* Company Logo Styling - MUCH LARGER sizes for perfect visibility */
.company-logo {
  height: 180px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

/* Single logo display - no duplicates */
.logo img.company-logo {
  display: block !important;
}

/* Ensure navbar items are on same row - compact height */
#topnav #navigation {
  display: flex !important;
  align-items: center !important;
  height: 70px !important;
}

#topnav .navigation-menu {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  height: 70px !important;
}

/* Logo in navbar - VERY LARGE logo with compact navbar */
#topnav {
  display: flex !important;
  align-items: center !important;
  padding: 5px 0 !important;
  min-height: 70px !important;
  max-height: 70px !important;
}

#topnav .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0 15px !important;
  height: 70px !important;
}

#topnav .logo {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  height: 70px !important;
  font-size: 0 !important;
  margin: 0 !important;
  float: none !important;
  overflow: visible !important;
}

#topnav .logo a {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  height: 100% !important;
}

#topnav .logo .company-logo {
  height: 180px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Override any height constraints from base CSS */
#topnav .logo img.company-logo {
  height: 180px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  vertical-align: middle !important;
}

/* Single logo - ensure proper display */
#topnav .logo img.company-logo {
  display: block !important;
  visibility: visible !important;
}

/* Responsive logo sizing - keep navbar compact but logo large */
@media (max-width: 1200px) {
  .company-logo {
    height: 160px !important;
  }
  
  #topnav {
    min-height: 65px !important;
    max-height: 65px !important;
  }
  
  #topnav .container {
    height: 65px !important;
  }
  
  #topnav #navigation {
    height: 65px !important;
  }
  
  #topnav .navigation-menu {
    height: 65px !important;
  }
  
  #topnav .logo {
    height: 65px !important;
  }
  
  #topnav .logo .company-logo {
    height: 160px !important;
  }
}

@media (max-width: 992px) {
  .company-logo {
    height: 140px !important;
  }
  
  #topnav {
    min-height: 60px !important;
    max-height: 60px !important;
  }
  
  #topnav .container {
    height: 60px !important;
  }
  
  #topnav #navigation {
    height: 60px !important;
  }
  
  #topnav .navigation-menu {
    height: 60px !important;
  }
  
  #topnav .logo {
    height: 60px !important;
  }
  
  #topnav .logo .company-logo {
    height: 140px !important;
  }
}

@media (max-width: 768px) {
  .company-logo {
    height: 120px !important;
  }
  
  #topnav {
    min-height: 55px !important;
    max-height: 55px !important;
  }
  
  #topnav .container {
    height: 55px !important;
  }
  
  #topnav #navigation {
    height: 55px !important;
  }
  
  #topnav .navigation-menu {
    height: 55px !important;
  }
  
  #topnav .logo {
    height: 55px !important;
  }
  
  #topnav .logo .company-logo {
    height: 120px !important;
  }
}

@media (max-width: 480px) {
  .company-logo {
    height: 100px !important;
  }
  
  #topnav {
    min-height: 50px !important;
    max-height: 50px !important;
  }
  
  #topnav .container {
    height: 50px !important;
  }
  
  #topnav #navigation {
    height: 50px !important;
  }
  
  #topnav .navigation-menu {
    height: 50px !important;
  }
  
  #topnav .logo {
    height: 50px !important;
  }
  
  #topnav .logo .company-logo {
    height: 100px !important;
  }
}

/* Logo in offcanvas */
.offcanvas-header .company-logo {
  max-height: 60px !important;
  height: auto !important;
}

/* Logo in footer - SAME SIZE AS HEADER (180px) */
.company-logo-footer {
  height: 180px !important;
  width: auto !important;
  object-fit: contain;
  transition: opacity 0.3s ease;
  display: block !important;
}

.footer .logo-footer {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.footer .logo-footer img.company-logo-footer {
  height: 180px !important;
  width: auto !important;
}

/* Footer container adjustments for larger logo */
.footer-bar {
  min-height: 70px !important;
  display: flex !important;
  align-items: center !important;
  padding: 5px 0 !important;
}

.footer-bar .col-lg-3 {
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}

.company-logo-footer:hover {
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .company-logo-footer {
    height: 160px !important;
  }
  
  .footer .logo-footer img.company-logo-footer {
    height: 160px !important;
  }
}

@media (max-width: 992px) {
  .company-logo-footer {
    height: 140px !important;
  }
  
  .footer .logo-footer img.company-logo-footer {
    height: 140px !important;
  }
}

@media (max-width: 768px) {
  .company-logo-footer {
    height: 120px !important;
  }
  
  .footer .logo-footer img.company-logo-footer {
    height: 120px !important;
  }
}

@media (max-width: 480px) {
  .company-logo-footer {
    height: 100px !important;
  }
  
  .footer .logo-footer img.company-logo-footer {
    height: 100px !important;
  }
}

/* Ensure logo container doesn't break layout */
.logo {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
  font-size: 0 !important;
  padding: 0 !important;
}

.logo img.company-logo {
  vertical-align: middle !important;
}

/* Smooth hover effects */
.logo:hover .company-logo {
  transform: scale(1.05);
}

/* Fix navbar height - COMPACT navbar */
#topnav.defaultscroll {
  min-height: 70px !important;
  max-height: 70px !important;
  padding: 5px 0 !important;
  display: flex !important;
  align-items: center !important;
}

#topnav.defaultscroll .logo {
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  height: 70px !important;
  overflow: visible !important;
}

/* Ensure proper spacing around logo */
#topnav .container > div:first-child {
  display: flex;
  align-items: center;
  padding: 0 !important;
  height: 70px !important;
  overflow: visible !important;
}

/* Override base logo CSS that might constrain size */
.logo {
  font-weight: normal !important;
  font-size: 0 !important;
  margin-right: 30px !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}

/* Ensure navigation menu is aligned with logo - compact height */
#topnav #navigation .navigation-menu {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}

#topnav #navigation .navigation-menu > li {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}

#topnav #navigation .navigation-menu > li > a {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 992px) {
  .menu-extras {
    display: none !important;
  }
}

/* ================================
   Modern Navigation Styles
   ================================ */

/* Modern Header - Fixed Alignment */
.modern-nav {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 0.5rem 0 !important;
}

.modern-nav.nav-sticky {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-nav .container {
  max-width: 100%;
  padding: 0 15px;
}

.modern-nav .container > div {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

/* Ensure logo doesn't flex */
.modern-nav .logo {
  flex-shrink: 0;
}

/* Navigation Container */
#navigation {
  flex: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0;
}

/* Modern Navigation Menu */
.nav-modern {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex-wrap: nowrap !important;
}

.nav-modern .nav-item {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-modern .nav-link {
  padding: 0.5rem 0.75rem !important;
  font-weight: 500;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap;
  line-height: 1.5;
}

/* Hover effects only on desktop with mouse */
@media (hover: hover) and (pointer: fine) {
  .nav-modern .nav-link:hover {
    transform: translateY(-2px);
  }
}

/* Light theme nav links */
[data-theme="light"] .nav-modern .nav-link,
html:not([data-theme="dark"]) .nav-modern .nav-link {
  color: #3c4858;
}

/* Dark theme nav links */
[data-theme="dark"] .nav-modern .nav-link {
  color: #e2e8f0;
}

/* Hover effects only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .nav-modern .nav-link:hover,
  html:not([data-theme="dark"]) .nav-modern .nav-link:hover {
    color: #2f55d4;
    background: rgba(47, 85, 212, 0.05);
  }

  [data-theme="dark"] .nav-modern .nav-link:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
  }
}

/* Dropdown Icon */
.nav-modern .nav-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

/* Modern Mega Dropdown */
.submenu.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 600px;
  padding: 1.5rem;
  margin-top: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

/* Light theme dropdown */
[data-theme="light"] .submenu.mega-dropdown,
html:not([data-theme="dark"]) .submenu.mega-dropdown {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark theme dropdown */
[data-theme="dark"] .submenu.mega-dropdown {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop hover effects - only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  .nav-modern .has-submenu:hover .nav-link i {
    transform: rotate(180deg);
  }

  .has-submenu:hover .submenu.mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }
}

/* Dropdown Items */
.mega-dropdown .sub-menu-item {
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
}

/* Light theme dropdown items */
[data-theme="light"] .mega-dropdown .sub-menu-item,
html:not([data-theme="dark"]) .mega-dropdown .sub-menu-item {
  color: #3c4858;
}

/* Dark theme dropdown items */
[data-theme="dark"] .mega-dropdown .sub-menu-item {
  color: #e2e8f0;
}

/* Hover effects only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .mega-dropdown .sub-menu-item:hover,
  html:not([data-theme="dark"]) .mega-dropdown .sub-menu-item:hover {
    background: rgba(47, 85, 212, 0.05);
    transform: translateX(5px);
  }

  [data-theme="dark"] .mega-dropdown .sub-menu-item:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: translateX(5px);
  }
}

/* Dropdown Icon Box */
.mega-dropdown .icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-right: 0.875rem;
  transition: all 0.3s ease;
}

/* Light theme icon box */
[data-theme="light"] .mega-dropdown .icon-box,
html:not([data-theme="dark"]) .mega-dropdown .icon-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark theme icon box */
[data-theme="dark"] .mega-dropdown .icon-box {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
}

.mega-dropdown .icon-box i {
  font-size: 20px;
  color: #ffffff;
}

/* Icon box hover only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  .mega-dropdown .sub-menu-item:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
  }
}

.mega-dropdown h6 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

/* Light theme dropdown headings */
[data-theme="light"] .mega-dropdown h6,
html:not([data-theme="dark"]) .mega-dropdown h6 {
  color: #1e293b;
}

/* Dark theme dropdown headings */
[data-theme="dark"] .mega-dropdown h6 {
  color: #f1f5f9;
}

.mega-dropdown small {
  font-size: 12px;
  opacity: 0.7;
}

/* Action Buttons - Fixed Alignment */
.buy-button {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.buy-button li {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.buy-button .btn {
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap;
  line-height: 1.5;
  margin: 0 !important;
}

.buy-button .btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 14px;
  height: 38px;
}

/* Theme Toggle Button - Same Height */
.theme-toggle {
  position: relative;
  overflow: hidden;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

/* Button hover effects only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  .buy-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .theme-toggle:hover {
    transform: scale(1.1) translateY(-2px) !important;
  }
}

/* ================================
   Modern Footer Styles
   ================================ */

.footer-modern {
  position: relative;
  padding-top: 3rem;
}

/* Light theme footer */
[data-theme="light"] .footer-modern,
html:not([data-theme="dark"]) .footer-modern {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark theme footer */
[data-theme="dark"] .footer-modern {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand Section */
.footer-brand {
  padding-right: 2rem;
}

.footer-brand .logo-light-mode,
.footer-brand .logo-dark-mode {
  max-width: 180px;
  height: auto;
  transition: opacity 0.3s ease;
}

.footer-brand a:hover .logo-light-mode,
.footer-brand a:hover .logo-dark-mode {
  opacity: 0.8;
}

/* Footer Headings */
.footer-head {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.75rem;
}

/* Light theme footer headings */
[data-theme="light"] .footer-head,
html:not([data-theme="dark"]) .footer-head {
  color: #1e293b !important;
}

/* Dark theme footer headings */
[data-theme="dark"] .footer-head {
  color: #f1f5f9 !important;
}

.footer-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

[data-theme="dark"] .footer-head::after {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
}

/* Footer Links */
.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links .text-foot {
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

/* Light theme footer links */
[data-theme="light"] .footer-links .text-foot,
html:not([data-theme="dark"]) .footer-links .text-foot {
  color: #64748b;
}

/* Dark theme footer links */
[data-theme="dark"] .footer-links .text-foot {
  color: #94a3b8;
}

/* Hover effects only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .footer-links .text-foot:hover,
  html:not([data-theme="dark"]) .footer-links .text-foot:hover {
    color: #2f55d4;
    transform: translateX(5px);
  }

  [data-theme="dark"] .footer-links .text-foot:hover {
    color: #60a5fa;
    transform: translateX(5px);
  }
}

/* Social Icons */
.social-icon-modern {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon-modern li a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Light theme social icons */
[data-theme="light"] .social-icon-modern li a,
html:not([data-theme="dark"]) .social-icon-modern li a {
  background: rgba(47, 85, 212, 0.1);
  color: #2f55d4;
}

/* Dark theme social icons */
[data-theme="dark"] .social-icon-modern li a {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
}

/* Social icon hover effects only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .social-icon-modern li a:hover,
  html:not([data-theme="dark"]) .social-icon-modern li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }

  [data-theme="dark"] .social-icon-modern li a:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
  }
}

/* Newsletter Form */
.newsletter-form .input-group {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 14px;
}

/* Light theme newsletter */
[data-theme="light"] .newsletter-form .form-control,
html:not([data-theme="dark"]) .newsletter-form .form-control {
  background: #ffffff;
  color: #1e293b;
}

/* Dark theme newsletter */
[data-theme="dark"] .newsletter-form .form-control {
  background: #0f172a;
  color: #f1f5f9;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  outline: none;
}

.newsletter-form .btn-primary {
  padding: 0.875rem 1.75rem;
  border: none;
}

.rounded-pill-start {
  border-radius: 50px 0 0 50px !important;
}

.rounded-pill-end {
  border-radius: 0 50px 50px 0 !important;
}

/* Footer Contact Section */
.footer-contact {
  height: 100%;
}

.footer-contact-list li a {
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Light theme contact list */
[data-theme="light"] .footer-contact-list li a,
html:not([data-theme="dark"]) .footer-contact-list li a {
  color: #64748b;
}

/* Dark theme contact list */
[data-theme="dark"] .footer-contact-list li a {
  color: #94a3b8;
}

.footer-contact-list li a i {
  font-size: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Contact list hover effects only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .footer-contact-list li a:hover,
  html:not([data-theme="dark"]) .footer-contact-list li a:hover {
    color: #2f55d4;
  }

  [data-theme="dark"] .footer-contact-list li a:hover {
    color: #60a5fa;
  }

  .footer-contact-list li a:hover i {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Footer Social in Contact Section */
.footer-contact .footer-social {
  padding-top: 1rem;
  border-top: 1px solid;
}

/* Light theme border */
[data-theme="light"] .footer-contact .footer-social,
html:not([data-theme="dark"]) .footer-contact .footer-social {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Dark theme border */
[data-theme="dark"] .footer-contact .footer-social {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Footer Bottom Bar */
.footer-bar {
  padding: 1.5rem 0;
  margin-top: 2rem;
}

/* Light theme footer bar */
[data-theme="light"] .footer-bar,
html:not([data-theme="dark"]) .footer-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark theme footer bar */
[data-theme="dark"] .footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links li a {
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Light theme legal links */
[data-theme="light"] .footer-legal-links li a,
html:not([data-theme="dark"]) .footer-legal-links li a {
  color: #64748b;
}

/* Dark theme legal links */
[data-theme="dark"] .footer-legal-links li a {
  color: #94a3b8;
}

/* Legal links hover effects only on devices with mouse */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .footer-legal-links li a:hover,
  html:not([data-theme="dark"]) .footer-legal-links li a:hover {
    color: #2f55d4;
  }

  [data-theme="dark"] .footer-legal-links li a:hover {
    color: #60a5fa;
  }
}

/* Mobile/Tablet Responsive Design */
@media (max-width: 991px) {
  /* Header container adjustments */
  .modern-nav {
    padding: 0.75rem 0 !important;
  }
  
  .modern-nav .container > div {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  /* Logo stays on left */
  .modern-nav .logo {
    order: 1;
    flex: 0 0 auto;
  }
  
  /* Buttons next to hamburger */
  .buy-button {
    order: 2;
    margin-left: auto !important;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  
  .buy-button .btn-sm {
    padding: 0.4rem 0.75rem !important;
    font-size: 13px;
    height: 36px;
  }
  
  .buy-button .btn i {
    font-size: 14px;
  }
  
  .theme-toggle {
    width: 36px !important;
    height: 36px !important;
  }
  
  /* Hamburger menu */
  .menu-extras {
    display: flex !important;
    order: 3;
    margin-left: 0.5rem;
  }
  
  /* Navigation menu - full width below */
  #navigation {
    order: 4;
    width: 100%;
    flex: 0 0 100%;
    display: none;
  }
  
  #navigation.active,
  #navigation.show {
    display: block !important;
  }
  
  .nav-modern {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 1rem 0;
    width: 100%;
    gap: 0;
  }
  
  .nav-modern .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  [data-theme="dark"] .nav-modern .nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }
  
  .nav-modern .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.875rem 0 !important;
    border-radius: 0;
  }
  
  /* Mobile dropdown */
  .submenu.mega-dropdown {
    position: static;
    transform: none;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent !important;
  }
  
  .has-submenu .submenu.mega-dropdown {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .has-submenu.active .submenu.mega-dropdown {
    display: grid;
    max-height: 1000px;
  }
  
  .mega-dropdown .sub-menu-item {
    padding: 0.75rem 1rem;
    margin: 0;
    border-radius: 0;
  }
  
  [data-theme="light"] .mega-dropdown .sub-menu-item,
  html:not([data-theme="dark"]) .mega-dropdown .sub-menu-item {
    background: rgba(0, 0, 0, 0.02);
  }
  
  [data-theme="dark"] .mega-dropdown .sub-menu-item {
    background: rgba(255, 255, 255, 0.02);
  }
  
  .mega-dropdown .icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 0.75rem;
  }
  
  .mega-dropdown .icon-box i {
    font-size: 18px;
  }
  
  .mega-dropdown h6 {
    font-size: 13px;
  }
  
  .mega-dropdown small {
    font-size: 11px;
  }
  
  /* Dropdown icon rotation on mobile */
  .has-submenu.active .nav-link i {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  /* Footer responsive */
  .footer-brand {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .footer-links,
  .footer-newsletter {
    margin-bottom: 2rem;
  }
  
  /* Smaller buttons on small mobile */
  .buy-button .btn-sm {
    padding: 0.35rem 0.65rem !important;
    font-size: 12px;
    height: 34px;
  }
  
  .buy-button .btn i {
    font-size: 13px;
    margin-right: 0.25rem !important;
  }
  
  .theme-toggle {
    width: 34px !important;
    height: 34px !important;
  }
  
  /* Compact logo on small mobile */
  #topnav .logo .company-logo {
    height: 100px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile */
  .buy-button {
    gap: 0.25rem;
  }
  
  .buy-button .btn-sm {
    padding: 0.3rem 0.5rem !important;
    font-size: 11px;
    height: 32px;
  }
  
  .buy-button .btn span {
    display: none;
  }
  
  .buy-button .btn i {
    margin: 0 !important;
  }
  
  .theme-toggle {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Animation for dropdown appearance */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.has-submenu:hover .submenu.mega-dropdown {
  animation: slideDown 0.3s ease-out;
}
