/*******************************
 *** GLOBAL STYLES & VARIABLES ***
 *******************************/

/* Main Custom Styles */
body {
  background-color: #0a0a0a;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ff6600, #00ff88);
  border-radius: 4px;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(90deg, #ff6600, #ff9933, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 102, 0, 0.2);
}

/* Data stream animation */
.data-stream {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #00ff88, transparent);
  opacity: 0.5;
}

/* Animated background */
.animated-bg {
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 102, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 255, 136, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 153, 51, 0.05) 0%,
      transparent 50%
    );
}

/* Connection line animation */
.connection-line {
  position: relative;
  overflow: hidden;
}

.connection-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 102, 0, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* Loading spinner */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 102, 0, 0.3);
  border-radius: 50%;
  border-top-color: #ff6600;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/*******************************
 *** NAVIGATION & MOBILE MENU ***
 *******************************/

/* Mobile Menu as Sidebar */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #1a1a1a;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  border-left: 1px solid rgba(255, 102, 0, 0.2);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  padding-top: 70px;
  display: block !important;
}

#mobile-menu.show {
  right: 0;
}

/* Mobile Menu Links */
#mobile-menu a {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

#mobile-menu a:hover {
  background: rgba(255, 102, 0, 0.1);
  padding-left: 28px;
}

/* Mobile Menu Toggle Button */
#mobile-menu-btn {
  z-index: 1001;
  transition: all 0.3s ease;
}

#mobile-menu-btn.active {
  color: #ff6600;
}

/* Overlay when menu is open */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
}

.mobile-menu-overlay.show {
  display: block;
}

/* Mobile Menu Header */
.mobile-menu-header {
  background: linear-gradient(to right, rgba(255, 102, 0, 0.1), transparent);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/*******************************
 *** 3D CAROUSEL STYLES ***
 *******************************/

.carousel-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  perspective: 4000px;
}

