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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f7f9fb;
  line-height: 1.6;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  background-color: rgba(255, 255, 255, 0.7);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links ul li a {
  color: black;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links ul li a:hover {
  color: teal;
}

.scrolled {
  background-color: white;
}

.scrolled .nav-links ul li a:hover {
  color: teal;
}

/* Spacer for fixed nav */
.spacer {
  height: 100px;
}

/* Tab Container */
.tab-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #ccc;
  margin-bottom: 20px;
}

.tab-button {
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  border-bottom: none;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 8px 8px 0 0;
  margin-right: 4px;
}

.tab-button:hover {
  background-color: #e0e0e0;
}

.tab-button.active {
  background-color: white;
  border-bottom: 2px solid white;
  color: teal;
  position: relative;
  z-index: 2;
}

/* Remove outlines from buttons/inputs */
.tab-button:focus {
  outline: none;
}

/* Tab Content */
.tab-content {
  display: none;
  background: white;
  border: 1px solid #ccc;
  border-radius: 0 8px 8px 8px;
  padding: 20px;
  margin-top: -1px;
  position: relative;
  z-index: 1;
}

.tab-content.active-tab {
  display: block;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="number"] {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Contact Header Image */
.contact-header {
  height: 500px;
  overflow: hidden;
  position: relative;
}

.contact-header-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-170px);
}

/* Services Section */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 60px 20px;
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.service-icon {
  font-size: 2rem;
  color: teal;
  margin-bottom: 10px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-description {
  font-size: 0.95rem;
  color: #555;
}

/* Innovation Section */
.innovation-section {
  padding: 60px 20px;
  background-color: #f0f2f5;
  text-align: center;
}

.innovation-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: lightseagreen;
}

.innovation-section p {
  max-width: 800px;
  margin: 0 auto;
  color: #444;
}

/* Ecosystem */
.ecosystem-wrapper {
  position: relative;
  background: radial-gradient(circle at center, #d4f1f9, #a0e3ec);
  overflow: hidden;
  height: 100vh;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.ecosystem {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.node {
  position: absolute;
  border-radius: 50%;
  color: white;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Popup */
.popup {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  padding: 15px;
  width: 260px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 3;
  display: none;
}

.popup h4 {
  margin-bottom: 10px;
  color: lightseagreen;
}

.popup p {
  font-size: 14px;
}

/* Footer */
.footer {
  background-color: lightseagreen;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1.0rem;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 10px;
  }

  .services-container {
    grid-template-columns: 1fr;
  }
}
