/* === COLOR VARIABLES === */
:root {
  --neon-pink: rgba(195,7,63,1);
  --neon-pink-soft: rgba(195,7,63,0.45);
  --neon-cyan: rgba(0,220,200,1);
  --neon-cyan-soft: rgba(0,220,200,0.35);
  --neon-purple: rgba(160,80,255,0.8);
  --accent-green: #3ddc84;

  --glow: 0 0 14px var(--neon-pink);
  --glow-soft: 0 0 8px var(--neon-pink-soft);
  --cyan-glow: 0 0 12px rgba(0,220,200,0.6);

  --bg-base: #0c0c10;
  --bg-panel: rgba(10,10,16,0.72);
  --bg-panel-hover: rgba(14,14,22,0.85);

  /* Readable text — not harsh white */
  --text-primary: #d8d8e8;
  --text-secondary: #a0a0b8;
  --text-dim: rgba(200,200,220,0.55);
}

/* === BASE BODY === */
body {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-size: 100%;
  background-attachment: fixed;
  background-position: center;
  text-align: center;
  height: 100%;
  overflow-x: hidden;

  /* Subtle grid pattern — cyberpunk city grid feel */
  background-image:
    linear-gradient(rgba(0,220,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,220,200,0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 0%, rgba(195,7,63,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(160,80,255,0.08) 0%, transparent 55%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
}

/* === SCANLINE OVERLAY === */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  z-index: 9999998;
}

/* === TYPOGRAPHY === */
h1 {
  font-family: "Libre Barcode 39 Text";
  font-size: 50px;
  color: var(--neon-pink);
  margin: 20px 0;
  text-align: center;
  text-shadow: 0 0 18px rgba(195,7,63,0.5);
}

h2 {
  font-family: "Iceland";
  font-size: 24px;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0,220,200,0.4);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* === TERMINAL TYPE-IN TITLE === */
.type-boot {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--neon-pink);
  animation: typeIn 2.4s steps(22, end), cursorBlink 0.8s step-end infinite;
}

@keyframes typeIn { from { width: 0; } to { width: 100%; } }
@keyframes cursorBlink {
  0%, 49% { border-color: var(--neon-pink); }
  50%, 100% { border-color: transparent; }
}

/* === CONTENT WRAPPER === */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  text-align: left;
}

/* === ACCORDION === */
.accordion {
  width: 100%;
  background: rgba(10, 10, 16, 0.75);
  border: 1px solid rgba(195, 7, 63, 0.30);
  border-left: 3px solid var(--neon-pink);
  padding: 14px 18px;
  margin-top: 20px;
  text-align: center;
  font-family: "Iceland", sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--neon-pink);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  transition: border-color .25s, box-shadow .25s, background .25s;
  overflow: visible;
}

.accordion:hover {
  border-color: rgba(195, 7, 63, 0.60);
  border-left-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(195, 7, 63, 0.30), inset 0 0 20px rgba(195,7,63,0.04);
}

.accordion::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(195, 7, 63, 0.12);
  pointer-events: none;
}

.accordion::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(195,7,63,0.0),
    rgba(195,7,63,0.18),
    rgba(0,220,200,0.18),
    rgba(195,7,63,0.0)
  );
  pointer-events: none;
}

.accordion.is-open {
  background: rgba(195,7,63,0.06);
  box-shadow: 0 0 16px rgba(195, 7, 63, 0.28);
  border-color: rgba(195, 7, 63, 0.60);
}

.accordion.is-open .scan-bar {
  width: 40%;
  height: 2px;
  position: absolute;
  bottom: -2px;
  left: -20%;
  background: linear-gradient(to right, var(--neon-pink), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-pink);
  animation: hudScan 2.2s linear infinite;
  pointer-events: none;
}

@keyframes hudScan {
  0%   { transform: translateX(0%);   opacity: 0.2; }
  50%  { transform: translateX(160%); opacity: 1; }
  100% { transform: translateX(300%); opacity: 0; }
}

/* === ACCORDION CONTENT === */
.accordion-content {
  display: none;
  background: rgba(5, 5, 10, 0.80);
  border-left: 1px solid rgba(195, 7, 63, 0.20);
  border-right: 1px solid rgba(195, 7, 63, 0.20);
  border-bottom: 1px solid rgba(195, 7, 63, 0.20);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease, padding .35s ease;
}

.accordion.is-open + .accordion-content {
  display: block;
  padding: 24px;
}

/* === MECHA PANELS === */
.mecha-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(195, 7, 63, 0.28);
  border-top: 2px solid rgba(0,220,200,0.25);
  padding: 18px;
  position: relative;
  overflow: visible;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.mecha-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(0, 220, 200, 0.08);
  pointer-events: none;
}

/* Corner accents */
.mecha-panel::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  border-top: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  opacity: 0.4;
  pointer-events: none;
}

.mecha-panel:hover {
  background: var(--bg-panel-hover);
  border-color: rgba(0, 220, 200, 0.35);
  border-top-color: rgba(0,220,200,0.55);
  box-shadow: 0 0 18px rgba(0,220,200,0.12), 0 0 6px rgba(195,7,63,0.18);
}

/* Responsive iframes */
.mecha-panel iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

@media (min-width: 900px) {
  .mecha-panel iframe {
    aspect-ratio: 16 / 10;
  }
}

