:root {
  /* Color Palette */
  --bg-dark: #0a0b1e;
  --bg-darker: #050510;
  --primary-start: #4facfe;
  --primary-end: #00f2fe;
  --accent-start: #f093fb;
  --accent-end: #f5576c;
  --text-white: #ffffff;
  --text-grey: #b3b3b3;
  --danger: #ff4b4b;

  /* Spacing */
  --container-max: 1200px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 128px;

  /* Typography */
  --font-main: "Outfit", sans-serif;

  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 10px;
  --glow-primary: rgba(79, 172, 254, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.small-container {
  max-width: 1000px;
}

.section {
  padding: var(--spacing-xs) 0;
  position: relative;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Common Components */
.primary-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--glow-primary);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--spacing-md);
  transition: transform 0.3s ease;
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 11, 30, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  padding: 15px 50px;
  background: rgba(10, 11, 30, 0.95);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-grey);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links .cta-button {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-white);
  font-weight: 600;
}

.nav-links .cta-button:hover {
  background: var(--text-white);
  color: var(--bg-dark);
}

.mobile-menu-btn {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hero-description {
  font-size: 30px;
  text-justify: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 3px;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 100px; /* Offset for fixed nav */
}

#particle-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-grey);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.secondary-btn {
  display: inline-block;
  padding: 12px 32px;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  color: var(--text-grey);
  font-size: 0.9rem;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.arrow-down {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-grey);
  border-bottom: 2px solid var(--text-grey);
  transform: rotate(45deg);
}

/* Responsive Styles for Hero */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .nav-links {
    display: none; /* Hide standard links */
  }

  .mobile-menu-btn {
    display: flex;
  }

  .glass-nav {
    padding: 15px 20px;
  }
}

/* Problem Section */
#problem {
  min-height: 100vh;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.icon-box {
  font-size: 3rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.problem-section h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-white);
}

.problem-section p {
  color: var(--text-grey);
  font-size: 1rem;
}

/* Solution Section */
#solution {
  min-height: 100vh;
}
#contact {
  min-height: 100vh;
}
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solution-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  margin-top: 30px;
}

.feature-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-grey);
}

.feature-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  border-radius: 50%;
  margin-right: 15px;
  color: var(--bg-dark);
  font-weight: bold;
  font-size: 0.8rem;
}

.data-flow-visual {
  width: 100%;
  height: 400px;
  background: radial-gradient(
    circle at center,
    rgba(79, 172, 254, 0.1) 0%,
    transparent 70%
  );
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

#market {
  min-height: 100vh;
}

/* Add a pseudo-element for a visual effect in the data flow box */
.data-flow-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--primary-start), var(--accent-end));
  filter: blur(40px);
  opacity: 0.5;
  animation: pulse 4s infinite;
}

@media (max-width: 768px) {
  .solution-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .data-flow-visual {
    height: 300px;
  }
}

/* Market Section */
.market-section {
  text-align: center;
}

.chart-container {
  height: 400px;
  margin-bottom: 50px;
  position: relative;
  padding: 20px;
}

#market-chart {
  width: 100%;
  height: 100%;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stats-grid {
    gap: 40px;
  }

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

  .chart-container {
    height: 300px;
  }
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(79, 172, 254, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover::before {
  opacity: 1;
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a3e, #1a1b2e);
  margin: 0 auto 20px;
  border: 2px solid var(--glass-border);
  position: relative;
}

.avatar-placeholder::after {
  content: "User";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-grey);
  font-size: 0.8rem;
}

.team-card h3 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.team-card .role {
  display: block;
  color: var(--primary-start);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.team-card p {
  font-size: 0.95rem;
  color: var(--text-grey);
}

/* Contact Section */
.contact-section {
  display: flex;
  justify-content: center;
}

.cta-card {
  text-align: center;
  border: 1px solid rgba(79, 172, 254, 0.3);
  position: relative;
  overflow: hidden;
}

.glow-border {
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.1);
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--text-white), var(--text-grey));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 600px;
  margin: 30px auto 0;
  text-align: left;
}

.input-wrapper {
  position: relative;
}

.input-wrapper.full-width {
  grid-column: span 2;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  font-family: var(--font-main);
  font-size: 1rem;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  cursor: pointer;
}

.contact-form select option {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--primary-start);
  background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
  width: 100%;
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

/* Phone Group Styling */
.phone-group {
  display: flex;
  gap: 10px;
}

.country-code {
  width: 80px !important; /* Force width */
  text-align: center;
}

.phone-number {
  flex: 1;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .input-wrapper.full-width {
    grid-column: span 1;
  }

  .cta-card h2 {
    font-size: 2rem;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 50px 0;
  margin-top: 50px;
  background: var(--bg-darker);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-content p {
  color: var(--text-grey);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--text-grey);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-start);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Mobile Menu Active State */
.nav-links.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  flex-direction: column;
  justify-content: center;
  z-index: 999;
}

.nav-links.active a {
  font-size: 1.5rem;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}
