/* Reset general pentru toate elementele */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Stiluri pentru corpul paginii */
body {
  font-family: "Helvetica Neue", sans-serif;
  background-color: #f5f5f7; /* Gri deschis, stil Apple */
  color: #000;
}

/* Header-ul principal */
.main-header {
  background-color: #ffffffcc;
  backdrop-filter: blur(10px); /* Efect de blur elegant */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); /* Umbră subtilă */
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Containerul header-ului */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo-ul - link fără subliniere și fără hover */
.logo-link {
  text-decoration: none; /* Fără subliniere */
  color: #000; /* Culoare neagră */
  font-weight: 600; /* Grosime font */
  letter-spacing: 2px; /* Spațiere între litere */
}

.logo-link:hover {
  color: #000; /* Rămâne negru chiar și la hover */
  background-color: transparent; /* Nu se schimbă fundalul */
  transform: none; /* Nu se aplică nicio animație la hover */
}

/* Meniul de navigare */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* Linkurile din meniu */
.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 6px 10px;
  border-radius: 8px;
}
/* Efectul la hover pentru linkurile din meniu */
.main-nav a {
  display: inline-block;
  font-size: 1rem; /* Dimensiune normală a fontului */
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease; /* Tranziție lină pentru zoom */
}

.main-nav a:hover {
  transform: scale(1.1); /* Zoom mic și subtil doar la hover */
}







/* Secțiunea introductivă */

/* Secțiunea form fundamentale */
.formular-section {
  padding: 50px 20px;
  background-color: #f8f9fa;
}

.container-formular {
  max-width: 900px;
  margin: 0 auto;
}

.container-formular h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.container-formular p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

.formula-box {
  background: white;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formula-box h3 {
  margin-bottom: 10px;
  color: #222;
  font-size: 1.3rem;
}

.formula-box p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.formula-box strong {
  font-weight: 600;
  color: #333;
}
.math-hero {
  height: 65vh;
  background-image: url("img/matematica.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.math-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Overlay ușor închis */
  display: flex;
  justify-content: center;
  align-items: center;
}

.math-overlay h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}


.formule-section {
  padding: 50px 20px;
  background-color: #f8f9fa;
}

.container-formule {
  max-width: 900px;
  margin: 0 auto;
}

.container-formule h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.container-formule p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

.formula-box {
  background: white;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formula-box h3 {
  margin-bottom: 10px;
  color: #222;
  font-size: 1.3rem;
}

.formula-box p {
  font-size: 1.1rem;
  line-height: 1.6;
}
/* Secțiunea de trigonometrie */
.trigonometric-section {
  padding: 50px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.trigonometric-container {
  max-width: 900px;
  margin: 0 auto;
}

.trigonometric-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

/* Descrierea pentru secțiune */
.trigonometric-container p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

/* Lista de formule */
.formula-list {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formula-list h3 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 20px;
}

.formula-list ul {
  list-style-type: none;
  padding: 0;
}

.formula-list li {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.formula-list li span {
  font-weight: 600;
}

.formula-list .formula {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  color: #0066cc;
}





/* GENERATOR TABEL TRIGONOMETRIC*/ 

#trig-table-generator {
  padding: 10px 10px;
  background-color: #f8f9fa;
}

.trig-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trig-container h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #222;
}

.trig-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.trig-form label {
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  display: block;
  width: 100%;
  max-width: 400px;
}

.trig-form input {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  width: 100%;
}

.trig-form button {
  margin-top: 10px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #000;
  background-color: white;
  color: black;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.trig-form button:hover {
  background-color: #f0f0f0;
}

/* Tabelul apare mai jos */
#tableContainer {
  margin-top: 50px;
  overflow-x: auto;
}

#tableContainer table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

#tableContainer th,
#tableContainer td {
  padding: 14px 18px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
}

#tableContainer th {
  background-color: #f0f0f0;
  font-weight: 600;
}

#tableWrapper {
  overflow-x: auto;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}






/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
  margin-top: 2rem;
}
