/* Minimalist Custom Styles */

/* Speech bubble caret */
.speech-bubble {
  position: relative;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background-color: #18181B;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Character Origin */
.penguin-wrapper {
  transform-origin: bottom center;
}

button:active, a:active {
  transform: scale(0.98);
}

/* Custom Scrollbar for Screenshot Showcase */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.8);
}

/* Screenshot Cards Glassmorphic Glow */
.screenshot-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.screenshot-card:hover {
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.25);
}

/* Lightbox Modal */
#lightbox-modal {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Floating YouTube Video Widget */
#floating-video-widget {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#floating-video-widget.minimized {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-ring {
  animation: pulse-ring 2.5s infinite ease-in-out;
}

/* Blog Visual Showcase & Device Mockups */
.blog-device-frame {
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.12);
  overflow: hidden;
}

.blog-img-zoom {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-img-zoom:hover {
  transform: scale(1.02);
}

/* ============================================================
   OBSIDIAN MOTION GRAPHICS & EDITORIAL STYLES
   Inspired by obsidianArea motion design & Nomi raster aesthetics
   ============================================================ */

/* Editorial Background Typography */
.editorial-bg-text {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

/* Obsidian Glassmorphism Callouts */
.obsidian-callout {
  background: rgba(18, 18, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.obsidian-callout:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(99, 102, 241, 0.25);
}

/* Typing Cursor */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  color: #818cf8;
  font-weight: bold;
  animation: blink-cursor 0.9s infinite step-start;
}

/* Border Beam Animation */
@keyframes border-beam {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

.border-beam-box {
  position: relative;
  overflow: hidden;
}

.border-beam-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.8) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  background-size: 200% 100%;
  animation: shimmer-border 4s linear infinite;
}

@keyframes shimmer-border {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scanline / Venetian Raster Effect */
.scanline-texture {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
}

/* Interactive Spotlight Card */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* SVG Data Stream Circuit Flow Animation */
@keyframes flow-circuit {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}

.circuit-path {
  stroke-dasharray: 6 6;
  animation: flow-circuit 2s linear infinite;
}

@keyframes pulse-glow-dot {
  0%, 100% { r: 4px; opacity: 1; }
  50% { r: 6px; opacity: 0.6; }
}

.circuit-dot {
  animation: pulse-glow-dot 2s ease-in-out infinite;
}

/* Smooth 3D Card Tilt */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}


