:root {
  --color-bg: #0a0a0a;
  --color-bg-light: #1a1a1a;
  --color-bg-lighter: #2a2a2a;
  --color-text: #ffffff;
  --color-text-secondary: #b0b0b0;
  --color-accent: #ffa500;
  --color-accent-hover: #ff8c00;
  --color-border: rgba(255, 165, 0, 0.2);
  --color-border-hover: rgba(255, 165, 0, 0.6);
}

html.light-theme {
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-bg-lighter: #efefef;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-accent: #f59e0b;
  --color-accent-hover: #f97316;
  --color-border: rgba(245, 158, 11, 0.1);
  --color-border-hover: rgba(245, 158, 11, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background-color: transparent;
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

/* Bootstrap Navbar Override - Reset all Bootstrap navbar styles */
.navbar {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  min-height: auto !important;
  flex-wrap: nowrap !important;
}

.navbar>* {
  padding: 0 !important;
  margin: 0 !important;
}

html.light-theme .navbar {
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.nav-logo {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0 !important;
  margin: 0 !important;
}

.nav-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.4rem;
}

.hamburger span {
  width: 1.5rem;
  height: 0.2rem;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu.active {
    display: flex;
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-bg-light);
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.active .nav-link {
    padding: 0.5rem 0;
  }
}

/* Main Content */
main {
  margin-top: 4.5rem;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  background: transparent;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.logo-main {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.25rem);
  }
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--color-accent);
  margin: 0 auto;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 48rem;
  margin: 1.5rem auto 0;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-mission h3 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.about-mission p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.vision-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.vision-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.vision-card h3 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.vision-card p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.value-item {
  background-color: var(--color-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  text-align: center;
}

.value-item i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.value-item p {
  font-weight: 600;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: transparent;
}


.service-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;

}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-icon i {
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 1.375rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-top: auto;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
}

.method-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon i {
  color: var(--color-accent);
  font-size: 1.25rem;
}

.method-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-method a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: var(--color-accent-hover);
}

/* Contact Form */
.contact-form {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  color: var(--color-text);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  background-color: var(--color-bg);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-accent);
}

.footer-logo {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
}

.footer-grid p {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.footer-grid h4 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-grid a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .service-card,
  .vision-card,
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-title {
    display: none;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }

  .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
}

/* Bootstrap Override Fixes */
/* Remove all Bootstrap spacing that conflicts with our design */
.services .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin: 0;
}

.services .row>* {
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.services .row .col-lg-3,
.services .row .col-md-6 {
  padding: 0 0.75rem;
}

.service-card {
  height: 100%;
  margin: 0;
  width: 100%;
}

/* Ensure our custom colors override Bootstrap defaults */
.service-card,
.vision-card,
.contact-form {
  background-color: var(--color-bg-light) !important;
  border: 1px solid var(--color-border) !important;
}

/* Fix any Bootstrap text color conflicts */
.service-card h3,
.service-card p,
.vision-card h3,
.vision-card p {
  color: inherit;
}

/* Ensure buttons maintain custom styling */
.btn-primary {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover) !important;
  border-color: var(--color-accent-hover) !important;
}

/* Geometric Shapes */
.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.15;
  animation: float-shape 20s ease-in-out infinite;
}

.shape.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.shape.triangle {
  width: 0;
  height: 0;
  background: transparent;
}

.shape.triangle::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Node Animation Background */
.large-header {
  position: fixed;
  width: 100%;
  background: var(--color-bg);
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  z-index: -1;
  top: 0;
  left: 0;
}

#demo-canvas {
  width: 100%;
  height: 100%;
}

/* Circle variations */
.shape.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape.circle-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 3s;
}

.shape.circle-3 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 15%;
  animation-delay: 6s;
}

/* Triangle variations */
.shape.triangle-1::before {
  border-width: 0 100px 173px 100px;
  border-color: transparent transparent var(--color-accent) transparent;
  top: 20%;
  right: 20%;
}

.shape.triangle-2::before {
  border-width: 0 75px 130px 75px;
  border-color: transparent transparent var(--color-accent-hover) transparent;
  bottom: 25%;
  right: 5%;
}

.shape.triangle-3::before {
  border-width: 0 60px 104px 60px;
  border-color: transparent transparent var(--color-accent) transparent;
  top: 50%;
  left: 10%;
}

@keyframes float-shape {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }

  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }

  75% {
    transform: translate(20px, 20px) rotate(270deg);
  }
}

/* Add shapes to sections */
.about,
.services,
.contact {
  position: relative;
  overflow: hidden;
}

.section-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}