/* Root variables for colors and sizing */
:root {
  --bg-gradient: linear-gradient(180deg, #0a0137 0%, #11012c 60%, #040115 100%);
  --primary-color: #8d42ff;
  --secondary-color: #4a9aff;
  --highlight-color: #e75aff;
  --text-light: #ffffff;
  --text-muted: #b5b5c2;
  --card-bg: rgba(255, 255, 255, 0.08);
  --nav-height: 80px;
  --container-width: 90%;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-light);
  overflow-x: hidden;
}

/* Page-like section toggling */
.page-section:not(.active) {
  display: none;
}

/* Container utility */
.container {
  width: var(--container-width);
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(5, 1, 20, 0.6);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-left .nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--primary-color);
}

.nav-logo a {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

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

.nav-right {
  display: flex;
  align-items: center;
}

/* Language selector */
.lang-select {
  position: relative;
  margin-right: 1rem;
}

.lang-select select {
  appearance: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: var(--text-light);
  padding: 0.25rem 1.5rem 0.25rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-select::after {
  content: '\25BC';
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: var(--text-light);
  pointer-events: none;
}

/* Contact button */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: var(--text-light);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-height));
  padding: 4rem 0 2rem 0;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.hero-text {
  flex: 1 1 50%;
  max-width: 50%;
}

.pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--primary-color);
  background: rgba(141, 66, 255, 0.1);
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin: 0.75rem 0;
  color: var(--text-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: var(--text-light);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
}

.btn-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.separator {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-image-wrapper {
  flex: 1 1 50%;
  max-width: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 80%;
  max-width: 360px;
  object-fit: contain;
  border-radius: 8px;
}

.profit-card {
  position: absolute;
  top: 10%;
  right: 8%;
  background: rgba(24, 9, 59, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.profit-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.profit-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profit-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

#profitChart {
  width: 100%;
  height: 80px;
}

.brand-identity {
  position: absolute;
  bottom: 5%;
  right: 8%;
  text-align: right;
}

.brand-identity h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-light);
}

.explore-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.explore-link:hover {
  color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text,
  .hero-image-wrapper {
    max-width: 100%;
    flex-basis: 100%;
  }
  .hero-image-wrapper {
    margin-top: 3rem;
  }
  .profit-card {
    position: static;
    margin: 0 auto 1.5rem;
    width: 240px;
  }
  .brand-identity {
    position: static;
    margin-top: 1rem;
    text-align: center;
  }
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .nav-content {
    flex-direction: column;
    padding: 1rem 0;
  }
  .nav-left .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .nav-right {
    justify-content: center;
    width: 100%;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .btn-circle {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }
}

/* Services Section */
.services {
  padding: 5rem 0;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.services p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services grid */
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.service-card ul {
  padding-left: 1.1rem;
  color: var(--text-light);
  opacity: 0.9;
}

.service-card ul li {
  margin: 0.25rem 0;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  text-align: center;
}

.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.contact-list a {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--primary-color);
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact form input,
.contact form textarea {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-light);
  font-size: 1rem;
  outline: none;
}

.contact form textarea {
  resize: vertical;
  height: 150px;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(141, 66, 255, 0.5);
}

.contact form button.btn-primary {
  align-self: center;
}

/* Local file warning (when not served over http/https) */
.file-warning {
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}