/* IMPORT CZCIONEK */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Share+Tech+Mono&display=swap");

:root {
  --bg-color: #0b0f19;
  --panel-bg: rgba(16, 24, 40, 0.85);
  --primary-blue: #00f0ff; /* "Protomolecule" Blue */
  --secondary-amber: #ffae00; /* Warning Amber */
  --text-dim: #8a9bb8;
  --text-light: #e6f1ff;
  --grid-line: rgba(0, 240, 255, 0.1);
}

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

body {
  background-color: #0b0f19; /* Kolor awaryjny */
  color: var(--text-light);
  font-family: "Share Tech Mono", monospace;
  overflow-x: hidden;
  margin: 0;
}

#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
}

/* EFEKT SCANLINE */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 999;
}

/* HEADER / HERO */
.interface-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

h1 {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  font-size: 3rem;
  letter-spacing: 2px;
  color: var(--text-light);
  text-shadow: 0 0 10px var(--primary-blue);
}

.header-subtitle {
  font-size: 0.8rem;
  color: var(--secondary-amber);
  margin-bottom: 5px;
}

.header-accent {
  color: var(--primary-blue);
}

.status-badge {
  border: 1px solid var(--primary-blue);
  padding: 0.2rem 1rem;
  color: var(--primary-blue);
  font-size: 0.9rem;
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* SEKCJA GLOWNA */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

/* KARTA PROFILOWA */
.profile-card {
  border: 1px solid var(--secondary-amber);
  padding: 1.5rem;
  position: relative;
}

.profile-card::before {
  content: "ID: MACIEJ-L-FRONTEND";
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--bg-color);
  padding: 0 5px;
  color: var(--secondary-amber);
  font-size: 0.8rem;
}

.profile-title {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.profile-details {
  margin-bottom: 1rem;
}

.profile-separator {
  margin-top: 1rem;
  border-top: 1px dashed var(--text-dim);
  padding-top: 1rem;
}

.warning-text {
  color: var(--secondary-amber);
  font-size: 0.8rem;
}

/* WIDEO PROFILOWE */
.avatar-placeholder {
  width: 100%;
  height: 400px; /* Zmniejszyłem z 500px, aby lepiej pasowało do proporcji */
  background: #1c2533;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--text-dim);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

/* Ukrywamy stary tekst NO SIGNAL, bo jest wideo */
.avatar-placeholder::after {
  display: none;
}

.avatar-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Lekki filtr cyjanowy dla klimatu */
  filter: opacity(0.9) contrast(1.1) brightness(1.1);
  mix-blend-mode: normal;
}

/* --- FORMULARZ KONTAKTOWY (NOWE STYLE) --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.5rem 0;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid var(--primary-blue);
  color: var(--text-light);
  padding: 12px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(138, 155, 184, 0.5); /* --text-dim z opacity */
}

/* Efekt po kliknięciu w pole */
.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  border-color: var(--text-light);
}

.contact-form textarea {
  height: 100px;
  resize: vertical; /* Pozwala rozciągać tylko w dół */
}

.btn-submit {
  width: 100%;
  cursor: pointer;
  margin-top: 5px;
}

/* Status formularza (JS) */
#form-status {
  text-align: center;
  letter-spacing: 1px;
}

/* USŁUGI */
.services-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.module {
  background: var(--panel-bg);
  border-left: 3px solid var(--primary-blue);
  padding: 1.5rem;
  transition: 0.3s;
  cursor: pointer;
}

.module:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateX(5px);
  box-shadow: -5px 0 15px rgba(0, 240, 255, 0.2);
}

.module h3 {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

p {
  line-height: 1.6;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* FOOTER */
.system-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--text-dim);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* PRZYCISKI */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  /* Sci-fi shape */
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn:hover {
  background: var(--primary-blue);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* --- BOOT SCREEN (EKRAN ŁADOWANIA) --- */
#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #05080f;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Share Tech Mono", monospace;
  transition:
    opacity 0.5s ease-out,
    visibility 0.5s;
}

#boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  text-align: center;
  width: 300px;
  color: var(--primary-blue);
  position: relative;
}

.reactor-ring {
  width: 80px;
  height: 80px;
  border: 2px dashed var(--primary-blue);
  border-top: 2px solid var(--secondary-amber);
  border-radius: 50%;
  margin: 0 auto 2rem auto;
  animation: spin 2s linear infinite;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.boot-text {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px var(--primary-blue);
}

.sub-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.blink {
  animation: blink-text 1s infinite;
}

.progress-bar-frame {
  width: 100%;
  height: 6px;
  border: 1px solid var(--text-dim);
  padding: 1px;
  margin-bottom: 1rem;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-blue);
  width: 0%;
  box-shadow: 0 0 10px var(--primary-blue);
  animation: load-bar 2.5s steps(10, end) forwards;
}

.tech-data {
  font-size: 0.6rem;
  color: var(--secondary-amber);
  text-align: right;
  border-top: 1px solid var(--secondary-amber);
  padding-top: 5px;
  opacity: 0;
  animation: fade-in 0.5s 2s forwards;
}

/* ANIMACJE */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes load-bar {
  0% {
    width: 0%;
  }
  20% {
    width: 15%;
  }
  40% {
    width: 30%;
  }
  50% {
    width: 60%;
  }
  80% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2rem;
  }
}
