/* ===== 1. Definim @font-face pentru Sharp Sans ExtraBold (Local) ===== */
@font-face {
    font-family: 'Sharp Sans Extrabold';
    font-style: normal;
    font-weight: normal;
    src: local('Sharp Sans Extrabold'), 
         url('/css/fonts/SharpSansFontFamily/SharpSansExtrabold.woff') format('woff');
    font-display: swap;
}

/* ===== 2. Reglări globale ===== */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    /* Montserrat pentru restul textului, Sharp Sans la heading-uri */
    font-family: 'Montserrat', sans-serif;
    background-color: #040404;
    color: #e0e0e0;
    scroll-behavior: smooth;
}

/* ===== CUSTOM SCROLLBAR ===== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(4, 4, 4, 0.8) 0%, rgba(13, 13, 13, 0.9) 100%);
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1DB954 0%, #18a84a 50%, #1DB954 100%);
    border-radius: 6px;
    border: 2px solid rgba(29, 185, 84, 0.2);
    box-shadow: 
        0 0 10px rgba(29, 185, 84, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #20d463 0%, #1DB954 50%, #20d463 100%);
    box-shadow: 
        0 0 15px rgba(29, 185, 84, 0.6),
        0 0 25px rgba(29, 185, 84, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #25e86b 0%, #20d463 50%, #25e86b 100%);
    box-shadow: 
        0 0 20px rgba(29, 185, 84, 0.8),
        0 0 30px rgba(29, 185, 84, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-corner {
    background: rgba(4, 4, 4, 0.9);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1DB954 rgba(4, 4, 4, 0.8);
}

/* For elements with custom scrollbars */
.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(4, 4, 4, 0.6);
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1DB954 0%, #18a84a 100%);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.3);
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #20d463 0%, #1DB954 100%);
    box-shadow: 0 0 12px rgba(29, 185, 84, 0.5);
}

/* ===== NAVBAR GENERAL ===== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  gap: 40px;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===== NAVBAR SECTIONS ===== */
.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 1 auto;
}

.navbar-left {
  justify-content: flex-end;
  /* margin-right: 20px; */
}

.navbar-right {
  justify-content: flex-start;
  /* margin-left: 20px; */
}

.navbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.navbar-center a img {
  height: 80px;
  width: 80px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.navbar-center a:hover img {
  transform: scale(1.05);
}

/* ===== NAVBAR LINKS ===== */
.navbar-left a,
.navbar-right a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  padding: 4px 2px;
}

.navbar-left a:hover,
.navbar-right a:hover {
  color: #1DB954;
  text-shadow: 0 0 8px rgba(29, 185, 84, 0.7);
}

.navbar-left a::after,
.navbar-right a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #f39c12;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-left a:hover::after,
.navbar-right a:hover::after {
  width: 100%;
  left: 0;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  padding-left: 16px;
  padding-right: 8px;
  z-index: 1100;
}

/* Hide mobile menu on desktop */
.mobile-menu,
.mobile-overlay {
  display: none;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 16px;
  }

  .navbar-left,
  .navbar-right {
    display: none;
  }

  .navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-center a img {
    height: 70px;
    width: 70px;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    z-index: 1200;
    order: 2;
  }

  /* Show mobile menu on mobile */
  .mobile-menu,
  .mobile-overlay {
    display: block;
  }

  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 70px 20px 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    box-shadow: 
      -10px 0 30px rgba(0, 0, 0, 0.5),
      inset 0 0 50px rgba(29, 185, 84, 0.05);
  }

  .mobile-menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
    max-width: -webkit-fill-available;
    animation: menuSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
      -15px 0 40px rgba(0, 0, 0, 0.6),
      inset 0 0 80px rgba(29, 185, 84, 0.1),
      0 0 20px rgba(29, 185, 84, 0.2);
  }

  /* Close button */
  .mobile-close {
    position: absolute;
    top: 38px;
    right: -2px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
  }

  .mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }

  .close-icon {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    user-select: none;
    display: block;
    position: relative;
    top: -1px;
  }



  @keyframes menuSlideIn {
    0% {
      right: -100vw;
      opacity: 0;
    }
    100% {
      right: 0;
      opacity: 1;
    }
  }

  .mobile-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 25px 0;
    margin: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    letter-spacing: 0.5px;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    animation: linkFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .mobile-menu a:nth-child(2) { animation-delay: 0.1s; }
  .mobile-menu a:nth-child(3) { animation-delay: 0.2s; }
  .mobile-menu a:nth-child(4) { animation-delay: 0.3s; }
  .mobile-menu a:nth-child(5) { animation-delay: 0.4s; }

  .mobile-menu a:hover {
    color: #1DB954;
    padding-left: 15px;
    text-shadow: 0 0 15px rgba(29, 185, 84, 0.6);
    transform: translateX(0) scale(1.02);
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.1) 0%, transparent 100%);
  }

  @keyframes linkFadeIn {
    0% {
      opacity: 0;
      transform: translateX(20px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1DB954;
    transition: width 0.3s ease;
  }

  .mobile-menu a:hover::after {
    width: 100%;
  }

  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 12px;
  }

  .navbar-center a img {
    height: 60px;
    width: 60px;
  }

  .hamburger {
    margin-left: auto;
  }

  .mobile-menu {
    width: 100%;
    right: -100vw;
    padding: 60px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 100px;
  }



  .mobile-menu a {
    font-size: 17px;
    padding: 22px 0;
    margin: 6px 0;
    text-align: center;
    letter-spacing: 0.3px;
    width: 100%;
  }
}
/* ===== 5. Secțiuni Alternate ===== */
.alternate {
    background-color: #0d0d0d;
}

.section.alternate p {
    color: #d0d0d0;
}

/* ===== 6. Headings (Sharp Sans ExtraBold) ===== */
h2 {
    font-family: 'Sharp Sans Extrabold', 'Montserrat', sans-serif !important;
    font-size: clamp(2.3rem, 5vw, 3.3rem) !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    position: relative;
    opacity: 0;
    animation: titleReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    /* Eliminat text-transform => h2 NU mai este uppercase */
}

h2:hover {
    color: #ffffff !important; /* Rămâne alb la hover */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Glow subtil */
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #1db954);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

h2:hover::after {
    width: min(100px, 30%);
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 7. Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    h2 {
        animation: none;
        opacity: 1;
    }
    h2:hover {
        transform: none;
        text-shadow: none;
    }
}

/* ===== 8. Print Styles ===== */
@media print {
    h2 {
        color: #000000;
        animation: none;
        opacity: 1;
    }
    h2::after {
        display: none;
    }
}


/* ===== 10. Button Effects ===== */
.button, .filter-btn, .navbar a {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}





#gallery {
    scroll-margin-top: 100px;
  }
  #hub {
    scroll-margin-bottom: 100px;
  }
  #team {
    scroll-margin-top: 100px;
  }



/* Desktop: discret dreapta sus */
.language-switcher {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.language-switcher:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.language-switcher a {
  color: white;
  text-decoration: none;
  margin: 0 4px;
  font-weight: bold;
}

.language-switcher a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .language-switcher {
    position: fixed;
    top: 16px;
    left: 58%;
    transform: translateX(-50%);
    font-size: 13px;
    padding: 5px 8px;
    background-color: transparent;
    z-index: 9999;
  }
}

.language-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2b2b2b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.language-toast.show {
  opacity: 1;
  pointer-events: auto;
}

.language-toast.hidden {
  display: none;
}




