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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background: #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.95);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid #333;
  transition: box-shadow 0.3s;
}

header:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.logo h1 {
  font-size: 1.8em;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: #007bff;
  transform: translateY(-3px);
}

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

/* Hero Section with Parallax Effect */
#hero {
  position: relative;
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, #1f1f1f, #121212);
  background-attachment: fixed;
  overflow: hidden;
}

.hero-content h2 {
  font-size: 3em;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 600px;
  margin: 0 auto 30px;
}

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

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

/* 3D Container */
#threeD-container {
  margin-top: 50px;
  height: 300px;
  max-width: 100%;
}

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

/* Projects */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.project-card {
  background: transparent;
  width: 300px;
  height: 380px;
  perspective: 1000px;
  /* Variabila pentru culoarea de accent a proiectului */
  --project-color: #007bff;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front {
  background: #1e1e1e;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.card-back {
  background: var(--project-color);
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skills Section */
.skills-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.skills-list li {
  background: #1e1e1e;
  padding: 12px 18px;
  border-radius: 25px;
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .projects-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Fade-in & Hidden Effects */
.hidden, .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: 30px auto 50px;
  text-align: left;
}

.about-container {
  font-size: 1.5em; /* Mărește textul */
  background: rgba(0, 123, 255, 0.1); /* Fundal subtil cu o tentă de albastru */
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 50px; /* Crează colțuri rotunjite pentru un efect eliptic */
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.about-container {
  clip-path: ellipse(150% 60% at 50% 50%);
}
