/* =========== Root Variables =========== */
:root {
  --primary: #2c3e50;
  --secondary: #e67e22;
  --background: #f8f9fa;
  --text-dark: #333;
  --text-light: #fff;
  --accent: #e67e22;
  --font-family: 'Arial', sans-serif;
  --hero-bg: linear-gradient(-45deg, #2c3e50, #34495e, #e67e22, #d35400);
  --shadow-light: 0 8px 25px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 15px 40px rgba(230, 126, 34, 0.3);
  --shadow-strong: 0 25px 50px rgba(37, 117, 252, 0.25);
}

/* =========== Dark Mode Variables =========== */
body.dark {
  --background: #1a1a1a;
  --text-dark: #fff;
  --primary: #34495e;
  --hero-bg: linear-gradient(-45deg, #0d1117, #161b22, #1a1a1a, #2d2d2d);
}

/* =========== Reset & Global =========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* =========== Navbar (Enhanced Responsive) =========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background: var(--primary);
  box-shadow: var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 80px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100vw;
}

.nav-logo img.logo-img {
  height: 55px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.nav-logo img.logo-img:hover {
  transform: scale(1.08);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-left li a {
  color: var(--text-light);
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-left li a:hover {
  background: var(--accent);
  color: var(--text-light);
  transform: translateY(-2px);
}

.nav-search {
  position: relative;
  width: 280px;
  min-width: 200px;
}

.nav-search input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-search input:focus {
  box-shadow: 0 0 15px var(--accent);
  transform: scale(1.02);
}

.nav-search i.fa-magnifying-glass {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-search i.fa-magnifying-glass:hover {
  color: var(--accent);
}

/* Voice search button in navbar only */
.nav-search .voice-search-btn {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-search .voice-search-btn:hover {
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent);
}

/* =========== Language Dropdown & Toggles (Enhanced) =========== */
.nav-toggles {
  display: flex;
  gap: 15px;
  align-items: center;
}

.toggle-btn {
  padding: 8px 18px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: var(--text-light);
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.toggle-btn:hover {
  background: #c76000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(199, 96, 0, 0.4);
}

/* Language Dropdown - Fixed positioning */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  background-color: white;
  min-width: 140px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 2000;
  overflow: hidden;
  border: 1px solid #eee;
}

.language-dropdown-content a {
  color: var(--text-dark);
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.language-dropdown-content a:hover {
  background-color: var(--background);
}

.language-dropdown-content a.active {
  background-color: var(--accent);
  color: white;
}

.language-dropdown:hover .language-dropdown-content,
.language-dropdown-content:hover {
  display: block;
}

.nav-right {
  margin-left: 8px;
}

.nav-right a.sign_in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 25px;
  background: var(--accent);
  color: var(--text-light);
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-right a.sign_in:hover {
  background: #cf6e11;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(207, 110, 17, 0.4);
}

/* =========== Main Container Layout (Enhanced) =========== */
.main-container {
  display: flex;
  min-height: calc(100vh - 80px);
  max-width: 1400px;
  margin: 0 auto;
  gap: 25px;
  padding: 25px 2%;
}

/* =========== Sidebar (Enhanced Responsive) =========== */
.sidebar {
  width: 300px;
  background: var(--primary);
  color: var(--text-light);
  padding: 30px 25px;
  border-radius: 15px;
  position: fixed;
  top: 105px;
  left: 2%;
  height: calc(100vh - 135px);
  max-height: calc(100vh - 135px);
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
  flex-shrink: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
  text-align: center;
}

.sidebar ul {
  margin-bottom: 35px;
}

.sidebar ul li a {
  display: block;
  color: var(--text-light);
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 4px;
  border-left: 4px solid transparent;
}

.sidebar ul li a:hover {
  background: var(--secondary);
  transform: translateX(8px);
  border-left-color: #fff;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/* =========== Main Content Area (Enhanced) =========== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
  min-width: 0;
  margin-left: calc(320px);
  padding: 0 2%;
}

/* =========== ENHANCED HERO SECTION (Much Bigger & Better) =========== */
.hero-section {
  width: 100%;
  min-height: 600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  padding: 80px 50px;
  background: var(--hero-bg);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  margin: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
  animation: pulseBackground 10s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseBackground {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.2;
  }
}

.hero-section * {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4.2rem;
  font-weight: 900;
  margin-bottom: 30px;
  text-shadow: 4px 4px 15px rgba(0,0,0,0.5);
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========== ENHANCED SEARCH BAR - Hero Section Fixed =========== */
.hero-search {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 35px auto;
  max-width: 700px;
  width: 100%;
}

.hero-search input {
  width: 100%;
  padding: 20px 30px;
  border-radius: 50px 0 0 50px;
  border: none;
  font-size: 18px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.95);
}

.hero-search input:focus {
  box-shadow: 0 0 25px rgba(255,255,255,0.8);
  transform: translateY(-3px);
  background: white;
}

.hero-search button {
  padding: 20px 35px;
  border-radius: 0 50px 50px 0;
  border: none;
  background: var(--accent);
  color: var(--text-light);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  font-size: 18px;
}

.hero-search button:hover {
  background: #cf6e11;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* NO voice search in hero section */
.hero-search .voice-search-btn {
  display: none !important;
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 35px;
  background: white;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-suggestions.show {
  display: block;
}

.search-suggestion-item {
  padding: 15px 25px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #eee;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-suggestion-item:hover {
  background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
  border-bottom: none;
  border-radius: 0 0 15px 15px;
}

.search-suggestion-item i {
  color: var(--accent);
  font-size: 16px;
}

.hey {
  color: var(--text-light);
  font-size: 22px;
  font-weight: 700;
  text-decoration: underline;
  margin-top: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hey:hover {
  color: #ffb84d;
  transform: scale(1.08);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* =========== Content Area (Enhanced) =========== */
.content-area {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: var(--shadow-light);
  min-height: 350px;
}

.content-placeholder {
  text-align: center;
}

.content-placeholder h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 800;
}

.content-placeholder p {
  font-size: 20px;
  color: #666;
  margin-bottom: 50px;
}

.content-cards {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

.content-card {
  background: var(--background);
  padding: 35px 30px;
  border-radius: 15px;
  width: 280px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  border: 3px solid transparent;
}

.content-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--accent);
  box-shadow: var(--shadow-medium);
}

.content-card i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 25px;
}

.content-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.content-card p {
  color: #666;
  font-size: 15px;
}

/* =========== Pricing Section (Enhanced) =========== */
.pricing-section {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-light);
}

.pricing-section h2 {
  text-align: center;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 35px;
  font-size: 2.3rem;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  background: var(--background);
  border: 3px solid var(--secondary);
  border-radius: 20px;
  padding: 30px 25px;
  width: 280px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--shadow-medium);
}

.card.popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-medium);
  transform: scale(1.05);
}

