/* ----The Prgogrammer yacine Agouni---- */
/* style.css */
:root {
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --neon-green: #00ff88;
  --neon-red: #ff3b3b;
  --glass-bg: rgba(20, 20, 30, 0.7);
  --border-light: rgba(255,255,255,0.05);
  --text-primary: #f0f0f0;
  --font-main: 'Tajawal', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* glasess effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/*  navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #2a2a2a;
  padding: 0.8rem 2rem;
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}
.neon {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0,255,136,0.5);
}


/* normal big screen */
.nav-links {
  display: flex;
  list-style: none;
  transition: all 0.3s ease;
  gap: 2.5rem;
}

/* hide toggle from small screen */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
}

/* ===== responsive small screen===== */
@media (max-width: 768px) {
  /* show toggle   */
  .menu-toggle {
    display: block !important;
    z-index: 1000;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: slideDown 0.3s ease forwards;
  }
  
  .nav-links.active {
    display: flex !important;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover { 
  color: var(--neon-green); 
}


/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5%;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  flex: 1;
}

/*  animaton profile circular */
.profile-image-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 2rem;
}

.profile-image-border {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--neon-green), var(--neon-red), var(--neon-green));
  background-size: 200% 200%;
  animation: borderRotate 3s linear infinite;
  filter: blur(3px);
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  position: relative;
  z-index: 2;
  animation: imagePulse 2s ease-in-out infinite;
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; transform: rotate(0deg); }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; transform: rotate(360deg); }
}

@keyframes imagePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 59, 59, 0.3); }
}


/* chart animation */
.chart-animation {
  position: absolute;
  left: 5%;
  width: 50%;
  max-width: 700px;
  opacity: 0.25;
  pointer-events: none;
  margin-bottom: 162px;
}
.chart-line {
  fill: none;
  stroke: var(--neon-green);
  stroke-width: 3;
  filter: drop-shadow(0 0 15px #00ff88);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 3s ease-in-out infinite alternate;
}
.chart-glow {
  fill: none;
  stroke: var(--neon-green);
  stroke-width: 8;
  opacity: 0.2;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}



/* candles animation */
.candles-animation {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
  flex: 1;
  justify-content: center;
  position: relative;
}

.candle {
  width: 20px;
  background: currentColor;
  position: relative;
  animation: candleWave 2s ease-in-out infinite;
  transform-origin: bottom;
  border-radius: 3px 3px 0 0;
}

.candle::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -2px;
  right: -2px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  filter: brightness(1.2);
}

.candle.positive {
  color: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green);
}

.candle.negative {
  color: var(--neon-red);
  box-shadow: 0 0 20px var(--neon-red);
}

@keyframes candleWave {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(1.2); opacity: 1; }
}

.glow-red:hover {
  box-shadow: 0 0 35px var(--neon-red);
  transform: scale(1.02);
}

/* responsive phone */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }
  
  .profile-image-container {
    margin: 0 auto 2rem;
  }
  
  .candles-animation {
    height: 150px;
    margin-top: 3rem;
  }
  
  .candle {
    width: 15px;
  }
}

@media (max-width: 480px) {
  .candles-animation {
    height: 120px;
    gap: 2px;
  }
  
  .candle {
    width: 12px;
  }
  
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 360px) {
  .candles-animation {
    height: 100px;
  }
  
  .candle {
    width: 8px;
  }
}

/* buttons */
.cta-buttons {
  margin-top: 40px;
}
.btn-primary, .btn-plan, .btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-left: 16px;
  border: none;
  cursor: pointer;
}
.btn-primary, .btn-plan {
  background: var(--neon-green);
  color: #0f0f0f;
  box-shadow: 0 0 20px rgba(0,255,136,0.3);
}
.btn-outline {
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  background: transparent;
}
.glow:hover {
  box-shadow: 0 0 35px #00ff88;
  transform: scale(1.02);
}

/* sections */
.section {
  padding: 80px 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.about-grid, .stats-grid, .plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.about-card, .stat-item, .plan-card {
  padding: 40px 25px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.about-card i { margin-bottom: 20px; }

/* statistics */
.stat-item .stat-num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1;
}
.suffix { font-size: 2rem; color: var(--neon-green); }

/* palan cards */
.plan-card {
  position: relative;
  padding: 30px 20px;
  transition: transform 0.2s;
}
.plan-card.popular {
  border: 1px solid var(--neon-green);
  transform: scale(1.02);
}
.badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--neon-green);
  color: black;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
}
.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 15px 0;
}
.price span {
  font-size: 1rem;
  color: #aaa;
}
.features {
  list-style: none;
  text-align: right;
  margin: 20px 0;
}
.features li {
  margin: 10px 0;
}
.features i { color: var(--neon-green); margin-left: 10px; }
.btn-plan { display: block; text-align: center; padding: 12px; }

/* plans model */
.plan-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.plan-container {
  max-width: 700px;
  width: 100%;
}
.order-form {
  padding: 40px;
  margin-top: 30px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0,0,0,0.6);
  border: 1px solid #333;
  border-radius: 40px;
  font-size: 1rem;
  color: white;
  transition: 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0,255,136,0.3);
}
.required { color: var(--neon-red); }
.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.secure-note {
  margin-top: 20px;
  text-align: center;
  color: #aaa;
}

/* notifications */
.toast {
  position: fixed;
  bottom: 30px; left: 30px;
  background: #1e1e1e;
  border-right: 5px solid var(--neon-green);
  padding: 16px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 30px black;
  transform: translateX(-400px);
  transition: 0.3s;
  z-index: 999;
}
.toast.show { transform: translateX(0); }
.toast.error { border-right-color: var(--neon-red); }

/* load indicator */
.spinner-overlay {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}
.spinner-overlay.active { visibility: visible; opacity: 1; }
.loader {
  width: 60px; height: 60px;
  border: 5px solid #333;
  border-top: 5px solid var(--neon-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* appendix */
footer {
  background: #0a0a0a;
  padding: 40px 20px;
  border-top: 1px solid #222;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.social-links a {
  color: #aaa;
  font-size: 1.8rem;
  margin-left: 20px;
  transition: 0.2s;
}
.social-links a:hover { color: var(--neon-green); }

/* responsive phons */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { flex-direction: column; }
  .glitch { font-size: 3rem; }
  .chart-animation { width: 100%; left: 0; opacity: 0.15; }
  .footer-content { flex-direction: column; gap: 20px; }
  .toast { left: 20px; right: 20px; width: auto; }
}