/* Code crafted by Chirrenthen*/
/* PixlQR CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #9cc9f6 0%, #c4e0f9 100%);
  color: #2d3436;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Sections */
section {
  padding: 100px 2rem 60px;
}

/* Home Section */
.home-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(45deg, #0984e3, #74b9ff);
}

.home-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
}

.text-block {
  flex: 1;
  color: #ffffff;
}

.text-block h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-block p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.image-block {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.home-image {
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-scroll {
  display: inline-block;
  padding: 1rem 2rem;
  background: #ffffff;
  color: #0984e3;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-scroll:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Generator Section */
.gen-section {
  background: #f6f8f8;
}

.gen-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2d3436;
}

.generator-content {
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  background: #3398f7;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.input-block {
  flex: 1 1 300px;
}

#qr-input {
  border: 2px solid #74b9ff;
  transition: border-color 0.3s ease;
  padding: 5px;
  border-radius: 6px;
}

#qr-input:focus {
  border-color: #0984e3;
  outline: none;
}

.qr-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
}

.qr-preview img {
  max-width: 100%;
  box-shadow: #362929;
  height: auto;
  border-radius: 8px;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(-20px);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(20px);
  }
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

#generate-btn {
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 2px solid #fff;
  font-weight: 600;
  color: #2d3436;
  cursor: pointer;
}

#generate-btn:hover {
  background: #f1f6fa;
  color: #000;
  transform: translateY(-2px);
  border-color: #000;
}

#download-btn {
  background: #00b894;
  transition: all 0.3s ease;
  padding: 10px 20px;
  justify-content: center;
  border-radius: 10px;
}

#download-btn:hover {
  background: #00a383;
  transform: translateY(-2px);
  border:#f6f8f9;
}

.hidden {
  display: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2ecc71;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
.site-footer {
  padding: 1.5rem 2rem;
  background: #fff;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.social-links li {
  display: inline-block;
  margin: 0 0.5rem;
}

.social-links a {
  font-weight: 500;
  color: #3498DB;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
  .home-content,
  .generator-content {
    flex-direction: column;
    align-items: center;
  }

  section {
    padding: 120px 1rem 40px;
  }

  .nav-links {
    display: none; /* mobile: hide links, rely on scroll button */
  }
  .generate-btn {
    width: 100%;
    text-align: center;
    column-gap: 20px;
  }
}  