* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  --primary: #ff2e63;
  --secondary: #08d9d6;
  --accent: #ea00ff;
  --dark-bg: #0f0e17;
  --dark-card: #1a1933;
  --text: #fffffe;
  --error: #ff6666;
}

.instructions {
  text-align: left;
  margin: 0 auto 25px;
  width: 90%;
  background: rgba(15, 14, 23, 0.5);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(8, 217, 214, 0.1);
  animation: fadeInUp 0.8s ease-out 0.2s both; /* Added delay */
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a1a, #0f0e17);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

.container {
  background: rgba(26, 25, 51, 0.85);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 46, 99, 0.15);
  animation: fadeInUp 0.8s ease-out both;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 46, 99, 0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: -1;
}

h1 {
  font-size: 42px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(255, 46, 99, 0.3);
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: linePulse 3s infinite;
}

h3 {
  color: var(--secondary);
  margin-bottom: 25px;
  font-weight: 600;
  animation: glow 2s infinite alternate;
  font-size: 20px;
}

.input-container {
  position: relative;
  width: 90%;
  margin: 0 auto 25px;
}

input[type="text"] {
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  border: 2px solid rgba(255, 46, 99, 0.2);
  background: rgba(15, 14, 23, 0.7);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 46, 99, 0.4);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 254, 0.6);
}

.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark-bg);
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 5px 15px rgba(255, 46, 99, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.5s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 46, 99, 0.5);
}

.btn:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(45deg, var(--accent), #b300ff);
  box-shadow: 0 5px 15px rgba(234, 0, 255, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 8px 20px rgba(234, 0, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 46, 99, 0.1);
}

.back-button {
  background: linear-gradient(45deg, #ff6666, #ff4d4d);
  box-shadow: 0 5px 15px rgba(255, 102, 102, 0.3);
}

.back-button:hover {
  box-shadow: 0 8px 20px rgba(255, 102, 102, 0.5);
}

.error {
  color: var(--error);
  margin-top: 15px;
  font-weight: 500;
  min-height: 24px;
  background: rgba(255, 102, 102, 0.1);
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid var(--error);
}

.preview {
  display: none;
  margin-top: 30px;
  animation: fadeInUp 0.5s ease-out both;
}

.preview-content {
  background: rgba(15, 14, 23, 0.6);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 46, 99, 0.2);
}

.preview img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.preview img:hover {
  transform: scale(1.02);
}

.preview h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary);
}

.preview p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.info-item {
  background: rgba(15, 14, 23, 0.5);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-item span {
  font-weight: 600;
  color: var(--secondary);
  font-size: 18px;
}

.main-footer {
  text-align: center;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 40px;
}

footer {
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 254, 0.1);
  padding-top: 30px;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 18px;
}

.spinner {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(15, 14, 23, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
}

.spinner-text {
  margin-top: 20px;
  font-size: 18px;
  color: var(--primary);
}

.spinner .bounce {
  width: 22px; 
  height: 22px;
  background-color: var(--primary);
  border-radius: 100%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.spinner .bounce:nth-child(1) {
  animation-delay: -0.32s;
}

.spinner .bounce:nth-child(2) {
  animation-delay: -0.16s;
}

.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 99;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(10deg);
  animation: none;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float 15s infinite linear;
}

.tiktok-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 32px;
  color: var(--primary);
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, #0a0a1a, #0f0e17, #1a1933, #0f0e17);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100vw) rotate(360deg);
    opacity: 0;
  }
}

@keyframes glow {
  0% { 
    text-shadow: 0 0 5px var(--secondary), 0 0 10px var(--primary); 
  }
  50% { 
    text-shadow: 0 0 15px var(--primary), 0 0 25px var(--secondary); 
  }
  100% { 
    text-shadow: 0 0 5px var(--secondary), 0 0 10px var(--primary); 
  }
}

@keyframes fadeInUp {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0); 
  }
  40% { 
    transform: scale(1); 
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 46, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 46, 99, 0);
  }
}

