/* ========================= */
/*      GLOBAL STYLES       */
/* ========================= */
.branches-body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0a192f;
  color: #e6f1ff;
  overflow-x: hidden;
  position: relative;
}

.branches-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(75, 134, 180, 0.1) 0%, transparent 50%);
  z-index: -2;
}

/* ========================= */
/*      HERO SECTION        */
/* ========================= */
.branches-hero {
  min-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(23, 42, 69, 0.7) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(90deg, #64ffda, #4b86b4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #ccd6f6;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 50px auto;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #64ffda;
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #64ffda, transparent);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #64ffda;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: #64ffda;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

.scroll-indicator span {
  font-size: 0.9rem;
  color: #8892b0;
  letter-spacing: 2px;
}

/* ========================= */
/*      FLOATING NAV        */
/* ========================= */
.floating-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(100, 255, 218, 0.2);
  color: #64ffda;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.floating-nav-btn:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateX(-5px);
  border-color: #64ffda;
}

.floating-nav-btn:hover .nav-tooltip {
  opacity: 1;
  right: 60px;
}

.nav-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 25, 47, 0.9);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

/* ========================= */
/*      MAP SECTION         */
/* ========================= */
.map-section {
  padding: 80px 20px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #e6f1ff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #8892b0;
  max-width: 600px;
  margin: 0 auto;
}

.map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.map-wrapper {
  position: relative;
  height: 500px;
  width: 100%;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.4) 0%, rgba(100, 255, 218, 0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

.map-3d-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 98%, rgba(100, 255, 218, 0.2) 100%),
    linear-gradient(0deg, transparent 98%, rgba(100, 255, 218, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

#interactiveMap {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 25, 47, 0.9);
  padding: 15px;
  border-radius: 10px;
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 0.9rem;
}

.legend-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.legend-icon.primary {
  background: rgba(100, 255, 218, 0.3);
  color: #64ffda;
}

.map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.map-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(10, 25, 47, 0.9);
  border: 1px solid rgba(100, 255, 218, 0.2);
  color: #64ffda;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.map-control-btn:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: scale(1.1);
}

/* ========================= */
/*     SEARCH SECTION       */
/* ========================= */
.search-section {
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.search-container {
  background: rgba(10, 25, 47, 0.7);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.search-box {
  position: relative;
  margin-bottom: 25px;
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #64ffda;
  font-size: 1.2rem;
}

#branchSearch {
  width: 100%;
  padding: 18px 60px 18px 50px;
  background: rgba(23, 42, 69, 0.5);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  color: #e6f1ff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#branchSearch:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.1);
}

#branchSearch::placeholder {
  color: #8892b0;
}

.search-actions {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.clear-search, .voice-search {
  background: transparent;
  border: none;
  color: #8892b0;
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
  transition: all 0.3s ease;
}

.clear-search:hover, .voice-search:hover {
  color: #64ffda;
  transform: scale(1.1);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(23, 42, 69, 0.5);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 50px;
  color: #8892b0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  border-color: #64ffda;
}

.filter-tag.active {
  background: rgba(100, 255, 218, 0.2);
  color: #64ffda;
  border-color: #64ffda;
}

/* ========================= */
/*    BRANCHES GRID         */
/* ========================= */
.branches-grid-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.branch-card {
  background: rgba(10, 25, 47, 0.7);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.branch-card:hover {
  transform: translateY(-10px);
  border-color: #64ffda;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.branch-card:hover::before {
  opacity: 1;
}

.card-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.branch-card:hover .card-header img {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(10, 25, 47, 0.9);
  color: #64ffda;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.card-content {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #e6f1ff;
}

.card-location {
  color: #64ffda;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-description {
  color: #8892b0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(23, 42, 69, 0.5);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #ccd6f6;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.btn-outline, .btn-primary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
}

.btn-primary {
  background: linear-gradient(135deg, #64ffda, #4b86b4);
  border: none;
  color: #0a192f;
}

.btn-outline:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: #64ffda;
  transform: translateY(-2px);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stats-card {
  background: rgba(10, 25, 47, 0.7);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: all 0.3s ease;
}

.stats-card:hover {
  border-color: #64ffda;
  transform: translateY(-5px);
}

.stats-card i {
  font-size: 2.5rem;
  color: #64ffda;
}

.stats-card div {
  flex: 1;
}

.stats-card .counter {
  font-size: 2rem;
  font-weight: 700;
  color: #e6f1ff;
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
}

.stats-card span {
  font-size: 0.9rem;
  color: #8892b0;
}

/* ========================= */
/*    SERVICES SECTION      */
/* ========================= */
.services-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(10, 25, 47, 0.7);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: #64ffda;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}

.service-icon i {
  font-size: 2rem;
  color: #64ffda;
  position: relative;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, transparent 70%);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.service-card h3 {
  font-size: 1.3rem;
  color: #e6f1ff;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: #8892b0;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ========================= */
/*      CONTACT CTA         */
/* ========================= */
.contact-cta {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-content {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(75, 134, 180, 0.1) 100%);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.cta-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: rgba(100, 255, 218, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64ffda;
  font-size: 1.5rem;
}

.icon-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.2);
  animation: pulse 2s infinite;
}

.cta-text {
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-text h3 {
  font-size: 2rem;
  color: #e6f1ff;
  margin-bottom: 15px;
}

.cta-text p {
  color: #8892b0;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #64ffda, #4b86b4);
  color: #0a192f;
}

.btn-secondary {
  background: rgba(23, 42, 69, 0.7);
  color: #64ffda;
  border: 1px solid rgba(100, 255, 218, 0.3);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover .btn-glow {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateY(-3px);
  border-color: #64ffda;
}

/* ========================= */
/*        MODAL             */
/* ========================= */
.branch-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.branch-modal.active {
  display: block;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: rgba(23, 42, 69, 0.95);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.2);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
}

.branch-modal.active .modal-container {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: #e6f1ff;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: #8892b0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #64ffda;
  transform: rotate(90deg);
}

.modal-content {
  padding: 30px;
  max-height: calc(90vh - 90px);
  overflow-y: auto;
}

/* ========================= */
/*     BACK TO TOP          */
/* ========================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 50%;
  color: #64ffda;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateY(-5px);
  border-color: #64ffda;
}

.back-to-top span {
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ========================= */
/*    RESPONSIVE DESIGN     */
/* ========================= */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .branches-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .floating-nav {
    right: 15px;
  }
  
  .floating-nav-btn {
    width: 45px;
    height: 45px;
  }
  
  .map-controls {
    top: 10px;
    right: 10px;
  }
  
  .branches-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .search-container {
    padding: 20px;
  }
  
  .filter-tags {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }
}