/* Import Google Fonts - Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #06b6d4;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #e2e8f0;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.4);
  --border-solid: #e2e8f0;
  --ring: rgba(79, 70, 229, 0.3);
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  background: var(--bg-gradient-start);
  background-image:
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Base Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Modern Navbar */
.navbar {
  /* floating pill */
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  margin: 24px auto 40px auto;
  max-width: 1200px;
  box-shadow: var(--shadow-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 24px;
  z-index: 50;
  transition: all 0.3s ease;
}

.navbar-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
}

.nav-lang {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-lang i {
  color: var(--primary);
  font-size: 1.1rem;
  position: absolute;
  left: 14px;
  z-index: 2;
  pointer-events: none;
}

#language-select {
  padding: 10px 40px 10px 44px;
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-md);
  background-color: var(--surface-solid);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  box-shadow: var(--shadow-sm);
}

#language-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

#language-select:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Header */
header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-main) 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

header h1 i {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 8px;
}

header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.header-content {
  margin-top: 50px;
  animation: fadeUp 0.8s ease-out forwards;
}

/* Tab Container */
.tab-container {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  margin-bottom: 50px;
  animation: fadeUp 1s ease-out forwards;
}

.tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--border-solid);
  padding: 8px;
  gap: 8px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--surface-solid);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
  padding: 40px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.input-group {
  margin-bottom: 30px;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
}

label i {
  color: var(--primary);
}

input,
textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-solid);
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  transition: all 0.3s ease;
  background: var(--surface-solid);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.file-input-container {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
}

.file-input-container:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.02);
  transform: translateY(-2px);
}

.file-input {
  display: none;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: var(--text-muted);
}

.file-label i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s;
}

.file-input-container:hover .file-label i {
  transform: scale(1.1) translateY(-5px);
}

.file-label strong {
  color: var(--text-main);
  font-size: 1.2rem;
}

.selected-file {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

/* Button */
.btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  padding: 16px 36px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
  width: 100%;
}

@media(min-width: 640px) {
  .btn {
    width: auto;
  }
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Result Container */
.result-container {
  background: var(--surface-solid);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin-top: 40px;
  border: 1px solid var(--border-solid);
}

.result-container h3 {
  margin-bottom: 24px;
  color: var(--text-main);
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-container h3 i {
  color: var(--primary);
}

.qr-result {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.qr-code-display {
  flex: 1;
  min-width: 320px;
  text-align: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

#qrcode {
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: var(--radius-lg);
  display: inline-block;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

#qrcode:hover {
  transform: scale(1.02);
}

.qr-actions {
  flex: 1;
  min-width: 320px;
}

.file-info {
  background-color: #f8fafc;
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}

.file-info h4 {
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}

.file-info h4 i {
  color: var(--secondary);
}

.file-info p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.file-type {
  display: inline-block;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 15px;
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.download-btn {
  background-color: var(--surface-solid);
  color: var(--text-main);
  border: 2px solid var(--border-solid);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  flex: 1;
  min-width: 200px;
}

.download-btn:nth-child(1) {
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.2);
}

.download-btn:nth-child(2) {
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.2);
}

.download-btn:nth-child(3) {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.download-btn:nth-child(1):hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.download-btn:nth-child(2):hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.download-btn:nth-child(3):hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

/* Guide Timeline Styles */
.main-content {
  padding: 100px 0 60px;
}

.guide {
  max-width: 1000px;
  margin: 0 auto;
}

.guide-header {
  text-align: center;
  margin-bottom: 70px;
}

.guide-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.guide-header h2 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-header .description {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.timeline-container {
  position: relative;
  padding: 40px 0;
}

/* Middle Line */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: calc(100% - 80px);
  top: 40px;
  background: var(--border-solid);
  border-radius: 4px;
  z-index: 1;
}

/* Animated Progress Line */
.timeline-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  top: 40px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px;
  z-index: 2;
  transition: height 0.15s ease-out;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.timeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 250px;
  position: relative;
  z-index: 2;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-content {
  width: 42%;
  padding: 30px;
  background: var(--surface-solid);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-solid);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.2);
}

.timeline-content.text-right {
  text-align: right;
}

.timeline-content.text-left {
  text-align: left;
}

.timeline-content h3 {
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-content h3 i {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  padding: 10px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.timeline-content.text-right h3 {
  justify-content: flex-end;
}

.timeline-content.text-left h3 {
  justify-content: flex-start;
}

.timeline-content.text-right h3 i {
  order: 2;
  margin-left: 12px;
  margin-right: 0;
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Center Number Node */
.timeline-number {
  width: 50px;
  height: 50px;
  background: var(--surface-solid);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step:hover .timeline-number {
  transform: translateX(-50%) scale(1.2);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.2);
}

.timeline-image {
  width: 42%;
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 160px;
  height: 160px;
  background: var(--surface-solid);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  border: 1px solid var(--border-solid);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-placeholder i {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-step:hover .image-placeholder {
  transform: scale(1.05) rotate(5deg);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.3);
}

.timeline-step.inverted {
  flex-direction: row-reverse;
}

/* FAQ Section */
.FAQ {
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 0 24px;
}

.FAQ-header {
  text-align: center;
  margin-bottom: 50px;
}

.FAQ-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.FAQ-header h2 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.FAQ-header .description {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.FAQ-content {
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.faq-item {
  border-bottom: 1px solid var(--border-solid);
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item.active {
  background: rgba(79, 70, 229, 0.03);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-item.active .faq-question {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.03);
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(79, 70, 229, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-answer p {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Footer */
footer {
  background: var(--surface-solid);
  padding: 40px 0;
  border-top: 1px solid var(--border-solid);
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.copyright {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.social-media {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.25rem;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsiveness */
@media (max-width: 1024px) {
  header h1 {
    font-size: 2.8rem;
  }

  .guide-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    overflow: visible;
  }

  .qr-result {
    flex-direction: column;
  }

  .qr-code-display,
  .qr-actions {
    min-width: 100%;
  }

  .download-options {
    flex-direction: column;
  }

  .timeline-container::before,
  .timeline-progress {
    left: 40px;
  }

  .timeline-step,
  .timeline-step.inverted {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 80px;
    margin-bottom: 60px;
  }

  .timeline-content,
  .timeline-image {
    width: 100%;
    text-align: left;
  }

  .timeline-content.text-right {
    text-align: left;
  }

  .timeline-content.text-right h3 {
    justify-content: flex-start;
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .timeline-number {
    left: 40px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  }

  .timeline-step:hover .timeline-number {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.2);
  }

  .timeline-image {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .image-placeholder {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 16px;
    margin: 16px;
    border-radius: var(--radius-lg);
  }

  header h1 {
    font-size: 2.2rem;
  }

  .tab-content {
    padding: 24px 20px;
  }

  .timeline-content {
    padding: 24px;
  }
}