@keyframes linePulse {
  0% { opacity: 0; width: 0%; }
  50% { opacity: 1; width: 100%; }
  100% { opacity: 0; width: 0%; left: 100%; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .container {
    padding: 25px;
    width: 95%;
  }
  
  h1 {
    font-size: 32px;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .feature-list, .steps-container {
    flex-direction: column;
  }

  .feature-item, .step {
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .floating-icons {
    bottom: 10px;
    right: 10px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  /* Use flexbox to center the modal content */
  display: none; 
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 14, 23, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: var(--dark-card);
  padding: 30px;
  padding-right: 15px; /* Add space for the scrollbar */
  border: 1px solid rgba(255, 46, 99, 0.2);
  width: 90%;
  max-width: 700px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.4s ease-out;
  /* Enable scrolling within the modal content */
  max-height: 85vh;
  overflow-y: auto;
}
.modal-content h2 {
  color: var(--primary);
  margin-bottom: 5px;
}
.modal-content h4 {
  color: var(--secondary);
  margin-top: 20px;
  margin-bottom: 10px;
}
.modal-content p, .modal-content ul {
  color: rgba(255, 255, 254, 0.8);
  line-height: 1.7;
  font-size: 14px;
}
.modal-content ul {
  padding-left: 20px;
}
.modal-last-updated {
  color: rgba(255, 255, 254, 0.6);
  font-size: 12px;
  margin-bottom: 20px;
}
.close-btn {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  transition: color 0.3s ease;
}
.close-btn:hover,
.close-btn:focus {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}
.features {
  text-align: center;
  margin: 40px auto;
  width: 90%;
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.features h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 25px;
} 
.feature-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.feature-item {
  flex: 1;
  background: rgba(26, 25, 51, 0.7);
  padding: 25px 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 46, 99, 0.1);
  transition: all 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(255, 46, 99, 0.2);
}
.feature-item i {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 15px;
}
.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.feature-item p {
  font-size: 14px;
  color: rgba(255, 255, 254, 0.6);
}
.instructions {
  text-align: center;
  margin: 40px auto; /* Adjusted margin for better spacing */
  width: 90%;
  max-width: 900px; /* Match the main container's width */
  background: transparent;
  padding: 25px;
  border-radius: 15px;
  border: none;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}
.instructions h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}
.instructions > p {
  color: rgba(255, 255, 254, 0.7);
  margin-bottom: 25px;
}
.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.step {
  flex: 1;
  background: rgba(26, 25, 51, 0.7);
  padding: 25px 20px;
  border-radius: 15px;
  border: 1px solid rgba(8, 217, 214, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}
.step:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 8px 25px rgba(8, 217, 214, 0.2);
}
.step-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 15px;
}
.step-text h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.step-text p {
  font-size: 14px;
  color: rgba(255, 255, 254, 0.6);
}
.commitment {
  text-align: center;
  margin: 40px auto;
  width: 90%;
  max-width: 900px;
  padding: 25px;
  background: rgba(26, 25, 51, 0.7);
  border-radius: 15px;
  border: 1px solid rgba(234, 0, 255, 0.2);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
.commitment h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 15px;
}
.commitment p {
  font-size: 16px;
  color: rgba(255, 255, 254, 0.8);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}
.about-developer {
  text-align: center;
  margin: 40px auto;
  width: 90%;
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}
.about-developer h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 25px;
}
.developer-content {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.1), rgba(8, 217, 214, 0.1));
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(234, 0, 255, 0.3);
  transition: all 0.3s ease;
}
.developer-content:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(234, 0, 255, 0.3);
}
.developer-logo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(8, 217, 214, 0.4);
  overflow: hidden; /* Ensures the image stays within the circle */
}
.developer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the circle */
}
.developer-details h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}
.developer-details h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.developer-details h3 a:hover {
  color: var(--secondary);
}
.developer-details p {
  font-size: 14px;
  color: rgba(255, 255, 254, 0.7);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 254, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
}
/* Class to prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  .developer-content {
    flex-direction: column;
    text-align: center;
  }
}