:root {
  --bg-color: #f9fafb;
  --text-color: #111827;
  --accent-color: #007aff;
  --dark-bg: #1f2937;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
}

.site-header .logo {
  height: 40px;
  width: auto;
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.icon-button {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.icon-button svg,
.icon-button img {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.main-nav {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.main-nav a {
  font-weight: 500;
}

.lang-selector {
  appearance: none;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: var(--text-color);
  font-size: 0.875rem;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%276%209%2012%2015%2018%209%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 24px;
}

body.dark-mode .lang-selector {
  background-color: #000;
  color: #fff;
  border-color: #fff;
}

body.dark-mode .lang-selector option {
  background: #000;
  color: #fff;
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}
.theme-toggle {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.theme-toggle input {
  width: 0;
  height: 0;
  visibility: hidden;
}
.theme-toggle label {
  cursor: pointer;
  width: 50px;
  height: 24px;
  background: #ccc;
  display: block;
  border-radius: 24px;
  position: relative;
}
.theme-toggle label:after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 20px;
  transition: 0.3s;
}
.theme-toggle input:checked + label {
  background: #4f46e5;
}
.theme-toggle input:checked + label:after {
  left: calc(100% - 2px);
  transform: translateX(-100%);
}
.theme-toggle label:active:after {
  width: 28px;
}

#lang-container {
  position: absolute;
  bottom: 10px;
  right: 20px;
}

.glass-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

body.dark-mode {
  background: var(--dark-bg);
  color: #fff;
}
body.dark-mode .site-header,
body.dark-mode .site-footer {
  background: #000;
  color: #fff;
}
body.dark-mode .main-nav a {
  color: #0a84ff;
}
body.dark-mode .glass-panel {
  background: #000;
  border-color: #374151;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
body.dark-mode .hero,
body.dark-mode .features,
body.dark-mode .acquisition,
body.dark-mode .lead-form,
body.dark-mode #projects,
body.dark-mode #projectCollage,
body.dark-mode .cta,
body.dark-mode .video {
  background-color: #000;
}

/* Unified layout adjustments */
section {
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 1200px;
  background: none;
}

h1, h2, h3 {
  margin: 1rem 0;
  color: var(--text-color);
  font-weight: 600;
}

.glass-panel {
  background: none;
}

.acquisition.glass-panel,
.lead-form.glass-panel {
  border: none;
  box-shadow: none;
}

body.dark-mode .acquisition.glass-panel,
body.dark-mode .lead-form.glass-panel {
  border: none;
  box-shadow: none;
}

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

.content {
  padding: 2rem 1rem;
}

/* Gradient text effect */
.shader-text {
  background: linear-gradient(90deg, #00ffff, #40666d);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}
#accountStatus {
  font-size: 0.8rem;
  margin-left: 6px;
}

/* Full page loading overlay */
#loadingScreen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#loadingScreen img {
  max-width: 300px;
  width: 80%;
}
body.dark-mode #loadingScreen {
  background: #000;
}

@media (max-width: 600px) {
  .site-header {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1000;
  }
  .main-nav.open {
    display: flex;
  }
  .icons {
    top: 10px;
    transform: none;
  }
  #lang-container {
    position: static;
    margin-top: 10px;
  }
  .theme-toggle {
    margin-bottom: 10px;
  }
}

#projectPanel img {
  margin-bottom: 10px;
}

#projectPanel ul {
  list-style: none;
  padding: 0;
}

#projectPanel li {
  margin-bottom: 5px;
}
