@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #0e0e0e;
  color: #fff;
  scroll-behavior: smooth;
}

body.hero-active header.hero {
  position: fixed;
}
body:not(.hero-active) header.hero {
  position: relative;
}
html {
  scroll-behavior: smooth;
}


/* ==========================================
   🔹 SECȚIUNEA HERO (PAGINA PRINCIPALĂ)
   ========================================== */

/* HERO full-screen, fix pe ecran */
header.hero {
  position: fixed;              /* rămâne fix pe ecran */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;                /* ocupă întregul ecran */
  background: url(img/background.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1000;
}

/* Overlay semi-transparent peste imagine */
header.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Conținutul din hero (text, butoane etc.) */
.hero-content {
  position: relative;
  z-index: 2;                   /* peste overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

/* Titlul principal */
.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: 2px;
  animation: slideDown 1.2s ease;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #fff;
}

/* Subtitlu / text secundar */
.hero-content p {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
  color: #eee;
}
/* ===============================================
   🔹 GALERIE FOTO
   =============================================== */
.gallery {
  display: none;
  min-height: 100vh;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.gallery.visible {
  display: block;
  animation: fadeIn 1s ease forwards;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.photo-gallery {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.slides-container {
display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  touch-action: pan-y; /* permite glisarea orizontală fără să deranjeze scroll-ul vertical */
}

.slide {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  max-height: 60vh;
  border-radius: 12px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: rgba(255,255,255,0.4);
}

.prev { left: 10px; }
.next { right: 10px; }



/* Fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Alte sectiuni */
section {
  padding: 100px 10%;
  text-align: center;
}
.logo{
  width: 700px;
  height: fit-content;
}
.logo img{
  width: 100%;
}
   

/* Butoanele cu iconițe */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* se rearanjează pe mai multe rânduri dacă e nevoie */
  justify-content: center;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ff0055;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.icon-btn i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

/* Hover inovativ */
.icon-btn:hover {
  background: #ff3388;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.icon-btn:hover i {
  transform: rotate(20deg) scale(1.2);
}

/* Responsive: pe mobil se pun pe două rânduri */
@media (max-width: 768px) {
  .hero-buttons {
    gap: 15px;
  }

  .icon-btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .icon-btn i {
    font-size: 18px;
  }
  .logo{
  width: 100%;
  height: fit-content;
}
}

    button {
      padding: 0.8rem .1rem;
      font-size: 1rem;
      border: none;
      border-radius: 30px;
      background: linear-gradient(45deg, #ff0000, #ff8800);
      color: white;
      cursor: pointer;
      transition: 0.3s;
      text-transform: uppercase;
      text-decoration: solid;
      margin-top: 3px;
    }

    button:hover {
      transform: scale(1.1);
      background: linear-gradient(45deg, #ff8800, #ff0000);
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ==========================================
       🔹 BUTOANE FIXE DE CONTACT
    ========================================== */
    .floating-contact {
      position: fixed;
      bottom: 25px;
      right: 25px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      z-index: 9999;
    }

    /* Buton comun */
    .float-btn {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      color: white;
      text-decoration: none;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
    }

    .float-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    /* Buton apel */
    .float-btn.phone {
      background: linear-gradient(135deg, #007bff, #00b3ff);
      animation: pulse-blue 2.5s infinite;
    }

    /* Buton WhatsApp */
    .float-btn.whatsapp {
      background: linear-gradient(135deg, #25d366, #1ebe5d);
      animation: pulse-green 2.5s infinite;
    }

    /* Efecte pulsante */
    @keyframes pulse-blue {
      0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5); }
      70% { box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); }
      100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
    }

    @keyframes pulse-green {
      0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
      70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
      100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }

    /* Versiune mobil */
    @media (max-width: 600px) {
      .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
      }
      .hero-content h1 {
      font-size: 2rem;
      letter-spacing: 2px;
      animation: slideDown 1.2s ease;
    }
    }

    /* ==========================================
       🔹 EFECT PORTAL SF
    ========================================== */
    .portal-effect {
      position: fixed;
      inset: 0;
      background: radial-gradient(circle at center, var(--portal-color, #ff0000), #000 70%);
      z-index: 99999;
      animation: portalZoom 1s ease forwards;
      pointer-events: none;
    }

    @keyframes portalZoom {
      0% {
        transform: scale(0);
        opacity: 0.8;
      }
      60% {
        transform: scale(2);
        opacity: 1;
      }
      100% {
        transform: scale(6);
        opacity: 0;
      }
    }

button {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  background: linear-gradient(45deg, #ff0000, #ff8800);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #ff8800, #ff0000);
}

section {
  padding: 100px 10%;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about p{
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px 0;
  font-size: 1.2rem;
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

footer {
  background: #111;
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll fade-in effect */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ===============================================
   🔹 SECTIUNEA DESPRE PROIECT
   =============================================== */
.about {
  display: none;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  border-top: 2px solid #ff2a2a;
}

.about.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ff2a2a;
  text-shadow: 0 0 10px rgba(255, 42, 42, 0.6);
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.btn-container {
  margin-top: 40px;
}



/* 🎬 Animații fade */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(40px); }
}


/* ==============================
   SECTIUNEA EXERCITII (REDESIGN)
============================== */
.exercises-lab {
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  color: #fff;
  padding: 60px 20px;
  border-top: 2px solid #ff2a2a;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 100%;
  box-shadow: 0 0 25px rgba(255, 42, 42, 0.2);
  overflow: hidden;
}

.exercises-lab h2 {
  color: #ff2a2a;
  font-size: 1.8rem;
  text-shadow: 0 0 8px rgba(255, 42, 42, 0.6);
  margin-bottom: 20px;
}

/* =========================================
   CONTAINER GENERAL – slider pe mobile,
   flex-wrap pe desktop
========================================= */
.exercises-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  justify-content: flex-start;
}

/* Ascundem scrollbarul la mobile pentru look curat */
.exercises-slider::-webkit-scrollbar {
  display: none;
}
.exercises-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================
   CARDURILE DE EXERCITII
========================================= */
.exercise-card {
  flex: 0 0 100%;
  max-width: 100%;
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid #ff2a2a;
  border-radius: 15px;
  padding: 30px;
  scroll-snap-align: center;
  text-align: left;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.exercise-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255, 42, 42, 0.4);
}

.exercise-card h3 {
  color: #0b74de;
  font-size: 1rem;
  margin-bottom: 10px;
}

.exercise-card ul {
  margin-left: 25px;
  list-style: square;
}

.exercise-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.exercise-card p{
  font-size: .8rem;
}


.exercise-card .note {
  margin-top: 15px;
  font-style: italic;
  color: #ccc;
  text-align: center;
  font-size: .8rem;
  font-family: 'Poppins', sans-serif; /* sau alt font dorit */
}
.exercises-lab pre {
  background: rgba(255, 42, 42, 0.05);
  border: 1px solid #ff2a2a;
  border-radius: 8px;
  padding: 10px;
  overflow-x: auto; /* permite scroll orizontal dacă e prea lung codul */
  white-space: pre-wrap; /* sau pre pentru păstrarea exactă a indentării */
  word-wrap: break-word; /* sparge cuvinte lungi */
}


.time-limit {
  color: #0b74de;
  font-weight: bold;
  margin-bottom: 25px;
}

/* =========================================
   SCROLL HINT
========================================= */
.scroll-hint {
  color: #888;
  font-size: 0.9rem;
  margin-top: 15px;
  text-align: center;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* =========================================
   DESKTOP – grilă elegantă fără scroll
========================================= */
@media (min-width: 900px) {
  .exercises-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  .exercise-card {
    flex: 1 1 calc(33.333% - 30px);
    max-width: 400px;
    margin: 0;
  }

  .scroll-hint {
    display: none; /* ascundem textul de scroll pe desktop */
  }
  
}

/* =========================================
   TABLETE – 2 carduri pe rând
========================================= */
@media (min-width: 600px) and (max-width: 899px) {
  .exercise-card {
    flex: 0 0 80%;
    max-width: 500px;
  }
 .exercise-card ul {
  margin-left: 25px;
  list-style: square;
}

.exercise-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}
}
@media (max-width: 600px) {
  .exercise-card {
    font-size: .8rem;
  }
  .exercise-card p{
    font-size: .9rem;
  }
 .exercise-card ul {
  font-size: .8rem;
}

.exercise-card li {
  font-size: .7rem;
}


}



/* ==============================
   SECTIUNEA ECHIPA
============================== */
.team {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a, #111);
  color: var(--text);
  width: 100%;
}

.team h2 {
  color: #ff3355;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team-intro {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1600px;
  margin: 0 auto;
}.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 coloane pe ecrane mai mici */
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 coloană pe mobil */
  }
}


.member {
  border-radius: 20px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.member img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.member h3 {
  margin: 8px 0;
  font-size: 1.3rem;
}

.member .role {
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.member .desc {
  font-size: 0.85rem;
  line-height: 1.4;
}
/* Card descriptiv student */
.desc-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 20px 25px;
  margin-top: 15px;
  line-height: 1.6;
  font-size: 0.95rem;
  transition: 0.3s;
}

.desc-card p {
  margin-bottom: 12px;
  
}
.desc-card p a {
  color: #00ffee;           /* culoarea link-ului */
  text-decoration: underline; /* subliniere */
  font-weight: 500;          /* grosimea fontului */
  transition: 0.3s;
}

.desc-card p a:hover {
  color: #0bb;               /* culoare la hover */
  text-decoration: none;     /* elimină sublinierea la hover dacă vrei */
}


.desc-card a.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: linear-gradient(45deg, #00ffee, #0bb);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.desc-card a.project-link:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #0bb, #00ffee);
}

/* Efect hover pe card */
.member.student-1:hover .desc-card {
  background: rgba(0, 238, 255, 0.08);
  border-color: #00ffee;
  box-shadow: 0 8px 20px rgba(0, 255, 238, 0.3);
}


/* 🎓 Mentor – elegant, profesional */
.member.mentor {
  background: linear-gradient(135deg, #1e1e1e, #333);
  border: 2px solid #ff3355;
}
.member.mentor h3 {
  color: #ff3355;
}
.member.mentor .role {
  color: #ffd700;
}

/* ⚙️ Popescu Matei Rafael – stil "tech neon" */
.member:nth-child(2) {
  background: radial-gradient(circle at top, #0f0f0f, #1a1a1a);
  border: 2px solid #00ffee;
  box-shadow: 0 0 15px rgba(0, 255, 238, 0.4);
}
.member:nth-child(2) h3 {
  color: #00ffee;
}
.member:nth-child(2) .role {
  color: #00ccff;
}

/* 🎮 Dascălu Mihai – stil "gamer / neon violet" */
.member:nth-child(3) {
  background: linear-gradient(135deg, #1a0029, #3b0066);
  border: 2px solid #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}
.member:nth-child(3) h3 {
  color: #c084fc;
}
.member:nth-child(3) .role {
  color: #d8b4fe;
}

/* 🎨 Dascălu Maria Raluca – stil "creativ, pastel" */
.member:nth-child(4) {
  background: linear-gradient(135deg, #ffe0f0, #ffc7e2);
  color: #333;
  border: 2px solid #ff8ac9;
  box-shadow: 0 0 15px rgba(255, 182, 193, 0.5);
}
.member:nth-child(4) h3 {
  color: #d63384;
}
.member:nth-child(4) .role {
  color: #ff1493;
}
.member:nth-child(4) .desc {
  color: #555;
}

/* ✨ Animație subtilă la apariție */
.member {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

.member:nth-child(1) { animation-delay: 0.2s; }
.member:nth-child(2) { animation-delay: 0.4s; }
.member:nth-child(3) { animation-delay: 0.6s; }
.member:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================
   🔹 BUTOANE FIXE DE CONTACT
   Poziționate în colțul dreapta-jos
======================================= */
.floating-contact {
  position: fixed;
  top: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999; /* asigură că apar deasupra tuturor */
}

/* 🔹 Stil general pentru ambele butoane */
.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

/* 🔹 Efect de hover */
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* 🔹 Telefon (albastru) */
.float-btn.phone {
  background: linear-gradient(135deg, #007bff, #00b3ff);
  animation: pulse-blue 2.5s infinite;
}

/* 🔹 WhatsApp (verde) */
.float-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  animation: pulse-green 2.5s infinite;
}

/* 🔹 Animație pulsantă subtilă pentru atenție */
@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 🔹 Versiune mobil (puțin mai mici) */
@media (max-width: 600px) {
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ✨ Efect de portal */
.portal-effect {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #ff0000, #000 70%);
  z-index: 99999;
  animation: portalZoom 1s ease forwards;
  pointer-events: none;
}

@keyframes portalZoom {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  60% {
    transform: scale(2);
    opacity: 1;
  }
  100% {
    transform: scale(6);
    opacity: 0;
  }
}



/* ===============================================
   🔹 SECȚIUNEA PARTENERI / FOOTER
   =============================================== */
.partners {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  color: #fff;
  padding: 60px 20px 30px;
  margin-top: auto;
  position: relative;
  bottom: 0;
}

.partners h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partners-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.partner {
  flex: 0 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.partner img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner img:hover {
  transform: scale(1.1);
  filter: brightness(1) invert(0.1);
}

.partner p {
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 6px;
  color: #ccc;
}

/* 🔸 Versiune mobil */
@media (max-width: 768px) {
  .partners {
    padding: 40px 10px 20px;
  }
  .partners-grid {
    gap: 25px;
  }
  .partner img {
    max-width: 70px;
  }
  .partner p {
    font-size: 0.7rem;
  }
}




.project-link {
  display: inline-block;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.project-link:hover {
  background: #e60000;
}



.main-container {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 10;
}

/* ======= CEAS TEHNOLOGIC ======= */
.tech-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

.circle {
  position: relative;
  width: 180px;
  height: 180px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff, 0 0 60px #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hour-hand, .minute-hand, .second-hand {
  position: absolute;
  bottom: 50%;
  width: 3px;
  transform-origin: bottom center;
  border-radius: 2px;
}

.hour-hand { height: 45px; background: linear-gradient(to top, #0ff, #00f); }
.minute-hand { height: 70px; background: linear-gradient(to top, #0ff, #0f0); }
.second-hand { height: 90px; background: linear-gradient(to top, #f00, #ff0); }

.center-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}

.digital-time {
  margin-top: 15px;
  font-size: 1.5em;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
}

/* ======= VREMEA ======= */
.right-home-panel {
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  width: fit-content;
  animation: fadeIn 0.8s ease-out;
}

.weather-widget h3 {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.weather-icon {
  font-size: 3em;
  color: #fff;
  margin: 3px 0;
  animation: pulse 3s infinite ease-in-out;
}

.temperature {
  font-size: 2em;
  font-weight: bold;
  color: #ffffff;
}

.condition {
  font-size: 1.1em;
  color: #ffffff;
}

.loading {
  font-size: 1.1em;
  color: #ccc;
  animation: blink 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  50% { opacity: 0.4; }
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 768px) {


  .main-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 3px;
    min-width: 100%;
    z-index: 10;

  }

  .circle {
    width: 80px;
    height:80px;
  }

  .digital-time {
    font-size: 1.3em;
  }

  .right-home-panel {
    margin: 0;
    padding: 0;
  }

  .weather-icon {
    font-size: 2.5em;
  }
  
.hour-hand { height: 25px; background: linear-gradient(to top, #0ff, #00f); }
.minute-hand { height: 30px; background: linear-gradient(to top, #0ff, #0f0); }
.second-hand { height: 40px; background: linear-gradient(to top, #f00, #ff0); }


.weather-widget h3 {
  font-size: 1em;

}

.weather-icon {
  font-size: 2em;

}

.temperature {
  font-size: 1em;

}

.condition {
  font-size: 1.1em;

}

.loading {
  font-size: 1em;
}

}



/* PRELOADER VIDEO */
#preloader {
  position: fixed;
  inset: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#preloader video {
  animation: fadein 1s ease-in;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 🔹 STIL GENERAL PENTRU BUTONUL "Înapoi" */
.close-about,
.close-exercises,
.close-team,
.close-gallery {
  display: block;
  margin: 50px auto 30px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--clr-accent, #00bcd4);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.close-about:hover,
.close-exercises:hover,
.close-team:hover,
.close-gallery:hover {
  background: #008fa1;
  transform: scale(1.05);
}

/* 🔹 Poziționare coerentă */
.about .close-about,
.exercises-lab .close-exercises,
.team .close-team,
.gallery .close-gallery {
  text-align: center;
}

/* 🔹 MEDIA QUERY PENTRU MOBILE */
@media (max-width: 768px) {
  .close-about,
  .close-exercises,
  .close-team,
  .close-gallery {
    width: 90%;
    margin: 30px auto 50px;
    font-size: 1.1rem;
    padding: 14px;
    border-radius: 12px;
    position: relative;
    bottom: 0;
    display: block !important; /* asigură afișarea */
    z-index: 10;
  }

  /* Dacă secțiunile au overflow ascuns */
  .about,
  .exercises-lab,
  .team,
  .gallery {
    overflow: visible !important;
  }
}

/* 🔹 Siguranță suplimentară: vizibilitate forțată */
.close-about,
.close-exercises,
.close-team,
.close-gallery {
  visibility: visible !important;
  opacity: 1 !important;
}




/* ===== FOOTPATH SECTION ===== */
#footpath {
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a, #161616);
  color: white;
  padding: 80px 20px;
}

#footpath h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #ff0033;
}

.footpath-desc {
  color: #ccc;
  margin-bottom: 60px;
  font-size: 1.1rem;
}

.footpath-map {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  position: relative;
}

.node {
  background: #1a1a1a;
  border: 3px solid #ff0033;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.node i {
  font-size: 2rem;
  color: #ff0033;
}

.node span {
  margin-top: 8px;
  font-size: 0.9rem;
}

.node:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px #ff0033;
}

.connector {
  width: 80px;
  height: 4px;
  background: #ff0033;
  border-radius: 2px;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .footpath-map {
    flex-direction: column;
  }
  .connector {
    width: 4px;
    height: 60px;
  }
}
