/* =========================
   RESET + FONT
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f4f7ff;
  color: #222;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #375a7f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}

.logo {
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

#darkModeBtn {
  background: white;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* ca să nu fie pagina „ascunsă” sub navbar */
body {
  padding-top: 80px;
}

/* =========================
   HERO
========================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px;
  gap: 40px;
}

.hero-text {
  max-width: 500px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 16px;
  margin-bottom: 20px;
}

.hero-image img {
  width: 400px;
  border-radius: 20px;
}

/* =========================
   BUTOANE
========================= */
.hero-buttons a,
.quiz-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  margin-right: 10px;
  transition: 0.3s;
}

.btn-primary,
.quiz-btn {
  background: #375a7f;
  color: white;
}

.btn-secondary {
  background: white;
  border: 2px solid #375a7f;
  color: #375a7f;
}

.hero-buttons a:hover,
.quiz-btn:hover {
  transform: scale(1.05);
}

/* =========================
   CARDURI
========================= */
.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 40px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

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

/* =========================
   SECTIUNI
========================= */
section {
  padding: 40px;
  text-align: center;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #375a7f;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

body {
font-family: 'Poppins', sans-serif;
}

.navbar {
position: fixed;
top: 0;
width: 100%;
display: flex;
justify-content: space-between;
background: #375a7f;
padding: 10px;
}

.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
padding: 20px;
}

.card {
background: white;
padding: 20px;
border-radius: 12px;
transition: 0.3s;
}

.card:hover {
transform: scale(1.05);
}

/* =====================
   QUIZ PAGE
===================== */

.quiz-container{
  margin-top:120px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

#quiz-box{
  background:white;
  padding:30px;
  border-radius:20px;
  width:400px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

body.dark #quiz-box{
  background:#1e293b;
}

#answers{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:20px;
}

.answer-btn{
  padding:10px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  background:#e0e7ff;
  font-weight:500;
  transition:0.2s;
}

.answer-btn:hover{
  background:#2563eb;
  color:white;
}

#nextBtn{
  margin-top:20px;
  padding:10px 15px;
  border:none;
  border-radius:10px;
  background:#2563eb;
  color:white;
  cursor:pointer;
}

/* =========================
   QUIZ STYLE (Erasmus)
========================= */

.quiz-container{
  margin-top:120px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

#quiz-box{
  width:420px;
  background:white;
  padding:25px;
  border-radius:20px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  transition:0.3s ease;
}

body.dark #quiz-box{
  background:#1e293b;
  color:white;
}

#question{
  margin-bottom:20px;
}

#answers{
  display:flex;
  flex-direction:column;
  gap:10px;
}

#answers button{
  padding:10px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  background:#e0e7ff;
  transition:0.2s;
  font-weight:500;
}

#answers button:hover{
  background:#2563eb;
  color:white;
}

#nextBtn{
  margin-top:15px;
  padding:10px 15px;
  border:none;
  border-radius:10px;
  background:#2563eb;
  color:white;
  cursor:pointer;
  display:none;
}

#score{
  margin-top:15px;
  font-weight:bold;
}

/* =========================
   NAVBAR FIX
========================= */

.navbar{
  position:fixed;
  top:0;
  width:100%;
  background:#2563eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 20px;
  z-index:1000;
}

/* =========================
   DARK MODE
========================= */

body.dark{
  background:#0f172a;
  color:white;
}

/* =========================
   DESTINATII PAGE
========================= */

.destinations-page{
  margin-top:120px;
  text-align:center;
  padding:20px;
}

.country-cards{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  margin:40px;
}

.country-card{
  width:280px;
  background:white;
  padding:20px;
  border-radius:20px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
  transition:0.3s;
}

.country-card:hover{
  transform:translateY(-10px);
}

body.dark .country-card{
  background:#1e293b;
  color:white;
}

.map-section{
  padding:40px;
  text-align:center;
}

.map-section iframe{
  border:none;
  border-radius:20px;
  margin-top:20px;
}

/* =========================
   EXPERIENȚA MEA ERASMUS
========================= */

.experience-hero{
    padding-top:140px;
    text-align:center;
    padding-bottom:60px;
}

.experience-hero h1{
    font-size:55px;
    color:#222;
    margin-bottom:20px;
}

.experience-hero p{
    font-size:20px;
    max-width:800px;
    margin:auto;
    color:#555;
}

.experience-container{
    width:90%;
    max-width:1000px;
    margin:auto;
}

.experience-text{
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    margin-bottom:60px;
}

.experience-text h2{
    color:#222;
    margin-bottom:20px;
    font-size:35px;
}

.experience-text p{
    margin-bottom:20px;
    line-height:1.8;
    font-size:18px;
}

.gallery-section{
    width:90%;
    max-width:1200px;
    margin:auto;
    margin-bottom:80px;
}

.gallery-section h2{
    text-align:center;
    font-size:40px;
    margin-bottom:40px;
    color:#222;
}

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.gallery-card{
    overflow:hidden;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
    transition:0.4s;
}

.gallery-card:hover{
    transform:translateY(-10px);
}

/* 🔥 FIX AICI: POZE MAI MICI */
.gallery-card img{
    width:100%;
    height:220px; /* înainte era 400px */
    object-fit:cover;
    display:block;
}

.skills-section{
    width:90%;
    max-width:1200px;
    margin:auto;
    margin-bottom:80px;
}

.skills-section h2{
    text-align:center;
    font-size:40px;
    margin-bottom:40px;
    color:#222;
}

.skills-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.skill-card{
    background:white;
    padding:35px;
    border-radius:25px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.4s;
}

.skill-card:hover{
    transform:scale(1.05);
}

.skill-card h3{
    font-size:24px;
    margin-bottom:15px;
    color:#222;
}

.skill-card p{
    color:#555;
    line-height:1.7;
}

@media(max-width:768px){

    .experience-hero h1{
        font-size:38px;
    }

    .gallery-card img{
        height:300px;
    }

}

/* =========================
   DARK MODE FINAL
========================= */

body.dark {
  background: #121826;
  color: #e6e6e6;
}

body.dark .navbar {
  background: #0f172a;
}

body.dark .card {
  background: #1e293b;
  color: #e6e6e6;
}

body.dark footer {
  background: #0f172a;
}