/* ============================================
   SPYROSK.GR — Dark Greek Technical Variant (Rebuilt)
   Raw, precise, battle-tested. No plastic. Greek technical soul.
   Deep rich darks, honest materials, excellent typography.
   ============================================ */

:root {
  --bg: #050505;
  --bg-elev: #0a0a0a;
  --panel: #111111;
  --panel-2: #161616;
  --border: #222222;
  --border-subtle: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a1a1a1;
  --accent: #00f0ff;
  --accent-dim: #00c8d4;
  --green: #39ff14;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1280px;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle technical texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display { 
  font-family: var(--font-display); 
  font-weight: 700; 
  line-height: 0.95; 
  letter-spacing: -0.03em; 
}

h1 { font-size: clamp(3rem, 7vw, 7.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: 1.4rem; }

p { color: var(--text-muted); margin: 0 0 1.2em; }

/* Clean section labels - no overlapping, honest Greek-technical style */
.eyebrow, .section-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
  position: relative;
}

.eyebrow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

/* Honest surfaces - rich dark with character */
.glass, .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

[x-cloak] { display: none !important; }

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
  z-index: 200;
  pointer-events: none;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-nav--scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav .brand img {
  width: clamp(130px, 12vw, 168px);
  height: auto;
}

.site-nav__links {
  align-items: center;
  gap: 4px;
}

.site-nav__links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-nav__links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.98);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 8px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Hero - sharp and personal */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 100px 0 60px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--panel);
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.page-hero {
  padding: 140px 0 64px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  max-width: 16ch;
  margin: 12px 0 0;
}

.project-media {
  min-height: 140px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.project-body h3 { margin: 0 0 10px; font-size: 1.2rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.legal-page {
  width: min(calc(100% - 48px), 720px);
  margin: 120px auto 80px;
  padding: 0 24px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent);
  font-size: 0.9rem;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success .check {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: .9;
  margin: 0 0 24px;
  max-width: 18ch;
}

.hero-content .subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.23,1,0.32,1);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--accent-dim);
}

/* Sections - generous, disciplined */
.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 100px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header h2 { margin: 8px 0 16px; }

/* Expertise & Work grids - honest and substantial */
.expertise-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.expertise-card, .project-card {
  padding: 32px 28px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.expertise-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 1.6rem;
}

/* Project filters - clean */
.project-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 8px 20px;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.1s ease;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--accent);
  color: #050505;
  border-color: var(--accent);
}

/* Journey / Timeline - earned, not decorative */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--border), var(--accent-dim));
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(0,240,255,0.08);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline-item h4 { 
  margin: 6px 0 10px; 
  font-size: 1.25rem; 
}

/* Arsenal / Stack - technical and clear */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stack-group {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}

.stack-group h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-pill {
  font-size: 0.76rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  transition: all .1s ease;
}

.stack-pill:hover {
  background: rgba(0,240,255,0.08);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* Contact form - direct and honest */
.contact-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  padding: 52px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color .1s ease, box-shadow .1s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 4px rgba(0,240,255,0.08);
}

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

/* Footer - clean and present */
.site-footer {
  padding: 70px 0 50px;
  border-top: 1px solid var(--border-subtle);
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* Modal - clean and focused */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal.open { display: flex; }

.modal-content {
  width: min(100%, 820px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px 46px;
  max-height: 92vh;
  overflow: auto;
}

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 88px; }
  .hero-visual { min-height: 300px; }
  .contact-panel { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 2.9rem; }
  .section { padding: 70px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}