/* Base Variables */
:root {
  --primary: #033b3a;
  --secondary: #143d50;
  --accent: #ff9500;
  --light-accent: #ffae001f;
  --dark: #333333;
  --light: #ffffff;
  --muted: #6c757d;
  --transition-standard: all 0.3s ease;
  --shadow-standard: 0 10px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-accent: #f7f9fc;
  --accent-light: #ffb347;
  --accent-dark: #e67e00;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --border-light: #e9ecef;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
body {
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

/* Custom Color Classes */
.text-gb-primary {
  color: var(--secondary);
}

.bg-gb-primary {
  background-color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

.bg-accent {
  background-color: var(--accent);
}

.border-accent {
  border-color: var(--accent) !important;
}

/* Card Styles */
.feature-card,
.ecosystem-card,
.testimonial-card {
  transition: var(--transition-standard);
  height: 100%;
  border-width: 2px !important;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.feature-card:hover,
.ecosystem-card:hover,
.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-standard);
}

/* Section Styling */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
}

/* Icon Styling */
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(255, 149, 0, 0.2);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  color: white;
  font-size: 1.75rem;
}

.feature-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(145deg, rgba(255, 149, 0, 0.1), rgba(255, 149, 0, 0.05));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: var(--transition-standard);
}

.tech-card:hover .feature-icon::after {
  opacity: 1;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
}

/* Featured icon styling */
.feature-icon-featured {
  width: 80px;
  height: 80px;
}

.feature-icon-featured i {
  font-size: 2.25rem !important;
}

/* Number Badge */
.number-badge {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.1;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  z-index: 1;
}

/* Arrow Icon Animation */
.arrow-icon {
  transition: transform 0.3s ease;
}

.tech-card:hover .arrow-icon {
  transform: translateX(5px);
}

/* Mesh Network Specific Styles */
.mesh-benefits-section {
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light);
}

.mesh-network {
  position: relative;
  min-height: 800px;
  padding: 50px 0;
}

/* SVG Mesh Background */
.mesh-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* Container positioning */
.mesh-container {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  min-height: 100vh;
}

/* Card styling */
.tech-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  transition: var(--transition-standard);
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

/* Featured card styling */
.tech-card-featured {
  background: linear-gradient(145deg, var(--bg-white), var(--bg-accent));
  border: 1px solid rgba(255, 149, 0, 0.2);
  box-shadow: var(--shadow-md);
}

.tech-card-featured:hover {
  box-shadow: 0 15px 35px rgba(255, 149, 0, 0.15);
}

/* Central Hub */
.central-hub {
  position: relative;
  margin-bottom: 3rem;
}

.hub-icon {
  width: 140px;
  height: 140px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 149, 0, 0.3);
  animation: pulse 2s infinite;
  position: relative;
  z-index: 2;
}

.hub-icon i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hub-icon span {
  font-size: 1rem;
  font-weight: 600;
}

/* Card content styling */
.card-title {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Feature tag */
.feature-tag {
  position: absolute;
  top: 15px;
  left: -30px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: white;
  padding: 5px 30px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(-45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Connection lines SVG */
.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Ensure visibility */
  pointer-events: none;
  overflow: visible; /* Ensure lines aren't clipped */
}

/* Connection line styling */
.mesh-connection {
  opacity: 0; /* Hide connections by default */
  transition: opacity 0.3s ease;
  stroke-width: 2px;
}

/* Active connection styling */
.mesh-connection.active {
  opacity: 0.7; /* Show when active */
}

/* Hub connection styling */
.hub-connection {
  opacity: 0; /* Hide connections by default */
  transition: opacity 0.3s ease;
  stroke-width: 2.5px;
}

/* Active hub connection styling */
.hub-connection.active {
  opacity: 0.8; /* Show when active */
}

/* Card active state */
.feature-card.active {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 149, 0, 0.15);
  border-color: var(--accent);
}

/* Feature icon active state */
.feature-card.active .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

/* Logo styling */
.logo-container {
  margin-bottom: 2rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.logo span {
  color: var(--accent);
}

/* Button styling */
.btn-tech {
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition-standard);
  box-shadow: 0 4px 15px rgba(255, 149, 0, 0.2);
}

.btn-tech:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
  color: white;
}

/* Mobile Connector */
.mobile-connector {
  position: relative;
  height: 100%;
}

.connector-line {
  position: absolute;
  width: 2px;
  background-color: var(--accent);
  opacity: 0.3;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
}

/* Add user instructions styling */
.mesh-instructions {
  position: relative;
  z-index: 5;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  display: inline-block;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mesh-instructions:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mesh-instructions p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Animation classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 149, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 149, 0, 0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .mesh-network {
    min-height: auto;
    padding: 0;
  }

  .tech-card {
    margin-bottom: 30px;
    max-width: 100%;
  }

  .hub-icon {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }

  .hub-icon i {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .mesh-container {
    padding: 40px 0;
  }

  .hub-icon {
    width: 100px;
    height: 100px;
  }

  .hub-icon i {
    font-size: 2rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .feature-icon i {
    font-size: 1.5rem;
  }

  .feature-icon-featured {
    width: 60px;
    height: 60px;
  }

  .feature-icon-featured i {
    font-size: 1.75rem !important;
  }

  .number-badge {
    font-size: 3rem;
  }
}

