/* ========================================
   Projective Duality UG — Website Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0e13;
  --bg-secondary: #111620;
  --bg-card: #161c28;
  --text: #e0e4ec;
  --text-muted: #8892a4;
  --accent: #5eead4;
  --accent-dim: #2dd4a820;
  --border: #1e2636;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --max-width: 1100px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: #99f6e4;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.accent {
  color: var(--accent);
}

code, .mono {
  font-family: var(--font-mono);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 14, 19, 0.85);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: invert(1);
}

.nav-logo span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: lowercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::before {
  content: '~/';
  opacity: 0;
  transition: opacity var(--transition);
}

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

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: flex-start;
  padding-top: calc(64px + 3rem);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label::before {
  content: '>';
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.hero p:last-of-type {
  margin-bottom: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: #99f6e4;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-dim);
}

/* --- Services / Work Section --- */
.services {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.accordion {
  list-style: none;
}

.accordion-item {
  border-top: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition);
  text-align: left;
}

.accordion-header:hover {
  color: var(--accent);
}

.accordion-icon {
  font-size: 1.25rem;
  transition: transform var(--transition);
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-body-inner {
  padding-bottom: 1.5rem;
}

.accordion-body-inner p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.accordion-body-inner strong {
  color: var(--text);
  font-weight: 600;
}

.accordion-body-inner ul {
  list-style: none;
  margin: 1rem 0 0.5rem;
}

.accordion-body-inner ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-body-inner ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 1rem;
}

.cta-section .hero-cta {
  margin-top: 1.5rem;
}

/* --- About Page --- */
.page-header {
  padding-top: calc(64px + 4rem);
  padding-bottom: 3rem;
}

.about-company {
  border-top: 1px solid var(--border);
}

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

.about-illustration {
  position: sticky;
  top: 100px;
}

.about-illustration img {
  width: 100%;
  max-width: 360px;
  filter: invert(1);
  opacity: 0.85;
}

.about-quote {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

/* --- Profile Section --- */
.profile-section {
  border-top: 1px solid var(--border);
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.profile-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  filter: grayscale(20%);
  transition: filter var(--transition);
}

.profile-photo:hover {
  filter: grayscale(0%);
}

.profile-name {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.profile-bio p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.profile-bio ul {
  list-style: none;
  margin: 1.5rem 0;
}

.profile-bio ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.profile-bio ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.profile-bio ul li strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* --- Legal Pages (Imprint, Privacy) --- */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  line-height: 1.9;
}

.legal-content ul {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail .label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  min-width: 80px;
}

.contact-detail .value {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.form-submit:hover {
  background: #99f6e4;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-dim);
}

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

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-left .location {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-left .tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(64px + 3rem);
    padding-bottom: 3rem;
  }

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

  .about-illustration {
    position: static;
  }

  .about-illustration img {
    max-width: 250px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }

  .profile-bio {
    text-align: left;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
