/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd700 0%, #ff8c00 100%);
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: #050505;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  color: #ffffff;
}

.highlight-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ff8c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header */
.main-header {
  padding: 20px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 150px;
  width: auto;
  max-width: 80vw;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.15));
  transition: filter 0.4s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.3));
}

/* ========== HERO SECTION ========== */
.hero-section {
  padding-top: 200px;
  padding-bottom: 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #1a1a1a 0%, #0a0a0a 50%, #050505 100%);
}

/* Animated floating gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-duration: 10s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.25) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-duration: 12s;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 14s;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(0.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}

/* Noise texture overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-slogan {
  font-size: 3rem;
  margin-bottom: 25px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.hero-subtext {
  font-size: 1.2rem;
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

/* CTA Container */
.cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.store-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Store Button */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 38px 16px 28px;
  border-radius: 16px;
  text-decoration: none;
  border: none;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.store-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.store-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s ease;
}

.store-btn:hover::before {
  left: 100%;
}

.store-btn:hover {
  background: linear-gradient(135deg, #222 0%, #333 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(61, 220, 132, 0.1);
}

.store-btn:active {
  transform: translateY(0);
}

.store-btn svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.google-play-btn svg {
  color: #3ddc84;
  filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.3));
}

.app-store-btn svg {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1;
}

.store-btn-sub {
  font-size: 0.72rem;
  color: #999;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.store-btn-main {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.google-play-btn:hover svg {
  color: #5ff5a0;
  filter: drop-shadow(0 0 10px rgba(61, 220, 132, 0.5));
}

.app-store-btn:hover svg {
  color: #f0f0f0;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Scroll Down Button */
.scroll-down-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-down-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffd700;
  color: #ffd700;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #000;
  box-shadow: 0 10px 20px rgba(255, 165, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 165, 0, 0.3);
}

/* ========== FEATURES SECTION ========== */
.features-section {
  padding: 100px 0;
  position: relative;
}

/* Section top divider */
.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 120px;
  gap: 60px;
  padding: 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Scroll reveal initial state */
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 215, 0, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:last-child {
  margin-bottom: 0;
}

/* Alternate layout */
.feature-card.left-image {
  flex-direction: row-reverse;
}

/* Full-width hero feature card */
.feature-card.full-width {
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.06) 0%, rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid rgba(255, 215, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.feature-card.full-width::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.feature-card.full-width .feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.feature-card.full-width .feature-content h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

.feature-card.full-width .feature-content p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card.full-width:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 80px rgba(255, 215, 0, 0.08), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-content {
  flex: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
}

.feature-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #fff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-content p {
  font-size: 1.05rem;
  color: #aaa;
  line-height: 1.8;
}

.feature-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-image {
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-image {
  transform: scale(1.04) translateY(-5px);
}

/* Glow Effect behind images */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(50px);
  z-index: 1;
  border-radius: 50%;
  transition: opacity 0.5s ease;
  opacity: 0.6;
}

.feature-card:hover .glow-effect {
  opacity: 1;
}

.left-image .glow-effect {
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

/* ========== FOOTER ========== */
.main-footer {
  padding: 50px 0 40px;
  text-align: center;
  color: #555;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  position: relative;
}

/* Gradient line at top */
.main-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.footer-links {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #777;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  padding: 4px 10px;
  border-radius: 6px;
}

.footer-links a:hover {
  color: #ffd700;
}

.footer-links a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #333;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 20px;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.1);
}

/* Language Switcher */
.language-switcher-container {
  margin-bottom: 25px;
}

.language-selector {
  background-color: rgba(255, 255, 255, 0.05);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.language-selector option {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 8px;
}

.language-selector:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.language-selector:focus {
  border-color: #ffd700;
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-slogan {
    font-size: 2.4rem;
  }

  .feature-card {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
  }

  .feature-image-wrapper {
    width: 100%;
  }

  .feature-content h2 {
    font-size: 1.8rem;
  }

  .hero-orb {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-slogan {
    font-size: 1.8rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .cta-container {
    flex-direction: column;
    gap: 24px;
  }

  .store-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 28px 12px 22px;
    gap: 10px;
    justify-content: center;
  }

  .store-btn-main {
    font-size: 1.05rem;
  }

  .feature-card {
    padding: 20px;
  }
}

/* ========== RTL Support ========== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .store-btn-text {
  text-align: right;
}

[dir="rtl"] .hero-section,
[dir="rtl"] .main-footer {
  text-align: center;
}

[dir="rtl"] .feature-card {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-card.left-image {
  flex-direction: row;
}

@media (max-width: 992px) {
  [dir="rtl"] .feature-card,
  [dir="rtl"] .feature-card.left-image {
    flex-direction: column !important;
  }
}

/* ========== Legal Pages ========== */
.legal-page {
  background-color: #050505;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-content {
  padding-top: 220px;
  padding-bottom: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #ffd700;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #fff;
}

.legal-content p {
  margin-bottom: 20px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: #ccc;
}

.legal-content li {
  margin-bottom: 10px;
}

.legal-content a {
  color: #ffd700;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.legal-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========== CONTACT PAGE ========== */
.contact-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 50vh;
  justify-content: center;
}

.contact-content h1 {
  margin-bottom: 20px;
}

.contact-description {
  max-width: 500px;
  margin: 0 auto 50px auto;
  color: #999;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-mailto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 44px;
  border-radius: 20px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 140, 0, 0.04) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-mailto-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.06), transparent);
  transition: left 0.6s ease;
}

.contact-mailto-btn:hover::before {
  left: 100%;
}

.contact-mailto-btn:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 140, 0, 0.06) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.12);
}

.contact-mailto-btn:active {
  transform: translateY(0);
}

.contact-mailto-btn svg {
  color: #ffd700;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
}

.contact-mailto-btn span {
  color: #ffd700;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  display: block;
}

@media (max-width: 480px) {
  .contact-mailto-btn {
    padding: 18px 28px;
    gap: 10px;
  }

  .contact-mailto-btn span {
    font-size: 1rem;
  }
}
