/* Google Font for Handwriting Style */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(to bottom right, #fbd3e9, #bb377d, #ff6f61);

  color: #2c3e50;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Hero Section */
header.hero {
  background: #c2185b;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  width: 80%;
  max-width: 1000px;
  border-radius: 50px;
  animation: waveBg 10s infinite alternate ease-in-out;
  margin: 0 10%;
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
  z-index: 2;
}

@keyframes waveBg {
  0% { border-radius: 0 0 60px 60px / 0 0 40px 40px; }
  50% { border-radius: 0 0 75px 45px / 0 0 60px 30px; }
  100% { border-radius: 0 0 60px 60px / 0 0 40px 40px; }
}

header.hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: slideIn 1.5s ease-out;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

h1 .highlight {
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  color: #c2185b;
  font-size: 3rem;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

button, .button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s;
}

button:hover, .button:hover {
  transform: scale(1.05);
}

.start {
  background-color: #d81b60;
  color: white;
}

.more {
  background-color: #f06292;
  color: white;
}

.section {
  padding: 3rem;
  background: #fff0f5;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 1200px;
  margin: 2rem 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1.2s ease;
  font-size: 1.1rem;
  line-height: 1.8;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section h2 {
  font-size: 2.5rem;
  color: #ad1457;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.section ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 10px;
}

.section ul li::before {
  content: "\2764";
  color: #e74c3c;
  margin-right: 10px;
}

img {
  max-width: 200px;
  margin: 20px auto;
  display: block;
}


/* LIGHT/DARK SWITCHER */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 1.8rem;
  background: #fff;
  color: #c2185b;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: #c2185b;
  color: #fff;
}

body.dark {
  background: linear-gradient(to right, #3c0a28, #5e124e);
  color: #fce4ec;
}

body.dark .main-content {
  background: rgba(255,255,255,0.07);
}

body.dark .sidebar {
  background: #4a0b30;
  color: #ffe4f0;
}

body.dark .sidebar li:hover {
  background-color: #ffffff22;
  color: #fff;
}
/* LOADER CORTINĂ CU ADN */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#loader-left, #loader-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url('assets/poze/fundal_rosu.png');
  background-repeat: no-repeat;
  background-size: 200% 100%;
  z-index: 2;
  transition: all 1s ease;
}

#loader-left {
  left: 0;
  background-position: left center;
}

#loader-right {
  right: 0;
  background-position: right center;
}

#loader-center {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
}

.site-title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px #ed66d6;
}

#rotating-adn {
  width: 100px;
  height: 100px;
  animation: rotateADN 3s linear infinite;
  filter: drop-shadow(0 0 10px #f06292);
}

@keyframes rotateADN {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loader-close #loader-left {
  transform: translateX(-100%);
}
.loader-close #loader-right {
  transform: translateX(100%);
}
.loader-close #loader-center {
  opacity: 0;
  transition: opacity 0.4s ease;
}