/* css/style.css */
:root {
  --primary-blue: #2B50EC;
  --secondary-blue: #6B8EFF;
  --accent-teal: #1A936F;
  --light-bg: #F8FAFF;
  --dark-text: #2D3748;
  --light-text: #718096;
  --white: #FFFFFF;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
  margin: 0;
  padding: 0;
}
.navbar {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  overflow-x: auto; /* scroll orizontal doar dacă e nevoie */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* permite ambalarea elementelor pe rânduri */
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  color: var(--dark-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background-color: var(--light-bg);
  color: var(--primary-blue);
}

.nav-links .active {
  color: var(--primary-blue);
  background-color: rgba(43, 80, 236, 0.1);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-blue);
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    display: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
  }

  .nav-links.show {
    display: flex;
  }
}

.hero {
  height: 80vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 76px;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content h1 {
  font-size: 3.5rem;          /* mărime mare pentru titlu */
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;               /* asigură text alb */
}

.hero-content p {
  font-size: 1.5rem;          /* mărime potrivită pentru subtitlu */
  font-weight: 400;
  opacity: 0.95;
  color: white;               /* păstrează alb */
}



.container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin: 3rem 0;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.grid-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
}

.grid-item:hover {
  transform: translateY(-8px);
}

.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--white);
}

.footer-column p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-credit {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}


/* Animations */
@keyframes slideIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-slide {
  animation: slideIn 0.8s ease-out forwards;
}

.animate-fade {
  animation: fadeIn 1.2s ease-in forwards;
}

.animate-pop {
  animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@media (max-width: 768px) {
  .nav-container {
      padding: 0 1rem;
  }
  
  .nav-links a {
      margin-left: 1.5rem;
  }
  
  .hero {
      height: 60vh;
  }
}
/* Add to css/style.css */
/* Timeline */
.timeline-section {
  padding: 4rem 1rem;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-blue);
}

/* Linia verticală */
.timeline-line {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--primary-blue);
  z-index: 1;
}

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  z-index: 2;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--primary-blue);
  border-radius: 50%;
  z-index: 3;
}

.timeline-item.left::before {
  right: -12px;
}

.timeline-item.right::before {
  left: -12px;
}

/* Box de conținut */
.timeline-item .content {
  background: #f8faff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  position: relative;
}

.timeline-item .icon {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.timeline-item p {
  margin: 0;
  color: var(--dark-text);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-line::before {
    left: 8px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 2rem;
    padding-right: 0;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }
  .timeline-item.left::before,
  .timeline-item.right::before {
    left: -12px;
  }
}


/* Concept Grid */
.concept-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.concept-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  color: var(--primary-blue);
}

.concept-card p,
.concept-card ul,
.concept-card .example {
  margin-top: 0.5rem;
}

.concept-card {
  background: var(--white);
  padding: 1.6rem 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
  line-height: 1.6;
}

.chart-container canvas {
  margin-top: 1rem;
}

.concept-card:hover {
  transform: translateY(-5px);
}

.resource-section, .bibliography, .sources {
  margin-top: 4rem;
}

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

.resource-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.resource-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.resource-card a {
  display: inline-block;
  font-weight: bold;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.resource-card:hover {
  transform: translateY(-6px);
}

.book-list, .source-list {
  list-style: none;
  padding-left: 1rem;
}

.book-list li, .source-list li {
  margin: 0.8rem 0;
  font-size: 1rem;
}

.book-list li a, .source-list li a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.book-list li a:hover, .source-list li a:hover {
  color: var(--secondary-blue);
}

/* Chart Container */
.chart-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
}
/* Add these to your existing CSS */
.counter-box {
  background: #2B50EC;
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  margin: 2rem 0;
}

.counter-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.counter {
  font-size: 4.5rem;
}

.percent {
  font-size: 3.5rem;
  padding-top: 0.6rem;
}


.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.icon-item {
  text-align: center;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 10px;
  transition: transform 0.3s;
}

.icon-item:hover {
  transform: translateY(-5px);
}

.icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 1rem;
  margin: 0.5rem 0;
  background: #f8f9fa;
  border-radius: 8px;
}

.pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
      #2B50EC 0% 60%,
      #1A936F 60% 90%,
      #6B8EFF 90% 100%
  );
  margin: 1rem auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th, .comparison-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

.book-list li {
  padding: 1rem;
  margin: 0.5rem 0;
  background: #f8f9fa;
  border-left: 4px solid #2B50EC;
}
/* Add to style.css */
.system-examples .example {
  display: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.system-examples .example.active {
  display: block;
  opacity: 1;
}

.btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 20px 0;
}

.btn:hover {
  background: var(--secondary-blue);
}

.comparison-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  border: 1px solid #eee;
  text-align: left;
}

.comparison-table th {
  background-color: var(--primary-blue);
  color: white;
}
/* === KEY FIGURES === */
.key-figures {
  margin-top: 5rem;
}

.key-figures h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  text-align: center;
}

.key-figures p {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
  color: var(--dark-text);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === FIGURE GRID === */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

/* === FIGURE CARD === */
.figure-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 6px solid var(--primary-blue);
}

.figure-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary-blue);
}

.figure-card p {
  color: var(--dark-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* Hover effect */
.figure-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
canvas {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

#resourcesChart {
  max-width: 500px;
  margin: 2rem auto;
}



@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

.chart-caption {
  text-align: center;
  max-width: 900px;
  margin: 1.5rem auto 2rem auto;
  font-size: 1.05rem;
  color: var(--dark-text);
  line-height: 1.7;
}


.chart-explanation {
  text-align: center;
  max-width: 900px;
  margin: 1.5rem auto 2rem auto;
  background: var(--light-bg);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.chart-explanation p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.chart-data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}

.chart-data-list li {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: var(--dark-text);
}


.system-tab {
  display: none;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.system-tab.active {
  display: block;
}

.system-btn.active {
  background: var(--secondary-blue);
}
.system-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.system-btn {
  padding: 10px 20px;
  border: none;
  background: var(--primary-blue);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.system-btn:hover,
.system-btn.active {
  background: var(--secondary-blue);
}

.system-table-container {
  margin-top: 2rem;
}

.system-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.system-table th,
.system-table td {
  border: 1px solid #eee;
  padding: 1rem;
  text-align: left;
}

.system-table th {
  background: var(--primary-blue);
  color: white;
}

.hidden {
  display: none;
}

.system-description {
  background: #f6f9ff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 1rem;
}

/* === BUDGET PAGE STYLES === */
#budgetForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

#budgetForm label {
  font-weight: 600;
  color: var(--dark-text);
}

#budgetForm input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

#budgetChart {
  max-width: 600px;
  margin: 2rem auto;
}

#feedbackMsg {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}
.budget-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.quiz-card {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quiz-card:hover {
  transform: scale(1.03);
  background-color: #ffffff;
}

.quiz-card h3 {
  margin-bottom: 0.5rem;
}

.quiz-card .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background-color: #111827;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.quiz-card .btn:hover {
  background-color: #333;
}
.quiz-section {
  display: none;
  margin-top: 2rem;
}
.quiz-section.active {
  display: block;
}
.quiz-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.quiz-buttons button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background-color: #1f2937;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quiz-buttons button:hover {
  background-color: #374151;
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: bold;
}
.badge.gold { background: gold; color: #000; }
.badge.silver { background: #c0c0c0; color: #000; }
.badge.bronze { background: #cd7f32; color: #000; }
.badge.try { background: #e0e0e0; color: #333; }
.timeline-modern {
  margin-top: 4rem;
}
.timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}
.timeline-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.timeline-entry .icon {
  font-size: 2rem;
  color: var(--primary-blue);
}
.timeline-entry .text h4 {
  margin-bottom: 0.3rem;
  color: var(--primary-blue);
}
.timeline-entry .text p {
  color: var(--dark-text);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal.hidden {
  display: none;
}
.comparison-summary {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 4rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  text-align: center;
}

.hint-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  text-align: center;
}