.carousel-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 350px;
  margin-top: -200px;
  margin-left: -150px;
  background: linear-gradient(145deg, #1e1e1e, #252525);
  border-radius: 20px;
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 25px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(255, 102, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-slide.active {
  background: linear-gradient(145deg, #252525, #2a2a2a);
  border: 2px solid #ff6600;
  box-shadow:
    0 30px 70px rgba(255, 102, 0, 0.3),
    0 0 100px rgba(255, 102, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.carousel-slide.featured {
  border: 2px solid #00ff88;
}

/* Plan content styling */
.plan-header {
  text-align: center;
  margin-bottom: 0px;
}

.plan-speed {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Orbitron", monospace;
  background: linear-gradient(90deg, #ff6600, #ff9933);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0px;
}

.plan-name {
  font-family: "Orbitron", monospace;
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #fff;
}

.plan-description {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 1px 0;
}

.plan-price span {
  font-size: 1.2rem;
  color: #888;
  font-weight: normal;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #aaa;
}

.plan-features li i {
  color: #00ff88;
  margin-right: 10px;
  font-size: 0.9rem;
}

.plan-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #ff6600, #ff9933);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-family: "Orbitron", monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-size: 1rem;
  display: none;
}

.plan-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 50;
}

.carousel-prev,
.carousel-next {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.2);
  border: 2px solid rgba(255, 102, 0, 0.5);
  color: #ff6600;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 102, 0, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.carousel-counter {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 25px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Orbitron", monospace;
  font-size: 1.1rem;
}

.current-index {
  color: #ff6600;
  font-weight: bold;
}

.total-count {
  color: #888;
}

.carousel-dots {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 40;
  display: none;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.carousel-dot.active {
  background: #ff6600;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
  display: none;
}

/* Carousel Category Badge */
.plan-category {
  font-size: 0.5rem;
  padding: 0.1rem 0.7rem;
  border-radius: 9999px;
  display: inline-block;
  position: absolute;
  top: 1px;
  left: 5px;
  z-index: 10;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-category.fiber {
  background: rgba(0, 98, 255, 1);
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.plan-category.air-fiber {
  background: rgb(72, 24, 184);
  color: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/*******************************
 *** PRICE CARD STYLES ***
 *******************************/

.price-card {
  background: linear-gradient(145deg, #1e1e1e, #252525);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  height: auto;
  min-height: 500px;
  max-height: none;
  overflow-y: visible;
}

.price-card.featured {
  background: linear-gradient(145deg, #252525, #2a2a2a);
  border: 2px solid #ff6600;
  box-shadow: 0 30px 70px rgba(255, 102, 0, 0.3);
}

/* Category Badges */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-badge.fiber {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.category-badge.air-fiber {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: white;
  border: 1px solid rgba(139, 92, 246, 0.5);
}

/* Filter button styles */
.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: linear-gradient(90deg, #ff6600, #ff9933) !important;
  color: #0a0a0a !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.container {
  max-width: 100%;
}

/* Adjust padding to be minimal */
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/*******************************
 *** INSTALLATION INFO STYLES ***
 *******************************/

.info-card {
  background: linear-gradient(145deg, #1e1e1e, #252525);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.important-notice {
  border-left: 4px solid #ff6600;
  background: rgba(255, 102, 0, 0.1);
}

/*******************************
 *** MAP STYLES ***
 *******************************/

#real-map {
  border-radius: 12px;
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.gm-style .gm-style-iw-c {
  background: #1a1a1a !important;
  color: white !important;
  border-radius: 8px !important;
}

.gm-style .gm-style-iw-t::after {
  background: #1a1a1a !important;
}

.gm-ui-hover-effect {
  filter: invert(1) !important;
}

/*******************************
 *** RESPONSIVE DESIGN ***
 *******************************/
@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
/* Tablet */
@media (max-width: 768px) {
  .carousel-3d-wrapper {
    height: 550px;
    max-width: 700px;
  }

  .carousel-slide {
    width: 250px;
    margin-left: -125px;
    padding: 20px;
  }

  .plan-speed {
    font-size: 2rem;
  }

  .plan-price {
    font-size: 2rem;
  }

  .carousel-controls {
    gap: 40px;
    bottom: 20px;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-counter {
    padding: 10px 10px;
    font-size: 1rem;
  }

  #real-map {
    height: 350px;
  }
}

/* Mobile Large */
@media (max-width: 640px) {
  .carousel-3d-wrapper {
    height: 550px;
    max-width: 600px;
  }

  .carousel-slide {
    width: 220px;
    margin-left: -110px;
    padding: 15px;
  }

  .plan-speed {
    font-size: 1.8rem;
  }

  .plan-price {
    font-size: 1.8rem;
  }

  .plan-features li {
    font-size: 0.8rem;
  }

  .carousel-controls {
    gap: 40px;
  }

  .carousel-prev,
  .carousel-next {
    width: 80px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-counter {
    padding: 1px 10px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  #real-map {
    height: 300px;
  }
}

/* Mobile Small */
@media (max-width: 360px) {
  .carousel-3d-wrapper {
    height: 500px;
    max-width: 600px;
  }

  #real-map {
    height: 250px;
  }
}

/*******************************
 *** ENHANCED LEAFLET MAP STYLES ***
 *******************************/

#home .grid > div {
  width: 100%;
  max-width: 100%;
}

/* Make sure map container fills its parent */
#ifugao-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 450px;
}

.leaflet-map-container {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 102, 0, 0.3);
  z-index: 10;
  overflow: hidden;
}

.leaflet-container {
  background: #1a1a1a !important;
  border-radius: 12px;
}

/* Marker styles with location icons */
.custom-marker-hub {
  background: #ff6600;
  border: 2px solid white;
  border-radius: 50%;
  width: 20px !important;
  height: 20px !important;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-marker-hub::before {
  content: "📍";
  position: absolute;
  font-size: 20px;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px black);
}

.custom-marker-connected {
  background: #00ff88;
  border: 2px solid white;
  border-radius: 50%;
  width: 16px !important;
  height: 16px !important;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  position: relative;
}

.custom-marker-connected::before {
  content: "📡";
  position: absolute;
  font-size: 16px;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px black);
}

.custom-marker-soon {
  background: #ff3333;
  border: 2px dashed white;
  border-radius: 50%;
  width: 14px !important;
  height: 14px !important;
  opacity: 0.9;
  position: relative;
}

.custom-marker-soon::before {
  content: "⏳";
  position: absolute;
  font-size: 16px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px black);
}

/* Barangay markers with location icons */
.custom-marker-barangay {
  background: #ffaa33;
  border: 1.5px solid white;
  border-radius: 90%;
  width: 10px !important;
  height: 10px !important;
  opacity: 0.8;
  position: relative;
}

.custom-marker-barangay::before {
  content: "📍";
  position: absolute;
  font-size: 20px;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px black);
  white-space: nowrap;
}

/* Label styles for zoom levels */
/* Label styles for zoom levels - UPDATED for auto-sizing */
.marker-label {
  position: absolute;
  background: rgba(255, 0, 0, 0.5);
  color: white;
  border-radius: 20px;
  font-size: 9px;
  font-weight: bold;
  white-space: nowrap;

  pointer-events: none;
  z-index: 1000;
  text-shadow: 0 1px 2px black;
  padding: 2px 8px; /* Add padding inside the label */
  line-height: 1;
  display: inline-block; /* Ensure it fits content */
  width: auto; /* Auto width based on content */
  height: auto; /* Auto height based on content */
  background-color: transparent;
}

.marker-label::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(0, 0, 0, 0.7);
}

/* Curved connection lines */
/* Curved connection lines - base class */
.curved-line {
  stroke-width: 2;
  stroke-dasharray: 6, 4;
  fill: none;
  animation: flow 4s linear infinite;
}

/* Connected municipalities - green (default) */
.curved-line.connected-line {
  filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.3));
}

/* Special municipalities - orange (Banaue, Hungduan, Hingyon) */
.curved-line.special-line {
  filter: drop-shadow(0 0 4px rgba(255, 102, 0, 0.3));
}

/* Barangay lines - always stay orange/brown */
.curved-line.barangay-line {
  filter: drop-shadow(0 0 4px rgba(255, 170, 51, 0.3));
}

@keyframes flow {
  to {
    stroke-dashoffset: -100;
  }
}
/* Pulsing effect for hub */
@keyframes pulse-hub {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 102, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
  }
}

.custom-marker-hub {
  animation: pulse-hub 2s infinite;
}

/* Legend styles */
.map-legend {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  z-index: 1000;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #fff;
  margin-bottom: 4px;
}

.map-legend-item:last-child {
  margin-bottom: 0;
}

/* Zoom controls styling */
.leaflet-control-zoom a {
  background: #1a1a1a !important;
  color: #ff6600 !important;
  border: 1px solid rgba(255, 102, 0, 0.3) !important;
}

.leaflet-control-zoom a:hover {
  background: #2a2a2a !important;
  color: #00ff88 !important;
}

/* Satellite layer toggle */
.map-toggle-satellite {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 4px;
  padding: 6px 12px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.map-toggle-satellite:hover {
  background: rgba(255, 102, 0, 0.3);
  border-color: #ff6600;
}

/* Barangay cluster styles when zoomed out */
.barangay-cluster {
  background: rgba(255, 170, 51, 0.3);
  border: 1px solid #ffaa33;
  border-radius: 50%;
  width: 30px !important;
  height: 30px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
  backdrop-filter: blur(4px);
}
/*******************************
 *** SERVICES SECTION STYLES ***
 *******************************/

/*******************************
 *** SERVICES IMAGE GALLERY ***
 *******************************/

/* Filter tabs */
.service-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  margin: 30px 0 20px;
  padding: 0 0 10px 0; /* Add bottom padding for scrollbar space */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: auto;
  /* Custom scrollbar styling */
  scrollbar-width: thin; /* For Firefox - shows thin scrollbar */
  scrollbar-color: #ff6600 #1a1a1a; /* thumb color track color */
}

/* WebKit scrollbar styling (Chrome, Safari, Edge) */
.service-tabs::-webkit-scrollbar {
  height: 6px; /* Height of horizontal scrollbar */
}

.service-tabs::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

.service-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff6600, #ff9933);
  border-radius: 10px;
}

