/* ============================================================
   CREATIVE.CSS — Boot screen, section dots, FAB, back-to-top,
   neural-network canvas, decrypt-text effect.
   ============================================================ */

/* ╔═════════════════════════════════════════════════════════╗
   ║ 1. BOOT SEQUENCE OVERLAY (shows once on page load)      ║
   ╚═════════════════════════════════════════════════════════╝ */
#cr-boot {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: #050810;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8vh 6vw;
  font-family: 'Courier New', monospace;
  font-size: clamp(11px, 1.2vw, 13px);
  color: #00ff88;
  line-height: 1.7;
  letter-spacing: 0.5px;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
  overflow: hidden;
}
#cr-boot::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(0,180,255,0.15), transparent 60%),
    repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0,255,150,0.025) 2px, rgba(0,255,150,0.025) 3px);
  pointer-events: none;
}
#cr-boot.cr-boot-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cr-boot-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}
.cr-boot-line {
  opacity: 0;
  animation: crBootIn 0.04s ease forwards;
}
.cr-boot-line .ok    { color: #00d4ff; font-weight: 800; }
.cr-boot-line .warn  { color: #ffbd2e; font-weight: 800; }
.cr-boot-line .err   { color: #ff5566; font-weight: 800; }
.cr-boot-line .ready { color: #fff; font-weight: 800; text-shadow: 0 0 12px rgba(0,255,150,0.6); }
.cr-boot-line .dim   { color: rgba(255,255,255,0.45); }
@keyframes crBootIn { to { opacity: 1; } }
.cr-boot-bar {
  margin-top: 14px;
  width: 100%;
  max-width: 480px;
  height: 8px;
  background: rgba(0,255,150,0.10);
  border: 1px solid rgba(0,255,150,0.3);
  border-radius: 2px;
  overflow: hidden;
}
.cr-boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00d4ff, #00ff88);
  box-shadow: 0 0 10px rgba(0,255,150,0.6);
  transition: width 0.05s linear;
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 2. SECTION INDICATOR DOTS (right edge of viewport)      ║
   ╚═════════════════════════════════════════════════════════╝ */
#cr-dots {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 99997;
}
.cr-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0, 120, 255, 0.22);
  border: 1.5px solid rgba(0, 120, 255, 0.30);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.cr-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #0a0a14;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 120, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,30,90,0.10);
}
.cr-dot:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.cr-dot:hover {
  background: linear-gradient(135deg, #007bff, #00d4ff);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.6);
}
.cr-dot.active {
  background: linear-gradient(135deg, #007bff, #00d4ff);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.7);
  width: 12px; height: 12px;
}
@media (max-width: 860px) { #cr-dots { display: none; } }

/* ╔═════════════════════════════════════════════════════════╗
   ║ 3. NEURAL-NETWORK CANVAS (behind About section)         ║
   ╚═════════════════════════════════════════════════════════╝ */
#cr-neural {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 4. FLOATING QUICK-ACTION FAB (bottom right)             ║
   ╚═════════════════════════════════════════════════════════╝ */
#cr-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 99996;
  display: flex; flex-direction: column-reverse; align-items: center;
  gap: 12px;
}
.cr-fab-main {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow:
    0 10px 32px rgba(0, 120, 255, 0.45),
    inset 0 0 0 1px rgba(255,255,255,0.30);
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cr-fab-main::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  filter: blur(14px);
  opacity: 0.45;
  z-index: -1;
  animation: crFabPulse 2.4s ease-in-out infinite;
}
@keyframes crFabPulse { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.18); } }
.cr-fab-main:hover { transform: translateY(-3px) rotate(45deg); box-shadow: 0 14px 40px rgba(0, 120, 255, 0.55); }
.cr-fab-main.open  { transform: rotate(135deg); }

.cr-fab-actions {
  display: flex; flex-direction: column-reverse;
  gap: 12px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.85);
  transition: all 0.28s cubic-bezier(.2,.8,.2,1);
}
.cr-fab-actions.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.cr-fab-action {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(0,120,255,0.18);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none !important;
  color: #007bff !important;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 30, 90, 0.12);
  transition: all 0.22s;
  position: relative;
}
.cr-fab-action:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: transparent;
  color: #fff !important;
}
.cr-fab-action[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0a0a14;
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,30,90,0.12);
  border: 1px solid rgba(0,120,255,0.10);
}
.cr-fab-action:hover[data-tip]::before { opacity: 1; transform: translateY(-50%) translateX(0); }
/* Brand colors on hover */
.cr-fab-action.email:hover    { background: linear-gradient(135deg, #007bff, #00d4ff); }
.cr-fab-action.whatsapp:hover { background: #25D366; color: #fff !important; }
.cr-fab-action.linkedin:hover { background: #0A66C2; color: #fff !important; }
.cr-fab-action.instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff !important; }
.cr-fab-action.facebook:hover { background: #1877F2; color: #fff !important; }
.cr-fab-action.github:hover   { background: #0a0a14; color: #fff !important; }
.cr-fab-action.cv:hover       { background: linear-gradient(135deg, #007bff, #00d4ff); color: #fff !important; }

/* ╔═════════════════════════════════════════════════════════╗
   ║ 5. BACK-TO-TOP BUTTON (above FAB)                       ║
   ╚═════════════════════════════════════════════════════════╝ */
#cr-top {
  position: fixed;
  bottom: 28px; left: 28px;
  z-index: 99995;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(0,120,255,0.20);
  color: #007bff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,30,90,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(10px);
  text-decoration: none !important;
}
#cr-top.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#cr-top:hover {
  background: linear-gradient(135deg, #007bff, #00d4ff);
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(0, 120, 255, 0.42);
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 6. DECRYPT-TEXT effect (random chars → real text)       ║
   ╚═════════════════════════════════════════════════════════╝ */
.cr-decrypt-active {
  /* While decrypting, give it a subtle cyan tint via filter */
  filter: hue-rotate(-2deg);
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 7. KONAMI MATRIX OVERLAY (when ↑↑↓↓←→←→ba triggered)    ║
   ╚═════════════════════════════════════════════════════════╝ */
#cr-konami {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 5, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'Courier New', monospace;
  color: #00ff88;
  pointer-events: none;
}
#cr-konami.show {
  display: flex;
  animation: crKonami 4s ease-out forwards;
}
#cr-konami h1 {
  font-size: clamp(40px, 7vw, 100px);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 0 30px rgba(0, 220, 255, 0.7),
    0 0 60px rgba(0, 220, 255, 0.5);
  letter-spacing: -0.02em;
  margin: 0;
}
#cr-konami p {
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 16px;
  color: #00d4ff;
}
@keyframes crKonami {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ╔═════════════════════════════════════════════════════════╗
   ║ 8. MOBILE ADJUSTMENTS                                   ║
   ╚═════════════════════════════════════════════════════════╝ */
@media (max-width: 768px) {
  #cr-fab        { bottom: 18px; right: 18px; }
  #cr-fab .cr-fab-main { width: 52px; height: 52px; font-size: 18px; }
  .cr-fab-action { width: 44px; height: 44px; font-size: 16px; }
  #cr-top        { bottom: 18px; left: 18px; width: 44px; height: 44px; }
}
