/* ===== Reset & Global ===== */
:root {
  --section-padding: auto-fit;
  --section-gap: 60px;
  background: rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('./img/presentation.webp'); 
  background-size: cover; 
  background-position: top; 
  background-attachment: fixed;
}
a { text-decoration: none; color: inherit; }
h1,h2,h3 { font-weight: 700; }

section {
  padding: var(--section-padding) 8%;
  background: rgba(0,0,0,0.3);
  padding-bottom: 30px;
  padding-top: 30px;
}

section + section {
  background: rgba(0,0,0,0.3);
}

html {
  scroll-behavior: smooth;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: rgba(0,0,0,0.3);
}
.logo { height: 60px; position: left; }
nav a {
  margin: 0 10px;
  font-weight: 600;
  color: #f5f5dc;
  transition: color 0.3s;
  position: top;
}
nav a:hover { color: gold; }

.header-btn {
  display: inline-block;
  background: #f5f5dc;
  color: #375426;
  padding: 8px 20px;
  margin-left: 10px;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
  position: center;
}

/* ===== Hero ===== */
.hero {
  background: rgba(0,0,0,0.3);
  color: #f5f5dc;
  text-align: center;
}
.hero h1 { font-size: 42px; margin-bottom: 20px; }
.hero p { font-size: 18px; margin-bottom: 30px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  margin: 5px;
  border-radius: 50px;
  background: #f5f5dc;
  color: #375426;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover { background: #375426; color: #f5f5dc; }

/* ===== Features ===== */
.features { 
  background: rgba(0,0,0,0.3); 
  text-align: center; 
  color: #f5f5dc; 
}
.features h2 { font-size: 32px; margin-bottom: 40px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.feature-card {
  background: #f5f5dc;
  color: #375426;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card .icon { font-size: 32px; margin-bottom: 15px; }

/* ===== Partners ===== */
.partners { 
  background: rgba(0,0,0,0.3); 
  text-align: center; 
  color: #f5f5dc; 
}
.partners h2 { font-size: 32px; margin-bottom: 40px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.partners-card {
  background: #f5f5dc;
  color: #375426;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.partners-card:hover { transform: translateY(-6px); }
.partners-card .icon { font-size: 32px; margin-bottom: 15px; }
.partner-logo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  background: #f5f5dc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.partner-logo img {
  width: 70px;
  height: auto;
  filter: grayscale(20%);
}
.partner-logo span {
  display: block;
  color: #375426;
  font-weight: 600;
  font-size: 17px;
}
.partners h1 {
  font-size: 40px;
  color: #f5f5dc;
  border-radius: 10px;
  border-color: #f5f5dc;
  position: static;
}
.partners-card img {
  max-width: 120px;
  height: auto;
  border-block-color: #375426;
}

/* ===== TradingView Widget ===== */
.widget-section { 
  margin: 60px auto; 
  max-width: 1000px; 
  background: rgba(0,0,0,0.3);
}
.tradingview-widget-container { 
  height: 400px; 
  margin: auto;
  padding: auto;
  line-height: 0;
  height: auto;
}

/* ===== Stats ===== */
.stats {
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}
.stat { margin: 15px; }
.stat h3 { font-size: 36px; color: #f5f5dc; }
.stat p { color: #f5f5dc; }

/* ===== Testimonials ===== */
.testimonials { 
  background: rgba(0,0,0,0.3); 
  color: #f5f5dc; 
  text-align: center; 
} 
.testimonials h2 { margin-bottom: 40px; color: #f5f5dc; }
.testimonial-grid {
  display: flex; 
  flex-wrap: wrap; 
  gap: 25px; 
  justify-content: center; 
  color: #375426;
}
.testimonial-card {
  background: #f5f5dc; 
  color: #375426;
  padding: 25px; 
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  width: 280px;
}
.testimonial-card blockquote { font-style: italic; margin-bottom: 15px; }

/* ===== FAQ ===== */
.faq {
  background: rgba(0,0,0,0.3);
  /* padding: 80px 20px; */
  text-align: center;
}

.faq h2 {
  /* margin-bottom: 30px; */
  font-size: 32px;
  color: #f5f5dc;
}
.faq p {
  padding: auto;
  cursor: pointer;
  font-weight: 600;
  font-size: 28px;
  justify-content: space-between;
  color: #f5f5dc;
  gap: 30px;
}
.faq h4 {
  padding: auto;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  justify-content: space-between;
  color: #375426;
}
.faq-item {
  background: #f5f5dc;
  border-radius: 8px;
  margin: 10px auto;
  max-width: 800px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.faq-question {
  padding: 15px 30px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0px 20px;
  color: #375426;
  transition: max-height 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: auto;
}
.faq-footer {
  background: rgba(0,0,0,0.0);
  color: #f5f5dc;
  border: none;
  padding: 0 20px;
  cursor: pointer;
}

/* ===== Market Analysis ===== */
.market-analysis {
  background: rgba(0,0,0,0.3);
  color: #f5f5dc;
  /* padding: 60px 20px; */
}

.market-analysis h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.market-analysis article {
  max-width: 800px;
  margin: 20px auto;
  color: #375426;
  background: #f5f5dc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.market-analysis article:hover {
  transform: translateY(-6px);
}

.market-analysis a {
  color: #375426;
  font-weight: bold;
  transition: color 0.3s;
}

.market-analysis a:hover {
  color: gold;
}
/* ===== Indicators Section ===== */
.indicators {
  background: rgba(0,0,0,0.3);
  color: #f5f5dc;
  /* padding: 60px 20px; */
  text-align: center;
}

.indicators h2 {
margin-bottom: 40px; color: #f5f5dc;}

.indicators ul {
  list-style: none;
  color: #375426;
  max-width: 800px;
  margin: auto;
  text-align: left;
  padding: 0;
}

.indicators li {
  margin: 12px 0;
  padding: 12px 18px;
  background: #fffbea;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.indicators li:hover {
  transform: translateX(5px);
}

/* ===== Strategies Section ===== */
.strategies {
  background: rgba(0,0,0,0.3);
  color: #f5f5dc;
  /* padding: 60px 20px; */
  text-align: center;
}

.strategies h2 {
  margin-bottom: 30px;
}

.strategy {
  background: #f5f5dc;
  color: #375426;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  margin: 15px auto;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.strategy:hover {
  transform: translateY(-6px);
}
/* ===== Articles Section ===== */
.articles {
  background: rgba(0,0,0,0.3);
  color: #f5f5dc;
  text-align: center;
}
.articles h2 {
  margin-bottom: 40px; 
  color: #f5f5dc;
}
.articles-grid {
  display: flex; 
  flex-wrap: wrap; 
  gap: 25px; 
  justify-content: center; 
  color: #375426;
}
.articles-grid article {
  background: #f5f5dc; 
  color: #375426;
  padding: 25px; 
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  width: 280px;
}
.articles-grid article:hover {
  transform: translateY(-6px);
}
.articles p {
  font-size: 15px;
}
.articles-grid a {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #375426;
}
.articles-grid a:hover {
  color: gold;
}

/* ===== Footer ===== */
.footer-pro {
  background-color: #f5f5dc;
  color: #375426;
  padding: 80px 40px 40px;
  font-family: 'Segoe UI', sans-serif;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid #375426;
  padding-bottom: 50px;
}
.footer-logo {
  flex: 1 1 300px;
  margin-right: 50px;
}
.footer-logo h2 {
  color: #375426;
  font-size: 32px;
  margin-bottom: 10px;
}
.footer-logo p {
  font-size: 16px;
  color: #375426;
}
.footer-links {
  display: flex;
  flex: 2 1 600px;
  justify-content: space-between;
}
.footer-links h4 {
  color: #375426;
  margin-bottom: 15px;
  font-size: 18px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a {
  color: #375426;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: #375426;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  font-size: 14px;
  color: #375426;
}

/* ===== Chat Widget ===== */
#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
}
#chat-btn {
  background: #375426;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#chat-btn:hover {
  transform: scale(1.1);
}
#chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 450px;
  background: #f5f5dc;
  border: 2px solid #375426;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chat-box.hidden {
  display: none;
}
.chat-header {
  background: #375426;
  color: #f5f5dc;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-title {
  font-size: 16px;
}
.close-chat {
  background: none;
  border: none;
  color: #f5f5dc;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-chat:hover {
  background: rgba(255,255,255,0.2);
}
#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.4;
  word-wrap: break-word;
}
.user-message {
  align-self: flex-end;
  background: #375426;
  color: #f5f5dc;
  border-bottom-right-radius: 5px;
}
.bot-message {
  align-self: flex-start;
  background: #e8e8d0;
  color: #2a3f1e;
  border-bottom-left-radius: 5px;
  border: 1px solid #d0d0b8;
}
.typing-indicator {
  align-self: flex-start;
  background: #e8e8d0;
  color: #666;
  padding: 10px 15px;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  font-style: italic;
}
.chat-input-container {
  display: flex;
  border-top: 1px solid #d0d0b8;
  background: #fff;
}
#chat-input {
  flex: 1;
  border: none;
  padding: 15px;
  outline: none;
  font-size: 14px;
}
#send-btn {
  background: #375426;
  color: #f5f5dc;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.3s;
}
#send-btn:hover {
  background: #2a3f1e;
}
#send-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

/* ===== Menu Styles ===== */
.menu-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  color: #2a3f1e;
}
.menu-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-btn {
  background: #375426;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.menu-btn:hover {
  background: #2a3f1e;
  transform: translateX(5px);
  border-color: #FFD700;
}
.demo-link:hover, .whatsapp-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== Trading Calculator ===== */
.trading-calculator {
  background: rgba(0,0,0,0.3);
  color: #f5f5dc;
}
.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
}
.trading-calculator h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: #f5f5dc;
}
.calculator-subtitle {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}
.calculator-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tab {
  background: transparent;
  border: 1px solid #f5f5dc;
  color: #f5f5dc;
  padding: 10px 20px;
  border-radius: 25px;
  border-color: #f5f5dc;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}
.tab.active,
.tab:hover {
  background: #f5f5dc;
  color: #375426;
}
.calculator-description {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}
.calculator-form {
  background: #f5f5dc;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.form-group {
  flex: 1;
  min-width: 200px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #375426;
  font-weight: 600;
}
.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #375426;
  border-radius: 8px;
  background: white;
  color: #375426;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23375426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #2a3f1e;
  box-shadow: 0 0 0 2px rgba(55, 84, 38, 0.2);
}
.calculate-btn {
  display: block;
  width: 200px;
  margin: 20px auto 0;
  padding: 12px 25px;
  background: #375426;
  color: #f5f5dc;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}
.calculate-btn:hover {
  background: #2a3f1e;
  transform: translateY(-2px);
}
.calculator-results {
  background: #f5f5dc;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.calculator-results h3 {
  color: #375426;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(55, 84, 38, 0.1);
  border-radius: 8px;
}
.result-label {
  color: #375426;
  font-weight: 600;
}
.result-value {
  color: #375426;
  font-weight: bold;
}
/* ===== Contact Form ===== */
.contact-form-section {
  background: rgba(0,0,0,0.3);
}
.form-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #f5f5dc;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  color: #375426;
}
.form-container h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #375426;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #375426;
  border-radius: 8px;
  background: white;
  color: #375426;
  font-size: 16px;
}
.form-group textarea {
  resize: vertical;
  min-height: 150px;
}
.submit-btn {
  width: 100%;
  padding: 15px;
  background: #375426;
  color: #f5f5dc;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.submit-btn:hover {
  background: #375426;
}

