/* Reset & Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #121212;
  color: #e0e0e0;
  margin: 0;
}

/* Full-width Sections: Header, Hero & Footer */
header, #hero, footer {
  width: 100%;
  margin: 0;
}

/* HEADER */
header {
  background: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #007bff;
}

nav select {
  padding: 5px;
  font-size: 16px;
  background: #444;
  color: #fff;
  border: none;
}

/* HERO SECTION */
#hero {
  background: #007bff;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  animation: fadeIn 2s ease-in;
}

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

.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  margin-top: 10px;
  border-radius: 4px;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  background: #0056b3;
}

/* FOOTER */
footer {
  background: #1f1f1f;
  color: #aaa;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

/* Sections */
section {
  padding: 50px 20px;
  text-align: center;
}

/* About Section (Project Page) */
#about {
  padding: 40px 20px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.3em;
  line-height: 1.8;
  position: relative;
}

/* Accent border pentru About */
#about::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #007bff;
  border-radius: 4px;
}

/* SUDOKU BOARD */
#sudoku-board {
  width: 300px;
  margin: 20px auto;
  border: 2px solid #333;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td {
  border: 1px solid #555;
  width: 33px;
  height: 33px;
}

input {
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 18px;
  background: transparent;
  color: #e0e0e0;
  border: none;
  outline: none;
}

/* BUTOANE */
.buttons-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

button {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
}

#generate-btn {
  background-color: #007bff;
  color: #fff;
}

#generate-btn:hover {
  background-color: #0056b3;
}

#clear-btn {
  background-color: #dc3545;
  color: #fff;
}

#clear-btn:hover {
  background-color: #c82333;
}

/* Animații și efecte */
.solved {
  background-color: #2ecc71;
  transition: background-color 0.5s ease, transform 0.2s ease;
}

.solved.animate {
  transform: scale(1.1);
}

/* Fade-in & Hidden Effects */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* COD C++ */
#cpp-code {
  background: #1f1f1f;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 5px;
  font-family: Consolas, monospace;
  width: 80%;
  margin: 20px auto 50px;
  text-align: left;
}
