/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
}

/* ============================================
   THREE.JS CANVAS
   ============================================ */

#globe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* ============================================
   UI CONTAINER
   ============================================ */

.ui-container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

/* ============================================
   TOP SECTION (Title + Buttons)
   ============================================ */

   .top-section {
    position: absolute;
    top: var(--header-h); /* IMPORTANT */
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    pointer-events: auto;

    /* fundal subtil negru ca să se vadă peste glob */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    backdrop-filter: blur(2px);
}

.main-title {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 40px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
}

.city-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 100%;
}

/* butoane mai contrastante */
.city-btn {
    padding: 0.6rem 1.4rem;
    background: rgba(0, 0, 0, 0.8);              /* 🖤 fundal închis */
    border: 1px solid rgba(252, 195, 0, 0.7);    /* contur auriu */
    border-radius: 999px;
    color: #FCC300;                               /* text auriu */
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    pointer-events: auto;
    white-space: nowrap;                          /* nu se rup pe 2 rânduri */
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);      /* să nu se piardă pe fundal deschis */
}

.city-btn:hover {
    background: rgba(252, 195, 0, 0.15);
    border-color: rgba(252, 195, 0, 1);
    box-shadow: 0 0 20px rgba(252, 195, 0, 0.5);
    transform: translateY(-2px);
}

.city-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(252, 195, 0, 0.4);
}

.city-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(0px);
}

.city-btn:active {
    transform: translateY(0);
}

/* ============================================
   INFO PANEL (Left side after selection)
   ============================================ */

.info-panel {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 40%;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.info-panel.visible {
    opacity: 1;
    pointer-events: auto;
}

.city-name {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 0.5rem;

    text-shadow:
        0 0 12px rgba(0,0,0,0.85),
        0 0 24px rgba(0,0,0,0.6);
}

.city-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.15em;

    text-shadow:
        0 0 8px rgba(0,0,0,0.7),
        0 0 16px rgba(0,0,0,0.4);
}

.city-description {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    max-width: 500px;

    text-shadow:
        0 0 6px rgba(0,0,0,0.85),
        0 0 12px rgba(0,0,0,0.5);
}


.city-label.clickable {
    text-decoration: underline;
}

.city-contact {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-link {
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.85;
}

.contact-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-text {
    font-size: 0.9rem;
    opacity: 0.85;
}

.city-socials {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.social-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.social-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    display: block;
}

.social-icon:hover {
    color: #000000;
    background: #FCC300;
    border-color: #FCC300;
    box-shadow: 0 0 18px rgba(252, 195, 0, 0.6);
    transform: translateY(-1px) scale(1.03);
}







/* ============================================
   RESPONSIVE DESIGN (Mobile)
   ============================================ */

   @media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    /* bara de butoane devine un singur rând scrollabil */
    .city-buttons {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;          /* ❗ nu se mai rup pe mai multe rânduri */
        overflow-x: auto;           /* scroll orizontal */
        padding-bottom: 0.25rem;
    }

    .city-buttons::-webkit-scrollbar {
        height: 4px;
    }

    .city-buttons::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    .city-buttons::-webkit-scrollbar-thumb {
        background: rgba(252, 195, 0, 0.6);
        border-radius: 999px;
    }

    .city-btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.8rem;
    }

    .info-panel {
        left: 5%;
        right: 5%;
        max-width: 90%;
        top: auto;
        bottom: 10%;
        transform: none;
    }

    .city-name {
        font-size: 2rem;
    }

    .city-label {
        font-size: 0.8rem;
    }

    .city-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.2rem;
    }

    .city-name {
        font-size: 1.5rem;
    }
}



.site-header {
    position: fixed;               /* ca să fie mereu peste hero & pagină */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important;  /* transparent la top */
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0); /* fără umbră la top */
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Când dau scroll, abia atunci devine închis la culoare */
.site-header.scrolled {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.0) 100%
    ) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.site-header.scrolled {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.0) 100%
    );
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    position: relative;
}

.nav-logo {
    flex: 1;
    display: flex;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
    padding-bottom: 0.25rem;
}

.main-nav a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.nav-cta {
    display: inline-flex;
    padding: 0.65rem 1.2rem;
    background: transparent;
    color: #FCC300;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid #FCC300;
    box-shadow: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(252, 195, 0, 0.12);
    box-shadow: 0 0 18px rgba(252, 195, 0, 0.25);
}

