/* ============================================================
   Adroit Solutions – Base Stylesheet
   Shared across all pages. Import AFTER /fonts/fonts.css.
   ============================================================ */

/* ── RESET & ROOT ── */
html, body {
  background: #0a0a0a !important;
  color: #f5f4f0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a0a;
  --white:      #f5f4f0;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   #8a6e28;
  --mid:        #1c1c1c;
  --border:     rgba(201,168,76,0.2);
  --muted:      rgba(245,244,240,0.5);
}

html { scroll-behavior: smooth; }

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.1s linear;
}

/* ── SCROLL BUTTONS ── */
.scroll-fab {
  position: fixed; right: 1.25rem; z-index: 300;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(20,18,14,0.92);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
[data-mode="light"] .scroll-fab {
  background: rgba(245,242,235,0.95);
  border-color: rgba(201,168,76,0.4);
}
.scroll-fab.visible { opacity: 1; pointer-events: auto; }
.scroll-fab:hover { background: var(--gold); color: #0a0a0a; transform: scale(1.08); }
#scrollToTop    { bottom: 5rem; }
#scrollToBottom { bottom: 1.25rem; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 4rem;
  background: rgba(10,10,10,0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}
.nav-logo img {
  height: 140px;
  filter: brightness(0) invert(1);
  background: none;
  display: block;
}
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(245,244,240,0.6);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── LANG SWITCHER ── */
.lang-switcher { display: flex; gap: 0.4rem; }
.lang-btn {
  background: none;
  border: 1px solid rgba(201,168,76,0.4);
  color: rgba(245,244,240,0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  cursor: pointer; transition: all 0.25s;
}
.lang-btn.active { background: var(--gold); border-color: var(--gold); color: #0a0a0a; font-weight: 700; }
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-btn.active:hover { background: var(--gold-light); color: #0a0a0a; }

/* ── LANG VISIBILITY ── */
[data-lang="en"] { display: none; }
[data-lang="de"] { display: block; }
span[data-lang="en"] { display: none; }
span[data-lang="de"] { display: inline; }
body.lang-en [data-lang="en"] { display: block; }
body.lang-en [data-lang="de"] { display: none; }
body.lang-en span[data-lang="en"] { display: inline; }
body.lang-en span[data-lang="de"] { display: none; }

/* ── ANIMATIONS ── */
@keyframes fadeIn  { from { opacity:0; transform:translateY(8px); }  to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse   { 0%,100%{opacity:0.3} 50%{opacity:1} }
@keyframes dash    { from{stroke-dashoffset:200} to{stroke-dashoffset:0} }
@keyframes blink   { 0%,90%,100%{opacity:1} 95%{opacity:0.2} }

/* Circuit board SVG animation helpers */
.trace1 { animation: dash 3s linear infinite; }
.trace2 { animation: dash 3s 1s linear infinite; }
.trace3 { animation: dash 3s 2s linear infinite; }
.node1  { animation: pulse 2s 0.2s ease-in-out infinite; }
.node2  { animation: pulse 2s 0.8s ease-in-out infinite; }
.node3  { animation: pulse 2s 1.4s ease-in-out infinite; }
.node4  { animation: pulse 2s 0.5s ease-in-out infinite; }
.dot-blink { animation: blink 3s ease-in-out infinite; }

/* ── REVEAL / SCROLL ANIMATIONS ── */
.reveal {
  opacity:0; transform:translateY(40px);
  transition:opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }

.reveal-left {
  opacity:0; transform:translateX(-40px);
  transition:opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible { opacity:1; transform:translateX(0); }

.reveal-right {
  opacity:0; transform:translateX(40px);
  transition:opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.visible { opacity:1; transform:translateX(0); }

.stagger > * {
  opacity:0; transform:translateY(30px);
  transition:opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.stagger.visible > * { opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(1){transition-delay:0s}
.stagger.visible > *:nth-child(2){transition-delay:0.08s}
.stagger.visible > *:nth-child(3){transition-delay:0.16s}
.stagger.visible > *:nth-child(4){transition-delay:0.24s}
.stagger.visible > *:nth-child(5){transition-delay:0.32s}
.stagger.visible > *:nth-child(6){transition-delay:0.40s}
.stagger.visible > *:nth-child(7){transition-delay:0.48s}

/* ── SECTION COMMON ── */
.section { padding: 7rem 4rem; background: #0a0a0a; }
.section.alt { background: #111111; }

.s-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.s-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }

.s-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400; line-height: 1.15;
  color: #f5f4f0; margin-bottom: 1.2rem;
}
.s-title em { font-style: italic; color: var(--gold); }

.s-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.9; max-width: 600px; }

.divider {
  width: calc(100% - 8rem); height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 4rem;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: #0a0a0a;
  padding: 0.9rem 2.2rem; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid rgba(245,244,240,0.25); color: var(--white);
  padding: 0.9rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: #0a0a0a;
  padding: 120px 4rem 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 460px; gap: 8vw; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.6rem;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400; line-height: 1.08;
  color: #f5f4f0; margin-bottom: 1.8rem;
  animation: fadeUp 0.6s 0.12s ease both;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-desc {
  font-size: 1rem; font-weight: 300; color: rgba(245,244,240,0.5);
  line-height: 1.9; max-width: 500px; margin-bottom: 2.4rem;
  animation: fadeUp 0.6s 0.22s ease both;
}
.hero-stats {
  display: flex; gap: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(245,244,240,0.08);
  animation: fadeUp 0.6s 0.32s ease both;
}
.stat-n {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem; font-weight: 400; color: #f5f4f0; line-height: 1;
}
.stat-n sup { font-size: 1rem; color: var(--gold); vertical-align: super; }
.stat-l { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,244,240,0.3); margin-top: 5px; }
.hero-visual {
  position: relative; width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-visual svg { width: 100%; height: 100%; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 8rem 4rem; text-align: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400;
  color: #f5f4f0; margin-bottom: 1rem;
}
.cta-section h2 em { font-style: italic; color: var(--gold); }
.cta-section p { font-size: 0.95rem; color: var(--muted); max-width: 440px; margin: 0 auto 2.4rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; }

/* ── HAMBURGER ── */
.menu-btn {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: 0.5rem; flex-shrink: 0;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: rgba(245,244,240,0.75); border-radius: 1px; transition: all 0.25s ease; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ── */
footer {
  background: #1c1c1c; border-top: 1px solid var(--border);
  padding: 3rem 4rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
}
.footer-left { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-left img { height: 110px; filter: brightness(0) invert(1); background: none; display: block; }
.footer-tagline { font-size: 0.8rem; color: rgba(245,244,240,0.35); margin: 0; }
.footer-legal { font-size: 0.75rem; color: rgba(245,244,240,0.3); text-align: right; line-height: 1.8; }
.footer-legal a { color: rgba(245,244,240,0.4); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

/* ── LIGHT MODE (time-based, applied via JS) ── */
html[data-mode="light"] body          { background: #f5f2eb !important; color: #0a0a0a !important; }
html[data-mode="light"] nav           { background: rgba(245,242,235,0.97) !important; }
html[data-mode="light"] .menu-btn span { background: rgba(10,10,10,0.75) !important; }
html[data-mode="light"] .lang-btn    { color: rgba(10,10,10,0.6) !important; border-color: rgba(10,10,10,0.25) !important; }
html[data-mode="light"] .nav-links.open { background: rgba(245,242,235,0.99) !important; }
html[data-mode="light"] .nav-links li  { border-bottom-color: rgba(10,10,10,0.07) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 900px) {
  nav { padding: 0.5rem 1.5rem; position: relative; }
  .nav-logo img { height: 72px; }
  .menu-btn { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    background: rgba(10,10,10,0.98); border-top: 1px solid rgba(201,168,76,0.2);
    flex-direction: column; padding: 0.5rem 0; gap: 0; list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { padding: 0.9rem 1.5rem !important; display: block; }
  .nav-links a::after { display: none !important; }
  .section, .cta-section { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  footer { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
  .divider { margin: 0 1.5rem; width: calc(100% - 3rem); }
}
@media (max-width: 600px) {
  .hero-stats { gap: 1.5rem; }
  .cta-btns { flex-direction: column; align-items: center; }
}
