/* --- Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Body Base Style --- */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #222;
  transition: background-color 0.3s, color 0.3s;
}
/* --- Theme Toggle Switch Style --- */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  z-index: 9999;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* --- Top Bar Improved --- */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

.top-bar div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar strong {
  font-weight: 600;
  color: #fddc59;
}

/* --- Middle Bar --- */
.middle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.logo .red {
  color: #e63946;
}

.social-links a img {
  width: 28px;
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.2);
}

/* --- Menu Bar --- */
.menu-bar {
  background: #222;
}

.main-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.main-menu li {
  position: relative;
}

/* Main menu links */
.main-menu > li > a {
  display: block;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
  border-radius: 4px;
}

.main-menu > li > a:hover {
  background-color: #e63946;
  color: white;
}

/* --- Submenu --- */
.submenu {
  display: none;
  position: absolute;
  background: #444;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
  list-style: none;  /* Remove bullet points */
  padding-left: 0;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
}

/* Submenu list items */
.submenu li {
  margin: 0;
  padding: 0;
}

/* Submenu links */
.submenu li a {
  padding: 12px 20px;
  display: block;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.submenu li a:hover {
  background-color: #e63946;
  color: white;
}

/* Show submenu on hover */
.dropdown:hover .submenu {
  display: block;
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  animation: fadeIn 1.5s ease-in;
}

.hero-text {
  flex: 1;
  max-width: 500px;
  margin: 20px;
  animation: slideInLeft 1s ease-out;
}

.hero-text h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  max-width: 250px;
  margin: 20px;
  animation: slideInRight 2s ease-out;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Call to Action Button --- */
.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s;
  font-weight: bold;
}

.cta-button:hover {
  background-color: #d62828;
}

/* --- Discount Banner --- */
.discount-banner {
  background: #ffe066;
  color: #222;
  padding: 12px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  margin-top: -10px;
}

/* --- Typing Animation Heading --- */
.typing-text {
  font-size: 36px;
  font-weight: bold;
  border-right: 2px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- Dark Mode Styles --- */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode .top-bar,
.dark-mode .menu-bar,
.dark-mode .discount-banner {
  background-color: #4e4062;
  color: #fff;
}

.dark-mode .middle-bar {
  background-color: #e4bfbf;
}

.dark-mode .submenu {
  background-color: #333;
}

.dark-mode .hero-section {
  background: linear-gradient(to right, #522c2c, #59575e); /* Dark gradient */
  color: #f0f0f0;
}

/* --- Info Section Below Hero --- */
.info-section {
  background: #f9f9f9;
  padding: 50px 20px;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

.info-section .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.info-section {
  background: #f9f9f9;
  padding: 50px 20px;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

.info-section .container {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 40px;
  justify-content: center;
}

.info-box {
  background-color: white;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.1);
}

.info-box h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: #333;
}

.info-box p,
.info-box ul {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.info-box ul {
  list-style-type: disc;
  padding-left: 20px;
}

.info-box ul li {
  margin-bottom: 8px;
}

/* Dark Mode Styling */
body.dark-mode .info-section {
  background: #222;
  color: #eee;
}

body.dark-mode .info-box {
  background-color: #333;
  box-shadow: 0 6px 18px rgb(255 255 255 / 0.1);
}

body.dark-mode .info-box h2 {
  color: #fff;
}

body.dark-mode .info-box p,
body.dark-mode .info-box ul {
  color: #ccc;
}