.nav-cta-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- NAVBAR (internal page style) --- */
:root {
    --header-h: 86px; /* ajustezi dacă vrei */
  }
  
  @media (max-width: 768px) {
    :root { --header-h: 74px; }
  }
  
  /* Navbar fixed (nu mai împinge layout-ul) */
  .site-header.site-header--page{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  }
  
  /* Make sure globe canvas stays behind */
  #globe-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
  }
  
  /* Your UI above canvas, below navbar */
  .ui-container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    padding-top: 0; /* IMPORTANT */
  }

  /* ---------- MOBILE NAV (required for hamburger) ---------- */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-right .nav-cta {
        display: none;
    }

    .nav-toggle {
      display: flex;
    }
  
    .main-nav {
      position: fixed !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100vh !important;
      left: 0 !important;
      top: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      background: rgba(0, 0, 0, 0.98);
      backdrop-filter: blur(10px);
      display: flex !important;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 3000;
      padding: 0;
      margin: 0;
      opacity: 0;
      visibility: hidden;
      transform: translateX(-100%);
      transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
  
    .main-nav--open {
      opacity: 1;
      visibility: visible;
      transform: translateX(0) !important;
    }
  
    .main-nav ul {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      text-align: center;
      list-style: none;
      padding: 0;
      margin: 0;
      width: 100%;
      max-width: 300px;
    }

    .main-nav ul li {
      list-style: none;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .main-nav a {
      font-size: 1.2rem;
      padding: 0.5rem 1rem;
      text-decoration: none;
      text-align: center;
      display: block;
      width: 100%;
    }

    .main-nav a::after {
      display: none;
    }

    .nav-cta-mobile {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav .nav-cta-mobile .nav-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.9rem 1.6rem;
      background: transparent;
      color: #FCC300;
      border: 1px solid #FCC300;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-decoration: none;
      text-align: center;
      transition: all 0.3s ease;
      width: auto;
      margin: 0 auto;
    }

    .main-nav .nav-cta-mobile .nav-cta:hover {
      background: rgba(252, 195, 0, 0.12);
      box-shadow: 0 0 18px rgba(252, 195, 0, 0.25);
    }

    .nav-close {
      position: fixed;
      top: 2rem;
      right: 2rem;
      width: 40px;
      height: 40px;
      background: transparent;
      border: none;
      color: #fff;
      font-size: 2.5rem;
      line-height: 1;
      cursor: pointer;
      z-index: 3001;
      display: none;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .main-nav--open .nav-close {
      display: flex !important;
    }

    .nav-close:hover {
      color: #FCC300;
      transform: rotate(90deg);
    }
  }

/* ============================================
   LOADING SCREEN
   ============================================ */

.page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #050608;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader__stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loader__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.loader__logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader__logo {
    height: 78px;
    width: auto;
    filter: drop-shadow(0 0 25px rgba(252, 195, 0, 0.6)) 
            drop-shadow(0 0 50px rgba(252, 195, 0, 0.3))
            drop-shadow(0 0 80px rgba(252, 195, 0, 0.15));
    animation: loaderGlow 2s ease-in-out infinite;
}

@keyframes loaderGlow {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(252, 195, 0, 0.6)) 
                drop-shadow(0 0 50px rgba(252, 195, 0, 0.3))
                drop-shadow(0 0 80px rgba(252, 195, 0, 0.15));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(252, 195, 0, 0.8)) 
                drop-shadow(0 0 70px rgba(252, 195, 0, 0.5))
                drop-shadow(0 0 100px rgba(252, 195, 0, 0.25));
        transform: scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader__logo {
        animation: none;
        filter: drop-shadow(0 0 25px rgba(252, 195, 0, 0.7)) 
                drop-shadow(0 0 50px rgba(252, 195, 0, 0.4));
    }
}

.loader__progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 280px;
}

.loader__progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.loader__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FCC300 0%, rgba(252, 195, 0, 0.8) 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(252, 195, 0, 0.5);
}

.loader__text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    margin: 0;
}

@media (max-width: 768px) {
    .loader__logo {
        height: 65px;
    }

    .loader__progress {
        width: 240px;
    }

    .loader__text {
        font-size: 0.7rem;
    }
}

  @media (max-width: 768px) {
    .info-panel {
      left: 5%;
      right: 5%;
      max-width: 90%;
      top: auto;
      bottom: 16px;
      transform: none;
  
      max-height: calc(100vh - var(--header-h) - 190px); 
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      padding-right: 6px; /* mic scroll spacing */
    }
  }

  /* Close X button inside mobile menu */
.nav-close{
    display: none;
    position: absolute;
    top: 22px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
  
  .nav-close:hover{
    background: rgba(252,195,0,0.15);
    border-color: rgba(252,195,0,0.65);
    color: #FCC300;
  }
  
  @media (max-width: 768px){
    .nav-close{ display: inline-flex; }
  }