/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Language Switcher - Minimal Flags Only */
.language-switcher {
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: grayscale(0.8) opacity(0.6);
  padding: 6px;
  overflow: hidden;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lang-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(223, 134, 40, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-btn:hover {
  transform: scale(1.15) translateX(-5px);
  filter: grayscale(0) opacity(1);
  background: rgba(223, 134, 40, 0.15);
  box-shadow: 0 8px 25px rgba(223, 134, 40, 0.3);
}

.lang-btn:hover img {
  transform: scale(1.1);
}

.lang-btn:hover::before {
  opacity: 1;
}

.lang-btn.active {
  filter: grayscale(0) opacity(1);
  background: rgba(223, 134, 40, 0.2);
  box-shadow: 0 8px 30px rgba(223, 134, 40, 0.4),
    inset 0 0 20px rgba(223, 134, 40, 0.1);
  transform: scale(1.1) translateX(-5px);
}

.lang-btn.active::before {
  opacity: 1;
  background: linear-gradient(135deg, #df8628, #fcee60);
}

.lang-btn.active::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient-secondary);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(223, 134, 40, 0.8);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(223, 134, 40, 0.8);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(223, 134, 40, 1);
  }
}

:root {
  --primary-color: #df8628;
  --secondary-color: #fcee60;
  --gradient-primary: linear-gradient(135deg, #df8628 0%, #b06a1f 100%);
  --gradient-secondary: linear-gradient(135deg, #fcee60 0%, #df8628 100%);
  --dark-bg: #0a0e27;
  --darker-bg: #060920;
  --card-bg: #141b3d;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --border-color: rgba(223, 134, 40, 0.2);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 0;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(223, 134, 40, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(252, 238, 96, 0.3) 0%,
      transparent 50%
    );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 1.5s ease-out, float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 15px;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 10px 30px rgba(205, 172, 26, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(205, 172, 26, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.btn-large {
  padding: 20px 40px;
  font-size: 18px;
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.6s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: 60px 0;
  background: var(--darker-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(223, 134, 40, 0.2);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 24px;
  color: #0a0e27;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 14px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Showcase Section */
.showcase {
  padding: 60px 0;
  background: var(--dark-bg);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.showcase-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.showcase-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(223, 134, 40, 0.3);
}

.showcase-placeholder {
  aspect-ratio: 16/9;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.showcase-placeholder i {
  font-size: 64px;
  color: var(--primary-color);
}

.showcase-placeholder p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* Commands Section */
.commands {
  padding: 100px 0;
  background: var(--darker-bg);
}

.commands-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
}

.command-category {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.command-category h3 {
  font-size: 28px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--primary-color);
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.command-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: rgba(223, 134, 40, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.command-item code {
  color: var(--primary-color);
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: 600;
}

.command-item span {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Why Choose Section */
.why-choose {
  padding: 100px 0;
  background: var(--dark-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.why-item {
  text-align: center;
  padding: 20px;
}

.why-item i {
  font-size: 48px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.why-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.why-item p {
  color: var(--text-secondary);
}

/* Download Section */
.download {
  padding: 60px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.download-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.download-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.download-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.download-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.version-info {
  display: flex;
  gap: 40px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.version-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  .features-grid,
  .commands-container {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .download-buttons {
    padding: 0 20px;
  }

  .version-info {
    flex-direction: column;
    gap: 15px;
  }

  .language-switcher {
    top: 15px;
    right: 15px;
    gap: 10px;
  }

  .lang-btn {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .lang-btn.active::after {
    width: 3px;
    height: 20px;
    left: -6px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }

  .modal-close {
    top: -35px;
    font-size: 32px;
  }

  #modalBody iframe {
    width: 90vw;
    height: 50.625vw;
  }

  .view-all-link {
    font-size: 14px;
    padding: 10px 20px;
  }

  .lang-btn {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .lang-btn.active::after {
    width: 28px;
    height: 3px;
  }
}

/* View All Link */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: rgba(205, 172, 26, 0.1);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(205, 172, 26, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.view-all-link:hover {
  background: rgba(205, 172, 26, 0.2);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.view-all-link i {
  transition: transform 0.3s ease;
}

.view-all-link:hover i {
  transform: translateX(5px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2001;
}

.modal-close:hover {
  color: var(--primary-color);
  transform: rotate(180deg);
}

#modalBody img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(205, 172, 26, 0.3);
}

#modalBody iframe {
  width: 80vw;
  height: 45vw;
  max-width: 1200px;
  max-height: 675px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(205, 172, 26, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: #0a0e27;
}
