:root {
  --bg-color: #1e1e2f;
  --card-bg: rgba(40, 44, 52, 0.85); /* Improved dark card */
  --text-color: #ffffff;
  --accent: #00c6ff;
  --card-border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

[data-theme="dark"] {
  --card-bg: radial-gradient(
    circle at 50% 50%,
    rgba(25, 28, 40, 0.9) 0%,
    rgba(15, 18, 30, 0.95) 100%
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg-color: #f0f0f0;
  --card-bg: rgba(0, 0, 0, 0.05);
  --text-color: #111111;
  --accent: #0072ff;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  /* overflow: hidden;*/
  position: relative;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 600px;
  width: 90%;
  z-index: 10;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.preview-img {
  width: 100%;
  max-width: 550px; /* Slightly smaller than card max-width */
  height: auto;
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.preview-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #005ecb;
}

/* Toggle Switch */
.toggle-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 11;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: .4s;
}

.slider:before {
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.header-row {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.title-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.title-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-color);
}

.theme-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

/* Social footer */
.footer {
  position: fixed;
  bottom: 0.5rem;
  display: flex;
  gap: 1.5rem;
  z-index: 10;
  justify-content: center; /* Center icons */
}

.footer img {
  width: 40px;
  height: 40px;
  filter: brightness(1.2);
  transition: transform 0.3s;
}

.footer img:hover {
  transform: scale(1.15);
}