.card.popular::before {
  content: "POPULAR";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
}

.card h3 {
  margin-bottom: 25px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.4rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 25px;
}

.card ul li {
  margin-bottom: 12px;
  color: #555;
  font-weight: 600;
  padding: 5px 0;
  font-size: 15px;
}

.buy-btn {
  background: var(--accent);
  border: none;
  padding: 15px 30px;
  color: var(--text-light);
  font-weight: 800;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
  font-size: 16px;
}

.buy-btn:hover {
  background: #cf6e11;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(230, 126, 34, 0.5);
}

/* =========== Footer (Enhanced) - Fixed positioning =========== */
.footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 60px 5% 30px 5%;
  border-radius: 0;
  box-shadow: 0 -8px 25px rgba(44, 62, 80, 0.3);
  margin-top: auto;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2%;
}

.footer-left,
.footer-middle,
.footer-right {
  flex: 1 1 300px;
  min-width: 280px;
}

.footer-left p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links li a {
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-middle h3,
.footer-right h3 {
  margin-bottom: 25px;
  font-weight: 800;
  font-size: 1.4rem;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}

.newsletter-form button {
  background: var(--accent);
  color: var(--text-light);
  border: none;
  padding: 15px 25px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #cf6e11;
  transform: translateY(-2px);
}

.footer-right a {
  color: #ddd;
  transition: all 0.3s ease;
}

.footer-right a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  font-size: 26px;
  margin-right: 18px;
  color: #ddd;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-4px) scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid #444;
  padding-top: 25px;
  font-size: 15px;
  color: #bbb;
  /* margin-bottom: -50px; */
}

/* =========== Modal Styles (Enhanced) =========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 50px;
  border-radius: 25px;
  width: 90%;
  max-width: 500px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-strong);
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-60px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 32px;
  color: #555;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 800;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.modal-content h2 {
  margin-bottom: 35px;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

/* Forms (Enhanced) */
.buy-form input,
.buy-form select,
.form-box input,
.form-box select {
  width: 100%;
  padding: 18px 22px;
  margin-bottom: 25px;
  border-radius: 12px;
  border: 2px solid #ddd;
  font-size: 17px;
  outline: none;
  transition: all 0.3s ease;
}

.buy-form input:focus,
.buy-form select:focus,
.form-box input:focus,
.form-box select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
  transform: translateY(-3px);
}

.buy-form button,
.submit-btn {
  background-color: var(--accent);
  color: var(--text-light);
  border: none;
  padding: 18px 30px;
  font-weight: 800;
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 17px;
}

.buy-form button:hover,
.submit-btn:hover {
  background-color: #cf6e11;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
}

