/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Define theme variables */
:root {
  /* Light mode variables (default) */
  --background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  --text-color: #333;
  --header-title: #4a4e69;
  --header-subtitle: #6d6d6d;
  --card-bg: #fff;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  --card-title: #4a4e69;
  --card-text: #6d6d6d;
  --button-bg: #4a4e69;
  --button-hover-bg: #333;
  --button-text: #fff;
  --footer-text: #6d6d6d;
  --toggle-bg: #4a4e69;
  --toggle-hover-bg: #333;
}

/* Dark mode variables */
body.dark-mode {
  --background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  --text-color: #e0e0e0;
  --header-title: #9a9cbb;
  --header-subtitle: #a0a0a0;
  --card-bg: #333;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  --card-hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.7);
  --card-title: #c7c9d3;
  --card-text: #b0b0b0;
  --button-bg: #5a5e7a;
  --button-hover-bg: #444;
  --button-text: #fff;
  --footer-text: #a0a0a0;
  --toggle-bg: #5a5e7a;
  --toggle-hover-bg: #444;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  transition: background 0.5s ease, color 0.5s ease;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  color: var(--header-title);
}

header p {
  font-size: 1.2rem;
  color: var(--header-subtitle);
  margin-top: 10px;
}

/* Enhanced Theme Toggle Button */
#theme-toggle {
  /* display: flex;
  align-items: center; */
  gap: 10px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  background: var(--toggle-bg);
  color: var(--button-text);
  border: none;
  border-radius: 25px; /* Rounded pill shape */
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

#theme-toggle:hover {
  background: var(--toggle-hover-bg);
  transform: scale(1.05);
  box-shadow: var(--card-hover-shadow);
}

#theme-toggle:active {
  transform: scale(0.95);
}

#theme-toggle .icon {
  font-size: 1.5rem;
  transition: transform 0.5s ease;
}

body.dark-mode #theme-toggle .icon {
  transform: rotate(180deg); /* Cool rotation effect */
}

#theme-toggle .label {
  transition: opacity 0.3s ease;
}

/* Rest of your existing styles */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
  padding: 20px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-hover-shadow);
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.card h2 {
  font-size: 1.5rem;
  color: var(--card-title);
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  color: var(--card-text);
  margin-bottom: 15px;
}

.card a {
  display: inline-block;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.card a:hover {
  background: var(--button-hover-bg);
}

.logo {
  border-radius: 5px;
}

footer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--footer-text);
}

footer a {
  color: var(--footer-text);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .card h2 {
    font-size: 1.3rem;
  }
}