* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(to right, #2c3e50, #3498db);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px 15px;
  text-align: center;
  transition: 0.4s ease;
}

body.light-mode {
  background: linear-gradient(to right, #ecf0f1, #bdc3c7);
  color: #2c3e50;
}

.container {
  width: 100%;
  max-width: 600px;
  animation: fadeInMain 1.5s ease;
}

h1 {
  font-size: 3em;
  margin-bottom: 10px;
  animation: fadeInDown 1s ease;
}

p {
  font-size: 1.2em;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease;
}

.version-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}

.version-card:hover {
  transform: scale(1.02);
}

.version-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 80%);
  animation: rotateGlow 5s linear infinite;
  z-index: 0;
}

.version-card > * {
  position: relative;
  z-index: 1;
}

.version-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
}

.version-date {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 12px;
}

.download-btn {
  background: #e67e22;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.download-btn:hover {
  background: #d35400;
}

.download-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  top: -100%;
  left: 0;
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.download-btn:hover::after {
  top: 100%;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(230, 126, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

@keyframes fadeInMain {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

footer {
  margin-top: 30px;
  font-size: 0.9em;
  opacity: 0.7;
  animation: fadeInFooter 2s ease 1.2s;
}

@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.7; transform: translateY(0); }
}

/* Light mode tweaks */
body.light-mode .version-card {
  background: rgba(255, 255, 255, 0.6);
  color: #2c3e50;
}

.toggle-mode {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

/* Switch style */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

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

input:checked + .slider {
  background-color: #4CAF50;
}

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

/* Responsive */
@media (max-width: 500px) {
  h1 {
    font-size: 2em;
  }

  .download-btn {
    width: 100%;
  }
}

.typing-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  min-height: 30px;
  }
.app-name {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 5px;
  color: #f1c40f;
}

body.light-mode .app-name {
  color: #e67e22;
}