/* Tabs inside modal */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 35px;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 18px 0;
  background: #f8f9fa;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  color: #666;
  font-size: 16px;
}

.tab-btn.active {
  background: var(--primary);
  color: var(--text-light);
}

.tab-btn:hover:not(.active) {
  background: #e9ecef;
}

/* Forms inside sign in/up modal */
.form-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-box.hidden {
  display: none;
}

.form-box label {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

/* =========== RESPONSIVE DESIGN (Much Better) =========== */
@media (max-width: 1400px) {
  .main-container {
    max-width: 100%;
    padding: 20px 1%;
  }
  
  .sidebar {
    width: 280px;
    left: 1%;
  }
  
  .main-content {
    margin-left: calc(300px);
  }
}

@media (max-width: 1200px) {
  .navbar {
    padding: 15px 3%;
  }
  
  .sidebar {
    width: 260px;
    left: 1%;
  }
  
  .main-content {
    margin-left: calc(280px);
  }
}

@media (max-width: 992px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 80px;
    padding: 18px 3%;
  }
  
  .nav-center {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    order: 2;
  }
  
  .nav-left {
    justify-content: center;
    width: 100%;
  }
  
  .nav-search {
    width: 100%;
    max-width: 400px;
  }
  
  .nav-toggles {
    order: 1;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
  }
  
  body {
    padding-top: 140px;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .sidebar {
    top: 150px;
    height: calc(100vh - 180px);
  }
  
  .hero-section {
    min-height: 500px;
    padding: 60px 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 2%;
  }
  
  .main-container {
    flex-direction: column;
    gap: 30px;
    padding: 15px 2%;
  }
  
  .sidebar {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    height: auto;
    max-height: none;
    order: 2;
    margin-bottom: 25px;
  }
  
  .main-content {
    order: 1;
    margin-left: 0;
    padding: 0 2%;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-search {
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }
  
  .hero-search input {
    border-radius: 25px 25px 0 0;
  }
  
  .hero-search button {
    border-radius: 0 0 25px 25px;
  }
  
  .hero-section {
    margin: 0;
    min-height: 450px;
    padding: 50px 20px;
  }
  
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .content-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .footer {
    padding: 40px 3% 30px 3%;
    
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 1%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    min-width: unset;
  }
}

@media (max-width: 576px) {
  .main-container {
    padding: 10px 1%;
    gap: 20px;
  }
  
  .navbar {
    padding: 15px 2%;
  }
  
  .hero-section {
    padding: 40px 15px;
    min-height: 400px;
    margin: 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-search input {
    padding: 16px 25px;
    font-size: 16px;
  }
  
  .hero-search button {
    padding: 16px 25px;
    font-size: 16px;
  }
  
  .pricing-section,
  .content-area {
    padding: 30px 20px;
  }
  
  .card {
    width: 100%;
    max-width: 320px;
    padding: 25px 20px;
  }
  
  .modal-content {
    padding: 35px 25px;
    margin: 20px;
  }
  
  .sidebar {
    padding: 25px 20px;
  }
  
  .footer {
    padding: 40px 2% 25px 2%;
  }
  
  .nav-left {
    gap: 12px;
  }
  
  .nav-left li a {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .nav-toggles {
    gap: 10px;
  }
  
  .toggle-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .nav-right a.sign_in {
    padding: 6px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }
  
  .hero-search input,
  .hero-search button {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .content-placeholder h2 {
    font-size: 2rem;
  }
  
  .pricing-section h2 {
    font-size: 1.8rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .price {
    font-size: 2rem;
  }
}

/* =========== Scrollbar Styling (Enhanced) =========== */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #cf6e11;
}

/* Custom scrollbar for search suggestions */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* =========== Additional Utility Classes =========== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* =========== Loading Animation (Enhanced) =========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Loading state for buttons */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes button-loading-spinner {
  from { transform: rotate(0turn); }
  to { transform: rotate(1turn); }
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced hover effects */
.card:hover, .content-card:hover {
  box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

/* Smooth transitions for all elements */
* {
  transition: all 0.3s ease;
}

/* Enhanced focus styles for accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dark mode enhanced scrollbars */
body.dark ::-webkit-scrollbar-track {
  background: #2d2d2d;
}

body.dark ::-webkit-scrollbar-thumb {
  background: var(--accent);
}

/* Language dropdown dark mode */
body.dark .language-dropdown-content {
  background-color: #2d2d2d;
  border: 1px solid #444;
}

body.dark .language-dropdown-content a {
  color: var(--text-light);
}

body.dark .language-dropdown-content a:hover {
  background-color: #404040;
}

body.dark .language-dropdown-content a.active {
  background-color: var(--accent);
}

/* Enhanced search suggestions for dark mode */
body.dark .search-suggestions {
  background: #2d2d2d;
  border: 1px solid #444;
}

body.dark .search-suggestion-item {
  color: var(--text-light);
  border-bottom-color: #444;
}

body.dark .search-suggestion-item:hover {
  background-color: #404040;
}

/* Mobile menu toggle (if needed) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Improved animation performance */
.hero-section,
.card,
.content-card,
.buy-btn,
.toggle-btn {
  will-change: transform;
}

/* Print styles */
@media print {
  .navbar,
  .sidebar,
  .footer,
  .modal {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .hero-section {
    margin: 0 !important;
    page-break-inside: avoid;
  }
}

/* Loading skeleton animation */
@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Voice search button styles - Only in navbar */
.nav-search .voice-search-btn:hover {
  background: rgba(230, 126, 34, 0.1) !important;
  color: var(--accent) !important;
}

/* Install app button */
.install-app-btn {
  animation: bounce 2s infinite;
}

/* Business tips styles */
.business-tips {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.business-tips h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.business-tips ul {
  list-style: none;
}

.business-tips li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.business-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .nav-search .voice-search-btn {
    right: 35px !important;
  }
  
  .loading-skeleton {
    flex-direction: column !important;
  }
  
  .install-app-btn {
    left: 10px !important;
    bottom: 80px !important;
  }
}

/* Dark mode for dynamic content */
body.dark .business-tips {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark .loading-skeleton > div {
  background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%) !important;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.search-suggestion-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .voice-search-btn,
  .install-app-btn,
  .scroll-to-top,
  .loading-skeleton {
    display: none !important;
  }
}








/* =========== Sidebar (Enhanced Responsive) - FIXED POSITIONING =========== */
.sidebar {
  width: 300px;
  background: var(--primary);
  color: var(--text-light);
  padding: 30px 25px;
  border-radius: 8px; /* Added border radius as requested */
  position: fixed;
  top: 80px; /* Aligns with header height */
  left: 0px; /* Set to 0px as requested */
  height: calc(100vh - 80px); /* Full height minus header */
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
  flex-shrink: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  margin: 0; /* Remove any margin */
}

/* Ensure sidebar stays attached to header and extends to footer */
.sidebar {
  bottom: 0; /* Extends to bottom of viewport */
  border-top-left-radius: 0; /* Remove top-left radius to attach to header */
  border-bottom-left-radius: 0; /* Remove bottom-left radius to attach to footer */
  border-top-right-radius: 8px; /* Keep right side rounded */
  border-bottom-right-radius: 8px; /* Keep right side rounded */
}

/* Main content positioning adjustment */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
  min-width: 0;
  margin-left: 320px; /* Increased to accommodate 300px sidebar + 20px spacing */
  padding: 0 2%;
}

/* Main container adjustment */
.main-container {
  display: flex;
  min-height: calc(100vh - 80px);
  max-width: 1400px;
  margin: 0 auto;
  gap: 0; /* Remove gap since sidebar is fixed */
  padding: 25px 2%;
  padding-left: 0; /* Remove left padding since sidebar is fixed */
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .main-content {
    margin-left: 320px;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 280px;
  }
  
  .main-content {
    margin-left: 300px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 260px;
  }
  
  .main-content {
    margin-left: 280px;
  }
  
  body {
    padding-top: 140px; /* Adjust for wrapped navbar */
  }
  
  .sidebar {
    top: 140px; /* Adjust for wrapped navbar */
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    gap: 30px;
    padding: 15px 2%;
  }
  
  .sidebar {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    height: auto;
    max-height: none;
    order: 2;
    margin-bottom: 25px;
    border-radius: 15px; /* Full border radius on mobile */
  }
  
  .main-content {
    order: 1;
    margin-left: 0;
    padding: 0 2%;
  }
}

/* Additional styling for better visual attachment */
.sidebar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  z-index: 1;
}

/* Ensure sidebar content doesn't overflow */
.sidebar h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
  text-align: center;
  position: sticky;
  top: 0;
  background: var(--primary);
  z-index: 2;
  margin-top: -30px;
  padding-top: 30px;
}

.sidebar ul {
  margin-bottom: 35px;
}

.sidebar ul li a {
  display: block;
  color: var(--text-light);
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 4px;
  border-left: 4px solid transparent;
}

.sidebar ul li a:hover {
  background: var(--secondary);
  transform: translateX(8px);
  border-left-color: #fff;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #cf6e11;
}

/* Dark mode sidebar adjustments */
body.dark .sidebar {
  background: var(--primary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

body.dark .sidebar::before {
  background: var(--primary);
}

/* Ensure navbar doesn't interfere */
.navbar {
  z-index: 1001; /* Higher than sidebar */
}