/* ============================================
   Portfolio BTS SIO — Alex-Junior Gross
   Aesthetic: refined technical / terminal-inspired
   ============================================ */

:root {
  --bg: #0a0e1a;
  --bg-elevated: #11162a;
  --bg-card: #131a30;
  --surface: #1a2240;
  --border: #1f2a4a;
  --border-bright: #2d3a66;

  --text: #e7ecf5;
  --text-muted: #9aa3bd;
  --text-dim: #5b6485;

  --accent: #58e1ff;       /* cyan terminal */
  --accent-strong: #7af5d6; /* mint accent */
  --accent-warm: #ffb454;  /* amber for highlights */

  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;

  --max-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grid background overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(88, 225, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 225, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 75%);
}

main, header, footer { position: relative; z-index: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.logo-bracket { color: var(--accent); }
.logo-text { color: var(--text); }
.logo-cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a::before {
  content: "/ ";
  color: var(--text-dim);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 120px 0 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 225, 255, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

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

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.1s forwards;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.35s; }

.hero-line--accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

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

.hero-sub {
  max-width: 640px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.65s forwards;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}

.pill-label {
  color: var(--text-dim);
  margin-right: 8px;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(88, 225, 255, 0.08);
  border: 1px solid rgba(88, 225, 255, 0.2);
  border-radius: var(--radius);
}

.section-header h2,
.profil h2,
.contact h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================
   REALISATIONS / CARDS
   ============================================ */

.realisations {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 56px;
}

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px -20px rgba(88, 225, 255, 0.15),
    0 1px 0 0 rgba(88, 225, 255, 0.1) inset;
}

.card:hover::before { opacity: 1; }

.card:hover .card-arrow { transform: translateX(6px); color: var(--accent); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.card-number {
  color: var(--accent);
  letter-spacing: 0.05em;
}

.card-status {
  color: var(--accent-strong);
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.card-title-accent {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0;
}

.card-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.card-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.card-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

/* ============================================
   PROFIL
   ============================================ */

.profil {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.profil-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .profil-grid { grid-template-columns: 1fr 1.5fr; gap: 80px; }
}

.profil-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.7;
}

.profil-text strong {
  color: var(--text);
  font-weight: 500;
}

.profil-info {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 18px;
}

.profil-info > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: baseline;
}

.profil-info dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.profil-info dd {
  font-size: 15px;
  color: var(--text);
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 100px 0 120px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-lead {
  max-width: 580px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 17px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(88, 225, 255, 0.5);
}

.btn--ghost {
  border-color: var(--border-bright);
  color: var(--text);
  background: var(--bg-elevated);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn span { transition: transform 0.2s ease; }
.btn:hover span { transform: translateX(4px); }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-meta,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   REALISATION DETAIL PAGE
   ============================================ */

.realisation-page {
  padding: 64px 0 100px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }
.back-link::before { content: "←"; }

.realisation-header {
  margin-bottom: 56px;
  max-width: 880px;
}

.realisation-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.realisation-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.realisation-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 720px;
}

.realisation-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}

.realisation-meta-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.realisation-meta-item dd {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.pdf-section {
  margin-bottom: 48px;
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
}

.pdf-filename {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-filename::before {
  content: "▸";
  color: var(--accent);
}

.pdf-actions { display: flex; gap: 8px; }

.pdf-action {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.pdf-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pdf-frame {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #fff;
  display: block;
}

.pdf-fallback {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
}

.pdf-fallback a {
  color: var(--accent);
  font-family: var(--font-mono);
}

.realisation-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.realisation-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.realisation-nav a:hover { color: var(--accent); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero { padding: 80px 0 60px; }
  .card { padding: 24px; }
  .pdf-frame { height: 70vh; min-height: 500px; }
  .pdf-toolbar { padding: 12px 14px; }
}
