/* ===== 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 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    scroll-behavior: smooth;
    background: 
      radial-gradient(ellipse 150% 100% at 0% 50%, rgba(29, 185, 84, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 150% 100% at 100% 50%, rgba(23, 167, 74, 0.06) 0%, transparent 60%),
      linear-gradient(to right, #000000 0%, #030303 50%, #000000 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #1db954 #0a0a0a;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    /* Montserrat pentru restul textului, Sharp Sans la heading-uri */
    font-family: 'Montserrat', sans-serif;
    background: transparent;
    color: #e0e0e0;
    scroll-behavior: smooth;
}

/* ===== NAVBAR GENERAL ===== */
.navbar {
  display: flex;
  justify-content: flex-start;
  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;
  gap: 30px;
  box-sizing: border-box;
}

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

.navbar a img {
  height: 60px;
  width: 60px;
  display: block;
  cursor: pointer;
}

/* ===== LINKS ===== */
.navbar-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.navbar-links 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-links a:hover {
  color: #1DB954;
  text-shadow: 0 0 8px rgba(29, 185, 84, 0.7);
}

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

.navbar-links 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;
}

.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-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 58px;
    right: 10px;
    width: 180px;
    padding: 14px 10px;
    text-align: left;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
  }

  .navbar.active .navbar-links {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .navbar-links a {
    margin: 6px 0;
    padding: 8px 0;
    font-size: 14.5px;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}
/* ===== 5. Secțiuni Alternate ===== */
.alternate {
    /* Background-ul este setat în CSS-ul specific al secțiunii */
    background: transparent;
}

.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, #1db954, #17a74a);
    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;
}

/* ===== Custom Scrollbar (Green) ===== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #1db954;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #17a74a;
}