
.company-structure-bg {
  position: relative;
  width: 100%;
  padding: 120px 20px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg);
}

.company-structure-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(3px);
}

.company-structure-glass {
  position: relative;
  z-index: 4;
  max-width: 1000px;
  margin: auto;
  padding: 50px;
  border-radius: 20px;

  background: var(--glass-light, rgba(255,255,255,0.10));
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow-strong);

  transform-style: preserve-3d;
  animation: floatIn 1.1s ease forwards;
  opacity: 0;
}

@keyframes floatIn {
  0% { opacity: 0; transform: translateY(40px) translateZ(-80px); }
  100% { opacity: 1; transform: translateY(0) translateZ(0); }
}

.company-structure-glass h1 {
  font-size: 2.4rem;
  color: var(--color-text);
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.company-structure-glass p {
  color: var(--color-text
  );
  margin-bottom: 40px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.6;
  padding: 1rem;
}

.structure-stats {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.stat-item{
    color: var(--color-bg);
}

.stat-line strong {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  text-shadow:
    0 2px 6px rgba(0,0,0,0.35),
    0 8px 14px rgba(0,0,0,0.5);
  transform: translateZ(30px);
}

.stat-line span {
  color: var(--color-text-muted);
  font-size: .85rem;
}

.stat-bar {
  width: 100%;
  height: 7px;
  margin-top: 10px;
  border-radius: 10px;

  background: rgba(255,255,255,0.15);
  position: relative;

  box-shadow: inset 0 2px 5px rgba(0,0,0,0.4),
              0 3px 6px rgba(0,0,0,0.4);
}

.stat-bar .bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 10px;

  box-shadow:
    0 3px 10px rgba(0,0,0,0.4),
    0 0 8px rgba(255,255,255,0.3) inset;

  background: var(--color-primary);
  transition: width 1.8s cubic-bezier(.25,.8,.25,1);
}


.highlight-span {
  background: linear-gradient(90deg, var(--color-primary), transparent);
  padding: 0 6px;
}


.small-accent {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-left: 6px;
}

.head-accent {
  display: block;
  width: 120px;
  height: 4px;
  background: var(--color-primary);
  margin-top: 10px;
  border-radius: 3px;
  box-shadow: var(--glow-primary);
}


.top-line-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 6px 6px 0;
  z-index: 5;
}


.city-line {
  width: 20px;
  height: 3px;
  background: var(--color-primary);
  display: inline-block;
  margin-right: 6px;
  border-radius: 3px;
}


.mid-divider {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  margin: 12px 0;
  opacity: 0.4;
}


.link-underline {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  margin-top: 3px;
  opacity: 0.4;
  transition: var(--animation-smooth);
}





@media(max-width: 700px) {
  .company-structure-glass {
    padding: 30px;
  }

  .stat-line strong {
    font-size: 1.6rem;
  }
}


#locations {
  position: relative;
  padding: 100px 20px;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.locations-head {
  text-align: center;
  margin-bottom: 60px;
}

.locations-head h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.locations-head p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}


.location-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  perspective: 1500px;
}

.location-card {
  position: relative;
  width: 300px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

.location-card:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}


.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.location-card:hover .card-bg {
  transform: scale(1.05);
  filter: brightness(0.8);
}


.card-glass {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(5px);
  background: var(--glass-light);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-strong);
  transition: transform 0.5s ease;
}


.location-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 5px;
}

.location-header i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.location-header{
  text-transform: uppercase;
}


.country {
  font-size: 0.9rem;
  color: black;
  font-weight: 800;
  margin-bottom: 15px;
}


.stats {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.stat-item h3 {
  font-size: 1.2rem;
  padding: 0.3rem;
  font-weight: 800;
  color: var(--color-bg)
}

.stat-item strong {
  font-size: 1.4rem;
  color: var(--color-text);
}


.details-btn {
  margin-top: 12px;
  background: var(--color-primary);
  border: 1px solid rgba(228, 54, 54, 0.35);
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--animation-smooth);
  box-shadow: inset 0 0 0 0 var(--color-primary);
}

/* text */
.details-btn .detail-link {
  position: relative;
  color: white;
  font-weight: 600;
  display: inline-block;
}

/* underline stays */
.details-btn .link-underline {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  opacity: 0.1;
  margin-top: 4px;
  transition: var(--animation-smooth);
}

/* hover effect */
.details-btn:hover {
  box-shadow: inset 0 -60px 0 0 rgba(228, 54, 54, 0.08);
  transform: translateY(-2px);
}

.details-btn:hover .link-underline {
  opacity: 1;
  transform: scaleX(1.1);
}

/* active click */
.details-btn:active {
  transform: translateY(0);
}


.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  height: fit-content;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.popup-content {
  position: relative;
  max-width: 500px;
  max-height: 100vh; 
  margin: 50px auto;
  overflow-y: auto; 
  background: var(--color-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  animation: popupIn 0.6s ease forwards;
  padding: 50px; 
}


@keyframes popupIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

.popup-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.popup-details {
  padding: 20px;
  color: var(--color-text);
}

.popup-details h2 {
  margin-bottom: 10px;
}

.popup-details p {
  color: var(--color-text-muted);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--color-text);
  cursor: pointer;
}


@media (max-width: 900px) {
  .location-cards {
    gap: 25px;
    justify-content: center;
  }

  .location-card {
    width: 250px;
    height: 350px;
  }

  .popup-image {
    height: 300px;
  }
}

@media (max-width: 500px) {
  .location-card {
    width: 100%;
    height: 300px;
  }
}
