/* Al-Jannat-Trust — Premium Trading Theme */
:root {
  --primary: #0F172A;
  --secondary: #16A34A;
  --accent: #FFD700;
  --accent-dark: #C9A227;
  --green-light: #4ADE80;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 215, 0, 0.18);
  --text: #E8EDF3;
  --text-muted: #94A3B8;
  --danger: #EF4444;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-ui: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
}

@media (max-width: 991px) {
  body { cursor: auto; }
  .custom-cursor, .cursor-follower { display: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Custom Cursor */
.custom-cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.1s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99998;
  transition: transform 0.18s ease, width 0.2s, height 0.2s;
}

/* Animated Background */
.ajt-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(22, 163, 74, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 215, 0, 0.08), transparent 50%),
    linear-gradient(165deg, #0A0F1E 0%, #0F172A 40%, #0B1220 100%);
}
.ajt-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  animation: orbFloat 16s ease-in-out infinite;
}
.ajt-orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, #16A34A, transparent); top: -140px; right: -100px; }
.ajt-orb-2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(255, 215, 0, 0.5), transparent); bottom: 0; left: -120px; animation-delay: -6s; }
.ajt-orb-3 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(74, 222, 128, 0.4), transparent); top: 45%; right: 20%; animation-delay: -10s; opacity: 0.2; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -28px) scale(1.08); }
}

.floating-shape {
  position: absolute; opacity: 0.06; animation: floatShape 20s linear infinite;
}
.floating-shape i { font-size: 2rem; color: var(--accent); }
@keyframes floatShape {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.08; }
  90% { opacity: 0.08; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.page-wrap { position: relative; z-index: 1; }

/* Navbar */
.ajt-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
  padding: 1rem 0;
  transition: all 0.35s ease;
  background: transparent;
}
.ajt-navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.ajt-navbar .navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: #fff !important;
  padding-top: 0.15rem; padding-bottom: 0.15rem;
}
.ajt-navbar .ajt-logo-nav {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  background: #000;
}
.ajt-navbar .ajt-brand-text {
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.ajt-navbar.scrolled .ajt-logo-nav { height: 40px; width: 40px; }
.ajt-navbar.scrolled .ajt-brand-text { font-size: 0.95rem; }
.brand-accent { color: var(--accent); }
.ajt-nav-link {
  color: var(--text-muted) !important;
  font-weight: 500; font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.25s;
  position: relative;
}
.ajt-nav-link:hover, .ajt-nav-link.active { color: #fff !important; }
.ajt-nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 1rem; right: 1rem;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform 0.3s; border-radius: 2px;
}
.ajt-nav-link:hover::after, .ajt-nav-link.active::after { transform: scaleX(1); }

.btn-ajt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.65rem;
  min-width: 140px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  font-family: var(--font-body);
  text-decoration: none;
}
.btn-ajt i { font-size: 0.92em; }
.btn-ajt-green {
  background: linear-gradient(145deg, #16A34A 0%, #15803D 100%);
  color: #fff;
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.28);
}
.btn-ajt-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.42);
  color: #fff;
  border-color: rgba(74, 222, 128, 0.55);
}
.btn-ajt-gold {
  background: linear-gradient(145deg, #FFD700 0%, #D4AF37 100%);
  color: #0A0F1E;
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}
.btn-ajt-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255, 215, 0, 0.4);
  color: #0A0F1E;
  border-color: rgba(255, 248, 200, 0.6);
}
.btn-ajt-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--accent);
  backdrop-filter: blur(8px);
}
.btn-ajt-outline:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.btn-ajt .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

.btn-lg-ajt {
  padding: 1rem 2rem;
  font-size: 0.98rem;
  min-width: 160px;
  border-radius: 14px;
}

/* Hero */
.hero-section {
  min-height: auto;
  display: flex; align-items: center;
  padding: 140px 0 48px;
  position: relative;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 8px;
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title .welcome-line { display: block; font-size: 0.45em; font-weight: 600; color: var(--text-muted); letter-spacing: 4px; margin-bottom: 0.5rem; }
.hero-title .brand-line { background: linear-gradient(135deg, #FFD700, #4ADE80); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  min-height: 1.6em;
}
.hero-desc { color: #64748B; max-width: 560px; margin-bottom: 0; font-size: 0.95rem; }

.typing-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent); margin-left: 2px;
  animation: blink 0.8s infinite; vertical-align: text-bottom;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Trading Gallery */
.section-pad { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.75rem;
}
.section-head p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.section-accent {
  width: 60px; height: 3px; margin: 0 auto 1rem;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

/* Trading auto-slider */
.trade-slider {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.trade-slider-track {
  position: relative;
  height: clamp(260px, 48vw, 420px);
}
.trade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.85s ease, transform 0.85s ease, visibility 0.85s;
  z-index: 1;
}
.trade-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.trade-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trade-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.5rem 2.25rem;
  z-index: 3;
}
.trade-slide-overlay h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
}
.trade-slide-overlay p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 480px;
}
.trade-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: #FFD700;
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.trade-slider-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: #FFD700;
  transform: translateY(-50%) scale(1.05);
}
.trade-slider-btn.prev { left: 14px; }
.trade-slider-btn.next { right: 14px; }
.trade-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.trade-slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.trade-slider-dots button.active {
  width: 26px;
  border-radius: 8px;
  background: linear-gradient(90deg, #16A34A, #FFD700);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}
.trade-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 6;
}
.trade-slider-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16A34A, #FFD700);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.trade-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: all 0.4s ease;
  height: 280px;
}
.trade-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.15), var(--shadow);
}
.trade-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.trade-card:hover .trade-card-img { transform: scale(1.08); }
.trade-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.trade-card:hover .trade-card-bg { transform: scale(1.1); }
.trade-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.95) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  z-index: 2;
}
.trade-card-brand {
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  letter-spacing: 2.5px; color: var(--accent); margin-bottom: 0.4rem;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}
.trade-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.trade-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.cta-buttons { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 3rem 0; }