.service-tabs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #ff9933, #ff6600);
}

.service-tab {
  padding: 12px 24px;
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 40px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-tab:hover,
.service-tab.active {
  background: linear-gradient(90deg, #ff6600, #ff9933);
  color: #0a0a0a;

  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

.service-tab i {
  margin-right: 8px;
}

/* Auto-scrolling Carousel */
.carousel-container {
  width: 100%;
  margin: 40px 0 30px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

.carousel-item {
  flex: 0 0 800px;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 102, 0, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.carousel-item:hover {
  transform: scale(1.05);
  border-color: #ff6600;
  box-shadow: 0 15px 30px rgba(255, 102, 0, 0.3);
  z-index: 10;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-320px * 6 - 20px * 6)
    ); /* Adjust based on number of images */
  }
}

/* Image Cards Grid */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9; /* Changed from 4:3 to 16:9 - wider, more modern look */
  cursor: pointer;
  border: 2px solid rgba(255, 102, 0, 0.2);
  transition: all 0.4s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: #1a1a1a;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This should work - make sure no other styles override */
  transition: transform 0.6s ease;
  display: block; /* Remove any extra spacing */
}

.image-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #ff6600;
  box-shadow: 0 20px 30px rgba(255, 102, 0, 0.3);
}

.image-card:hover img {
  transform: scale(1.1);
}

