/* ==========================================================================
   GP Music - Ultra Modern Cyber-Audio Design System (Dark Glassmorphic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;800&display=swap');

:root {
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Outfit', sans-serif;

  /* Colors */
  --bg-deep: #07090e;
  --bg-card: rgba(18, 22, 34, 0.7);
  --bg-card-hover: rgba(26, 32, 50, 0.85);
  --bg-glass: rgba(18, 22, 34, 0.45);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --accent-cyan: #00f0ff;
  --accent-purple: #9d4edd;
  --accent-magenta: #ff007f;
  --accent-green: #00ff88;
  --accent-orange: #ff7b00;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #9d4edd 50%, #ff007f 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.15), transparent 70%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  --shadow-neon-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --shadow-neon-purple: 0 0 25px rgba(157, 78, 221, 0.35);

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-fa);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.7;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(157, 78, 221, 0.18), transparent),
              radial-gradient(ellipse 60% 40% at 90% 70%, rgba(0, 240, 255, 0.08), transparent),
              radial-gradient(ellipse 50% 50% at 10% 40%, rgba(255, 0, 127, 0.08), transparent),
              var(--bg-deep);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 680px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.brand-name {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 0.75rem;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.25);
  font-family: var(--font-fa);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

#canvas-visualizer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #d8b4fe;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3.2rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-media {
  position: relative;
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card), 0 0 50px rgba(157, 78, 221, 0.15);
  transition: var(--transition-smooth);
}

.hero-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* Floating DJ Tag */
.floating-stat {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(18, 22, 34, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: float 4s ease-in-out infinite alternate;
}

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

.stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 240, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
}

/* Download Center Grid */
.downloads-section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.download-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.download-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 240, 255, 0.15);
}

.download-card:hover::before {
  opacity: 1;
}

.platform-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.download-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.platform-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition-smooth);
  position: relative;
}

.feature-box:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(157, 78, 221, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Screenshots Showcase */
.screenshots-section {
  padding: 6rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.gallery-item:hover {
  border-color: var(--accent-cyan);
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact & Support Section */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  box-shadow: var(--shadow-card);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-item .ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  background: rgba(7, 9, 14, 0.9);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Alert Toasts */
.toast-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  display: none;
}
.toast-success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: #6ee7b7;
}
.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Footer */
.footer {
  background: #040508;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-right: 4px;
}

/* Enamad Box */
.enamad-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .lead-text {
    margin: 0 auto;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .copyright-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