/* Live Chart */
.chart-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.chart-header h3 { font-family: var(--font-display); font-weight: 700; margin: 0; font-size: 1.15rem; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.35rem 0.75rem; border-radius: 8px;
  background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3);
  font-size: 0.7rem; font-weight: 700; color: var(--green-light); text-transform: uppercase;
}
.live-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-light);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.market-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem;
}
.stat-pill {
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 0.85rem 1rem; text-align: center;
}
.stat-pill label { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.stat-pill strong { font-size: 1.05rem; font-family: var(--font-display); font-weight: 700; }
.stat-pill .up { color: var(--green-light); }
.stat-pill .down { color: var(--danger); }
.chart-canvas-wrap { position: relative; height: 320px; }
.pair-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pair-tab {
  padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.78rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
}
.pair-tab.active, .pair-tab:hover {
  background: rgba(255, 215, 0, 0.1); border-color: rgba(255, 215, 0, 0.3); color: var(--accent);
}

/* About / Contact sections */
.glass-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 2rem;
  backdrop-filter: blur(16px); transition: all 0.3s;
}
.glass-card:hover { border-color: rgba(255, 215, 0, 0.3); transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(22, 163, 74, 0.15); color: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}

/* Footer */
.ajt-footer {
  padding: 3rem 0 2rem; text-align: center; position: relative;
}
.footer-line {
  height: 2px; margin-bottom: 2rem;
  background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), var(--accent), transparent);
  background-size: 200% 100%;
  animation: gradientMove 4s linear infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.ajt-footer img { height: 120px; width: auto; max-width: 320px; object-fit: contain; margin-bottom: 0.75rem; }
.ajt-footer h4 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 0.5rem;
}
.ajt-footer p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* Responsive */
@media (max-width: 991px) {
  .ajt-navbar .ajt-logo-nav { height: 40px; width: 40px; }
  .ajt-navbar .ajt-brand-text { font-size: 0.92rem; }
  .ajt-navbar .navbar-collapse {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid var(--glass-border);
  }
  .market-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-section { padding: 100px 0 20px; }
  .section-pad { padding: 36px 0; }
  .section-pad.pt-0 { padding-top: 8px !important; }
  .section-head { margin-bottom: 1.25rem; }
  .section-head h2 { margin-bottom: 0.4rem; }
  .section-head p { font-size: 0.88rem; }
  .cta-buttons { margin: 1.5rem 0 0.5rem; gap: 0.85rem; }
  .hero-label { margin-bottom: 0.85rem; }
  .hero-title { margin-bottom: 0.55rem; }
  .hero-subtitle { margin-bottom: 0.4rem; min-height: 1.35em; }
  .hero-desc { font-size: 0.88rem; }
  .trade-slide-overlay { padding: 1.15rem 1rem 1.85rem; }
  .trade-slide-overlay p { font-size: 0.82rem; }
  .ajt-footer { padding: 2rem 0 1.25rem; }
  .footer-line { margin-bottom: 1.15rem; }
  .glass-card { padding: 1.25rem; }
}

@media (max-width: 575px) {
  .market-stats { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .chart-canvas-wrap { height: 220px; }
  .trade-card { height: 220px; }
  .trade-slider-btn { width: 36px; height: 36px; }
  .trade-slider-btn.prev { left: 8px; }
  .trade-slider-btn.next { right: 8px; }
  .hero-section { padding: 88px 0 12px; }
  .section-pad { padding: 28px 0; }
  .section-pad.pt-0 { padding-top: 4px !important; }
  .section-head { margin-bottom: 1rem; }
  .cta-buttons {
    margin: 1.15rem 0 0.25rem;
    gap: 0.65rem;
    flex-direction: column;
    align-items: stretch;
  }
  .cta-buttons .btn-ajt {
    width: 100%;
    min-width: 0;
  }
  .btn-lg-ajt { padding: 0.9rem 1.25rem; font-size: 0.92rem; }
  .chart-panel { padding: 1.1rem; border-radius: 16px; }
  .chart-header { margin-bottom: 1rem; gap: 0.65rem; }
  .stat-pill { padding: 0.65rem 0.7rem; }
  .ajt-footer { padding: 1.5rem 0 1rem; }
  .ajt-footer img { height: 88px; margin-bottom: 0.5rem; }
}