/* === HUD LABELS === */
.hud-label {
  font-family: "Iceland";
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0,220,200,0.65);
  display: block;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(0,220,200,0.35);
  user-select: none;
}

.hud-id {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: "Iceland";
  font-size: 12px;
  color: rgba(0,220,200,0.45);
  text-shadow: 0 0 6px rgba(0,220,200,0.2);
  user-select: none;
  letter-spacing: 1px;
}

/* === PANEL GRID === */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel-grid iframe {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border: none;
}

/* === INTRO / IDENTITY PANEL === */
.intro-text {
  font-family: 'Iceland', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-top: 8px;
}

.tech-stack {
  color: var(--accent-green);
  margin-top: 14px;
  font-weight: bold;
  font-family: 'Iceland', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(61,220,132,0.3);
}

/* === PROJECT DESCRIPTIONS === */
.project-desc {
  font-family: 'Iceland', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.55;
}

.project-desc strong {
  color: var(--neon-cyan);
}

/* === BUTTONS === */
.vgen-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  color: var(--neon-cyan);
  border: 1px solid rgba(0,220,200,0.5);
  text-decoration: none;
  font-family: 'Iceland', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 2px;
  transition: all 0.2s ease-in-out;
  background: rgba(0,220,200,0.04);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.vgen-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(0,220,200,0.08) 100%);
  pointer-events: none;
}

.vgen-btn:hover {
  background: rgba(0,220,200,0.12);
  color: #fff;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0,220,200,0.35);
}

/* === IFRAMES (general) === */
iframe {
  width: 100%;
  max-width: 1200px;
  height: 650px;
  border: 1px solid rgba(195,7,63,0.35);
  border-radius: 0;
  display: block;
  margin: 28px auto;
  box-shadow: 0 0 20px rgba(195,7,63,0.25);
  transition: 0.3s;
}
iframe:hover {
  box-shadow: 0 0 35px rgba(0,220,200,0.3), 0 0 12px rgba(195,7,63,0.3);
  transform: translateY(-3px);
}

/* === SOCIAL ICONS === */
.fa { font-size: 32px; color: var(--neon-pink); transition: 0.3s; }
.fa:hover { text-shadow: var(--glow); }

/* === HOLOGRAM NOISE OVERLAY === */
.holo-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  mix-blend-mode: overlay;
  opacity: 0.06;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");
  animation: holoNoiseShift 8s infinite linear;
  z-index: 999999;
}
@keyframes holoNoiseShift {
  from { transform: translate(0,0); }
  to   { transform: translate(80px,50px); }
}

/* === LOGO === */
@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 10px var(--neon-pink)) drop-shadow(0 0 20px rgba(195,7,63,0.3)); opacity: 0.92; }
  50%     { filter: drop-shadow(0 0 22px var(--neon-pink)) drop-shadow(0 0 40px rgba(195,7,63,0.4)); opacity: 1; }
}

.holo-logo {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px var(--neon-pink));
  animation: logoPulse 4s ease-in-out infinite;
  position: relative;
}

/* === HOLO LOAD SEQUENCE === */
#holo-load {
  position: fixed;
  inset: 0;
  background: #07070c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  animation: fadeOutLoader 1.6s ease forwards 2s;
}
#holo-load img {
  width: 180px;
  filter: drop-shadow(0 0 28px var(--neon-pink));
  animation: logoPulse 2.4s infinite ease-in-out;
}
#holo-load span {
  margin-top: 18px;
  font-family: "Iceland";
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--neon-cyan);
  opacity: 0.8;
  animation: cursorBlink 1.2s infinite;
}
@keyframes fadeOutLoader { to { opacity: 0; visibility: hidden; } }

/* === CONTACT FOOTER === */
.contact-hud {
  margin-top: 80px;
  padding: 36px 0 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  background: rgba(5, 5, 10, 0.55);
  border-top: 1px solid rgba(0,220,200,0.15);
  position: relative;
}

.contact-hud::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--neon-pink), var(--neon-cyan), transparent);
}

.contact-badge img {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 0 16px var(--neon-pink));
  animation: badgePulse 4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,100% { filter: drop-shadow(0 0 10px var(--neon-pink)); opacity: 0.85; }
  50%     { filter: drop-shadow(0 0 24px var(--neon-pink)); opacity: 1; }
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Iceland", sans-serif;
  letter-spacing: 2px;
}

.contact-label {
  font-size: 15px;
  color: rgba(0,220,200,0.55);
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.contact-link {
  font-size: 22px;
  text-transform: uppercase;
  position: relative;
  padding-left: 12px;
  transition: color 0.3s, text-shadow 0.3s;
  color: var(--text-primary);
  text-decoration: none;
}

.contact-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0,220,200,0.6), 0 0 18px rgba(0,220,200,0.3);
}

.contact-link::after {
  content: attr(data-code);
  font-size: 11px;
  opacity: 0;
  color: var(--neon-cyan);
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity .3s, right .3s;
}

.contact-link:hover::after {
  opacity: 0.8;
  right: -90px;
}

/* === GLITCH === */
@keyframes glitch-flicker {
  0% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(-1px); }
  51% { opacity: 1; transform: translateX(1px); }
  100% { opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  h1 { font-size: 34px; }
  .contact-hud { flex-direction: column; gap: 24px; }
  .contact-badge img { width: 80px; height: 80px; }
}
