/* General Styles */
:root {
  --primary-color: #2563EB;
  --secondary-color: #1F2937;
  --background-color: #F9FAFB;
  --accent-color: #10B981;
  --white: #FFFFFF;
  --black: #000000;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Dark Mode Overrides */
body.dark-mode {
  --background-color: #131313;
  --secondary-color: #E5E7EB;
  --white: #191919;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Navigation Toggle */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: var(--secondary-color);
  font-weight: bold;
}

nav ul li a.active {
  color: var(--primary-color);
}

/* Theme Switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.dark-mode {
  animation: fadeIn 1s ease;
}
body.light-mode {
  animation: fadeIn 1s ease;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s ease;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: transform 0.4s ease, background-color 0.4s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2563EB; /* Primary color */
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded Slider */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Smooth Theme Transition */
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

header, footer, .app-card, .search-container, .tab-link {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
/* Hero Section */
#hero {
  text-align: center;
  padding: 4rem 0;
  background-color: var(--white);
}

#hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

#search-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

#search-input {
  padding: 0.5rem;
  width: 300px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#search-button {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#search-button:hover {
  background-color: #1D4ED8;
}

/* Apps Section */
#apps {
  padding: 2rem 0;
}

#apps h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.app-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.app-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.app-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.download-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-btn:hover {
  background-color: #1D4ED8;
  transform: scale(1.05);
}

/* About Section */
#about {
  padding: 2rem 0;
  text-align: center;
  background-color: var(--white);
}

#about h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#about p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Chat Support */
.chat-support-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
}

.chat-support-box {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chat-header h4 {
  margin: 0;
}

#close-chat {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#chat-input {
  width: 100%;
  height: 100px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
}

#send-message {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#send-message:hover {
  background-color: #1D4ED8;
}

/* Enhanced Search Container */
.search-container {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.search-container:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  background-color: transparent;
}

#search-input::placeholder {
  color: #999;
}

#search-button {
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#search-button:hover {
  background-color: #1D4ED8;
  transform: scale(1.1);
}

#search-button svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  /* Show mobile nav toggle and hide full nav by default */
  #nav-toggle {
    display: block;
  }
  nav#mobile-nav ul {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  nav#mobile-nav.active ul {
    display: flex;
  }
  
  header .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  header h1 {
    flex: 1 1 100%;
    text-align: center;
  }
  
  #hero h2 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .app-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .chat-support-box {
    width: 90%;
    right: 5%;
  }

  .search-container {
    max-width: 90%;
  }
}
.tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  gap: 1rem;
}

.tab-link {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.tab-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Filter Dropdown */
.filter select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  font-size: 1rem;
  background-color: var(--white);
  color: var(--secondary-color);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter select:hover {
  border-color: #1D4ED8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Smooth Tab Switching Animation */
.app-grid {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.app-grid.hidden {
  opacity: 0;
  pointer-events: none;
}
/* Header Container */
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

/* NEWS Button Container */
.news-button-container {
  flex: 1; /* Take up remaining space */
  display: flex;
  justify-content: center; /* Center the button horizontally */
  align-items: center; /* Center the button vertically */
}

/* NEWS Button with RGB Effect */
.news-button {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.8), rgba(0, 255, 0, 0.8), rgba(0, 0, 255, 0.8));
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-position 0.5s ease, transform 0.3s ease;
  animation: rgbAnimation 3s infinite alternate;
}

.news-button:hover {
  transform: scale(1.05);
  animation: none; /* Stop animation on hover */
  background-position: 100% 100%;
}

/* RGB Animation */
@keyframes rgbAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Download App Promotion Section */
#download-apps {
  padding: 2rem 0;
  text-align: center;
  background-color: var(--white);
}

#download-apps h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

#download-apps p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.download-buttons .download-btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-buttons .download-btn:hover {
  transform: scale(1.05);
}

/* Specific button styles */
.android-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

.ios-btn {
  background-color: var(--accent-color);
  color: var(--white);
}
