/* Fonts loaded in HTML */

:root {
  /* Brand Colors - Gold */
  --color-gold: #d4af37;
  --color-gold-light: #e5c358;
  --color-gold-dark: #aa8c2c;
  --color-gold-glow: rgba(212, 175, 55, 0.3);

  /* Light Theme (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #f0f0f0;
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a4a;
  --text-muted: #808080;
  --border-color: rgba(0, 0, 0, 0.08);
  --card-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
}

[data-theme='dark'] {
  /* Dark Theme */
  --bg-primary: #0a0a0a;
  --bg-secondary: #161616;
  --bg-tertiary: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(31, 31, 31, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-gold),
    var(--color-gold-dark)
  );
  color: #fff;
  box-shadow: 0 4px 15px var(--color-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-gold-glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: #fff;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-gold {
  color: var(--color-gold);
  background: linear-gradient(
    to right,
    var(--color-gold),
    var(--color-gold-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Standard property for compatibility */
}

/* Header / Floating Navbar */
header {
  height: auto;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0 2rem;
}

header .container {
  background: rgba(255, 255, 255, 0.85); /* Light mode default */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  transition: all 0.3s ease;
}

[data-theme='dark'] header .container {
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle white border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Stronger shadow for depth */
}

header.scrolled {
  top: 10px;
  background: transparent; /* Container handles bg */
  border: none;
  height: auto;
}

header.scrolled .container {
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
  padding: 0.6rem 2rem; /* Slightly smaller on scroll */
}

/* Ensure logo and nav fit inside floating container */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px; /* Adjust based on navbar height */
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
}

/* Hero Section */
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--header-height) + 6rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 4rem; /* Slightly smaller for better balance */
  margin-bottom: 2rem;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-bg-glow {
  position: absolute;
  width: 800px; /* Larger glow */
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  ); /* Softer gradient */
  top: -200px;
  right: -200px;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px); /* Less blur, more shape */
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* More space for text */
  gap: 6rem;
}

/* Floating Composition */
.core-orb {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--color-gold), #b8860b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
  position: relative;
  z-index: 2;
  animation: pulse-glow 3s infinite ease-in-out;
}

.core-orb::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: spin 10s linear infinite;
}

.float-icon {
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 3;
  animation: float var(--float-duration, 5s) ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme='dark'] .float-icon {
  background: rgba(30, 30, 30, 0.8);
  color: var(--color-gold);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.coin-btc {
  top: 10%;
  right: 15%;
  --float-duration: 6s;
  color: #f7931a !important;
}

.coin-eth {
  bottom: 15%;
  left: 10%;
  --float-duration: 7s;
  color: #627eea !important;
}

.coin-sol {
  top: 40%;
  right: 5%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  --float-duration: 5s;
  background: linear-gradient(135deg, #9945ff, #14f195);
  color: white !important;
  border: none;
}

.float-shape {
  position: absolute;
  background: var(--color-gold);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 1;
}

.shape-1 {
  width: 40px;
  height: 40px;
  top: 20%;
  left: 20%;
  animation: float 8s infinite reverse;
}

.shape-2 {
  width: 25px;
  height: 25px;
  bottom: 30%;
  right: 25%;
  animation: float 9s infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.6);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}
.hero-stats-bar {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.hero-stats-bar:hover {
  transform: translateY(-5px);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border-color);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-desc {
    margin: 0 auto 2.5rem;
  }

  .hero-stats-bar {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    width: 50px;
    height: 1px;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 3rem 2rem;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

/* Security Section */
.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.security-list-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.security-list-item .icon-box {
  min-width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.2rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.social-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
}

/* Mobile & Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 2.5rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .security-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-desktop {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    z-index: 1001; /* Above everything */
  }

  .nav-desktop.active {
    display: flex;
    right: 0;
  }

  .mobile-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
  }
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  background-color: #128c7e;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}
/* Infinite Ticker */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
}

.ticker-track {
  display: flex;
  gap: 4rem;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.ticker-item {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-item i {
  color: var(--color-gold);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Stats Counter */
.counter {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

/* Language & RTL Support */
[lang='ar'] {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}

[lang='ar'] h1,
[lang='ar'] h2,
[lang='ar'] h3,
[lang='ar'] h4,
[lang='ar'] h5,
[lang='ar'] h6 {
  font-family: 'Tajawal', sans-serif;
}

/* RTL Specific Overrides */
[dir='rtl'] .nav-desktop {
  margin-right: auto;
  margin-left: 0;
}

[dir='rtl'] .hero-stats {
  border-left: none !important;
  border-right: 3px solid var(--color-gold) !important;
  padding-left: 0 !important;
  padding-right: 1.5rem !important;
}

[dir='rtl'] .cta-group a {
  margin-left: 0 !important;
  margin-right: 1rem !important;
}

[dir='rtl'] .social-links {
  margin-right: 0;
}

[dir='rtl'] .btn i {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}