.image-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px 15px 15px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.image-card:hover .image-card-overlay {
  transform: translateY(0);
}

.image-card-title {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.image-card-price {
  color: #ff6600;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.image-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6600;
  color: #0a0a0a;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.inquire-btn-small {
  background: rgba(255, 102, 0, 0.9);
  color: #0a0a0a;
  border: none;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.inquire-btn-small:hover {
  background: #ff6600;
  transform: scale(1.05);
}

/* View More Button */
.view-more-container {
  text-align: center;
  margin: 40px 0 20px;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: transparent;
  border: 2px solid #ff6600;
  color: #ff6600;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-more-btn:hover {
  background: #ff6600;
  color: #0a0a0a;
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

.view-more-btn i {
  transition: transform 0.3s ease;
}

.view-more-btn:hover i {
  transform: translateX(5px);
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
  background: rgba(255, 102, 0, 0.05);
  border-radius: 20px;
  border: 1px dashed rgba(255, 102, 0, 0.3);
  margin: 30px 0;
}

.no-results i {
  font-size: 40px;
  color: #ff6600;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 102, 0, 0.3);
  border-radius: 50%;
  border-top-color: #ff6600;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .service-tabs {
    gap: 6px;
    justify-content: flex-start; /* Align to left on mobile for better scrolling */
    padding: 0 10px; /* Minimal padding for edge scrolling */
  }

  .service-tab {
    padding: 10px 10px; /* Smaller padding on mobile */
    font-size: 10px;
  }

  .carousel-item {
    flex: 0 0 250px;
    height: 160px;
  }

  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
  }

  .view-more-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  .carousel-item {
    flex: 0 0 400px; /* Smaller for tablet */
    height: 250px;
  }
}

@media (max-width: 480px) {
  .service-tab {
    padding: 8px 10px;
    font-size: 12px;
  }

  .carousel-item {
    flex: 0 0 400px; /* Smaller for tablet */
    height: 250px;
  }
}
/*******************************
 *** IMAGE LIGHTBOX STYLES ***
 *******************************/

/* Lightbox animations */
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fixed.inset-0.z-50 {
  animation: lightboxFadeIn 0.3s ease;
}

/* Lightbox image container */
.fixed.inset-0.z-50 .relative {
  animation: lightboxZoomIn 0.4s ease;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Lightbox navigation buttons */
.fixed.inset-0.z-50 button {
  transition: all 0.3s ease;
}

.fixed.inset-0.z-50 button:hover {
  transform: scale(1.1);
}

/* Lightbox image info */
.fixed.inset-0.z-50 .mt-4 {
  animation: slideUp 0.4s ease 0.1s both;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Make image cards clickable */
.image-card {
  cursor: pointer;
}

.carousel-item {
  cursor: pointer;
}
/***********************
maps*******************/
.map-view-btn.active {
  background: linear-gradient(90deg, #ff6600, #ff9933);
  color: #0a0a0a;
}

/* Sticky card on desktop */
@media (min-width: 1024px) {
  #store-location .sticky {
    position: sticky;
    top: 100px;
  }
}

/* Smooth transitions */
#regular-map-container,
#street-view-container {
  transition: opacity 0.3s ease;
}

/* Pin overlay transitions */
#store-pin-overlay {
  transition: opacity 0.5s ease;
}

/* Pulse animation for the pin */
@keyframes soft-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: soft-bounce 2s infinite;
}

/* Hide Google branding if needed (optional) */
.gm-style .gm-style-cc {
  opacity: 0.5;
}

/*======================================
// arrow down
==========================================*/

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6600, #ff8533);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top-btn.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: pulse 2s infinite;
}