/* ===== Additional Styles ===== */
.logo-link {
  cursor: pointer;
  display: inline-block;
}
.logo-link:hover {
  opacity: 0.8;
}
.stars {
  font-size: 16px;
  color: gold;
}
.risk-disclaimer {
  background: rgba(255, 0, 0, 0.1);
  border-left: 4px solid #ff4444;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
  color: #f5f5dc;
}
.regulation-badge {
  display: inline-block;
  background: #375426;
  color: #f5f5dc;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  margin: 2px;
  font-weight: bold;
}
.widget-loading {
  text-align: center;
  padding: 20px;
  color: #f5f5dc;
}
.social-icons img {
  margin-left: 12px;
  color: #f5f5dc;
  filter: invert(92%) sepia(9%) saturate(204%) hue-rotate(10deg) brightness(95%) contrast(89%);
  transition: transform 0.3s;
}
.social-icons img:hover {
  transform: scale(1.2);
}
.toggleButton{
  width: 100%;
  padding: 15px;
  background: #375426;
  color: #f5f5dc;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

/* إخفاء أيقونة الخطأ في TradingView */
.tradingview-widget-container img[alt="⚠"] {
  display: none !important;
}
.tradingview-widget-container__widget span {
  font-family: monospace !important;
}
.tradingview-widget-container__widget span:not(:empty):not([class]) {
  display: none !important;
}
.tradingview-widget-container__widget::after {
  content: "Market Closed";
  color: #ff9900;
  font-size: 13px;
  font-weight: bold;
  margin-left: 6px;
}
/* /////////////////////////// */



