:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #0f172a;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.65),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-role {
  font-size: 0.86rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  padding: 72px 20px 40px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero-text p {
  margin: 0 0 24px;
  max-width: 480px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #0b1120;
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.45);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.9);
}

.btn.ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.btn.full-width {
  width: 100%;
}

.hero-panorama {
  position: relative;
}

.panorama-tag {
  position: absolute;
  top: -14px;
  right: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.panorama-window {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panorama-window.tall {
  min-height: 220px;
}

.panorama-window.projects {
  border-color: rgba(34, 197, 94, 0.35);
}

.panorama-strip {
  display: flex;
  gap: 12px;
  transition: transform 0.5s ease;
  min-height: 150px;
  padding-left: 10px;
  padding-right: 10px;
}

.panorama-card {
  flex: 0 0 56%;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f2937, #0b1120);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.75);
}

.panorama-card.accent {
  border-color: var(--accent);
  background: radial-gradient(circle at top, var(--accent-soft), #020617 60%);
}

/* Dots / controls for panoramas */
.panorama-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.panorama-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease,
    border-color 0.18s ease;
}

.panorama-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

/* Lightbox */
.panorama-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.panorama-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
}

.panorama-lightbox-inner {
  position: relative;
  z-index: 41;
  max-width: min(90vw, 960px);
  max-height: min(90vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panorama-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.panorama-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.8rem;
  cursor: pointer;
}

.panorama-lightbox-prev,
.panorama-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.panorama-lightbox-prev {
  left: -46px;
}

.panorama-lightbox-next {
  right: -46px;
}

.section {
  padding: 40px 20px;
}

.section.alt {
  background: radial-gradient(circle at top, #020617 0, #020617 60%);
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 26px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.panorama-pane
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 40px;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: radial-gradient(circle at top, #020617 0, #020617 60%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.card .meta {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: #d1d5db;
}

.card + .card {
  margin-top: 10px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.card-links a {
  color: var(--accent);
}

.card-links a:hover {
  text-decoration: underline;
}

.timeline {
  max-width: 960px;
  margin: 16px auto 0;
  position: relative;
  padding: 32px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-line {
  position: absolute;
  top: 48px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.1),
    rgba(148, 163, 184, 0.7),
    rgba(148, 163, 184, 0.1)
  );
}

.timeline-point {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1 1 120px;
}

.timeline-point::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: #020617;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
}

.timeline-point .year {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 40px;
}

.timeline-point .label {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-align: center;
}

.timeline-point .label-place{
    margin-top: 15px;
    font-size: 0.6rem;
    color: #e5e7eb;
    text-align: center;
  }

.contact-section {
  padding-bottom: 50px;
}

.contact-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

.contact-form {
  background: radial-gradient(circle at top, #020617 0, #020617 60%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.86rem;
  color: var(--muted);
}

.field input,
.field textarea {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 11px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: var(--text);
  padding: 9px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
  background: #020617;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-info {
  font-size: 0.94rem;
  color: var(--muted);
}

.contact-info a {
  color: var(--accent);
}

.contact-info ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer {
  padding: 16px 20px 26px;
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 840px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panorama {
    order: -1;
  }

  .split-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-layout.reverse {
    direction: ltr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .timeline {
    padding-inline: 18px;
  }

  .timeline-point .label {
    font-size: 0.85rem;
    max-width: 160px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding-inline: 16px;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .panorama-window {
    padding: 12px;
  }
}