.back-to-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
  background: linear-gradient(135deg, #ff8533, #ff6600);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 102, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}
/* =========================================
/ LOGO
============================================= */
.flip-container {
  perspective: 1000px;
  display: inline-block;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: flipCycle 10s infinite ease-in-out;
}

@keyframes flipCycle {
  0% {
    transform: rotateY(0deg);
  } /* Start with GTE */
  45% {
    transform: rotateY(0deg);
  } /* Hold GTE until 4.5s */
  50% {
    transform: rotateY(180deg);
  } /* Flip (0.5s transition) */
  95% {
    transform: rotateY(180deg);
  } /* Hold Hitech until 9.5s */
  100% {
    transform: rotateY(0deg);
  } /* Flip back (0.5s transition) */
}

/* Front/back faces */
.flipper .front,
.flipper .back {
  position: relative;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flipper .back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

/* Pause on hover */
.flip-container:hover .flipper {
  animation-play-state: paused;
}
/* =========================================
/ TEXT FADE ANIMATION - PERFECT SYNC WITH LOGO
============================================= */
.fade-container {
  position: relative;
  height: 180px; /* Adjust based on your text height */
  margin-bottom: 0r;
  width: 100%;
}

.fade-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* GTE Text - Visible during first half */
.fade-slide.gte {
  animation: fadeGTE 10s infinite ease-in-out;
}

/* Hitech Text - Visible during second half */
.fade-slide.hitech {
  animation: fadeHitech 10s infinite ease-in-out;
}
@media (max-width: 768px) {
  .fade-container {
    height: 120px; /* Reduce height */
    margin-bottom: 0.25rem; /* Reduce bottom margin */
  }
}
@media (max-width: 473px) {
  .fade-container {
    height: 120px; /* Reduce height */
    margin-bottom: 0.25rem; /* Reduce bottom margin */
  }
}

/* Keyframes for GTE - exactly matching logo flip */
@keyframes fadeGTE {
  0%,
  45% {
    opacity: 1;
    visibility: visible;
  }
  45.1%,
  49.9% {
    opacity: 0;
    visibility: hidden;
  }
  50%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Keyframes for Hitech - exactly matching logo flip */
@keyframes fadeHitech {
  0%,
  49.9% {
    opacity: 0;
    visibility: hidden;
  }
  50%,
  95% {
    opacity: 1;
    visibility: visible;
  }
  95.1%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Text styles */
.gradient-text {
  background: linear-gradient(90deg, #ff6600, #ff9933, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary {
  color: #ff9933;
}

.text-white-glow {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Optional: Add a subtle scale animation when text appears */
.fade-slide.gte h1,
.fade-slide.hitech h1 {
  animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
/* Ultra-precise timing matching logo flip exactly */
@keyframes fadeGTE {
  0% {
    opacity: 1;
    visibility: visible;
  } /* Start */
  45% {
    opacity: 1;
    visibility: visible;
  } /* Hold until 4.5s */
  45.1% {
    opacity: 0;
    visibility: hidden;
  } /* Start fade out */
  49.9% {
    opacity: 0;
    visibility: hidden;
  } /* Stay hidden during flip */
  50% {
    opacity: 0;
    visibility: hidden;
  } /* Hidden during Hitech */
  95% {
    opacity: 0;
    visibility: hidden;
  } /* Stay hidden */
  95.1% {
    opacity: 0;
    visibility: hidden;
  } /* Start fade in */
  100% {
    opacity: 1;
    visibility: visible;
  } /* Back to GTE */
}

@keyframes fadeHitech {
  0% {
    opacity: 0;
    visibility: hidden;
  } /* Hidden during GTE */
  45% {
    opacity: 0;
    visibility: hidden;
  }
  45.1% {
    opacity: 0;
    visibility: hidden;
  }
  49.9% {
    opacity: 0;
    visibility: hidden;
  }
  50% {
    opacity: 1;
    visibility: visible;
  } /* Appear exactly when logo flips */
  95% {
    opacity: 1;
    visibility: visible;
  } /* Hold until 9.5s */
  95.1% {
    opacity: 0;
    visibility: hidden;
  } /* Start fade out */
  100% {
    opacity: 0;
    visibility: hidden;
  } /* Hidden during flip back */
}
/* Add this to make the transition smoother */
.fade-slide.gte h1 span,
.fade-slide.hitech h1 span {
  display: inline-block;
  animation: glowPulse 4s infinite;
}

@keyframes glowPulse {
}

.fade-slide.hitech h1 span {
  animation: glowPulseHitech 4s infinite;
}

@keyframes glowPulseHitech {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(0, 77, 41, 0.856);
  }
  50% {
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
  }
}
