/* My Mobile Apps — Custom Mobile & Web Apps & QA Testing - Jose Rene Navarro */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-subheading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-primary: #0066FF;
  --color-primary-dark: #004ecc;
  --color-accent-cyan: #00F0FF;
  --color-obsidian: #090D16;
  --color-dark-card: #0F172A;
  --color-emerald: #10B981;
}

body {
  font-family: var(--font-body);
  color: #0f172a;
  background-color: #ffffff;
  overflow-x: hidden;
  letter-spacing: -0.015em;
}

h1, h2, h3, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Ambient Radial Mesh Gradients (Unique & High-Tech) */
.ambient-glow-top {
  background: radial-gradient(circle at 50% -10%, rgba(0, 102, 255, 0.12) 0%, rgba(0, 240, 255, 0.05) 30%, transparent 65%);
}

.ambient-glow-dark {
  background: radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.18) 0%, rgba(0, 240, 255, 0.08) 35%, transparent 70%);
}

/* Studio Dot Grid Background */
.studio-dots {
  background-image: radial-gradient(rgba(148, 163, 184, 0.28) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

/* ─── Page Transition Animations ─────────────────────────────────────────── */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.page-enter {
  animation: pageEnter 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-exit {
  animation: pageExit 0.18s ease-in both;
  pointer-events: none;
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Bespoke Button Styling: Glow Halo & Refined Hover */
.btn-precision {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(0, 102, 255, 0.35);
}

.btn-precision:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 102, 255, 0.5), 0 0 0 1px rgba(0, 240, 255, 0.3);
}

.btn-precision:active {
  transform: translateY(0);
}

/* Subtle Shimmer for interactive elements */
@keyframes studioShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(250%) rotate(30deg); }
}

.shimmer-trigger {
  position: relative;
  overflow: hidden;
}

.shimmer-trigger::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(30deg);
  pointer-events: none;
}

.shimmer-trigger:hover::after {
  animation: studioShimmer 0.85s ease-out;
}

/* Interactive Studio Mobile Phone Mockup */
.studio-phone {
  width: 320px;
  height: 640px;
  background: #090d16;
  border: 10px solid #1e293b;
  border-radius: 44px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .studio-phone {
    width: 290px;
    height: 590px;
    border-width: 8px;
    border-radius: 36px;
  }
}

.studio-phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.studio-phone-screen {
  height: 100%;
  width: 100%;
  background: #f8fafc;
  overflow-y: auto;
  padding-top: 40px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
}

/* Biometric Mesh Scan Animation */
@keyframes meshPulse {
  0% { stroke-dashoffset: 200; opacity: 0.3; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0.3; }
}

.biometric-mesh-line {
  stroke-dasharray: 8 4;
  animation: meshPulse 3s infinite linear;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Terminal Cursor Blink */
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #00f0ff;
  vertical-align: middle;
  animation: cursorBlink 1s infinite;
}

/* Global Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* =========================================================================
   Interactive My Mobile Apps Brand Logo & Direct-to-Top Animations
   ========================================================================= */
@keyframes logoClickPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
  }
  35% {
    transform: scale(0.92) rotate(-2deg);
    box-shadow: 0 0 20px 6px rgba(0, 240, 255, 0.85);
  }
  65% {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 0 28px 10px rgba(0, 102, 255, 0.55);
  }
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
  }
}

@keyframes logoShineSweep {
  0% {
    transform: translateX(-150%) skewX(-20deg);
  }
  100% {
    transform: translateX(250%) skewX(-20deg);
  }
}

.logo-interactive-container {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.logo-interactive-container:hover {
  transform: translateY(-2px);
}

.logo-interactive-container:active {
  transform: scale(0.94);
}

.logo-click-active {
  animation: logoClickPulse 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-mark-wrapper {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-interactive-container:hover .logo-mark-wrapper {
  transform: scale(1.05);
  border-color: rgba(0, 240, 255, 0.7) !important;
  box-shadow: 0 6px 20px -3px rgba(0, 102, 255, 0.45), 0 0 12px 2px rgba(0, 240, 255, 0.35);
}

.logo-mark-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: translateX(-150%) skewX(-20deg);
  pointer-events: none;
}

.logo-interactive-container:hover .logo-mark-wrapper::after {
  animation: logoShineSweep 0.9s ease-out;
}

/* =========================================================================
   My Mobile Apps AI Concierge Chatbot Widget
   ========================================================================= */

/* Floating Chatbot Launcher */
.ai-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.ai-chat-launcher:hover {
  transform: translateY(-4px) scale(1.04);
}

.ai-chat-launcher:active {
  transform: scale(0.95);
}

@keyframes aiAuraPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.6), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 240, 255, 0), 0 12px 30px -5px rgba(0, 102, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  }
}

.ai-launcher-btn {
  animation: aiAuraPulse 3s infinite ease-in-out;
}

/* Chatbot Floating Window */
.ai-chat-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(0, 102, 255, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.ai-chat-window.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateY(20px);
  pointer-events: none;
}

.ai-chat-window.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Chat Messages Scroll Area */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}

/* Chat Bubble Animations */
@keyframes messageSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble {
  animation: messageSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typing Indicator Animation */
@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-dot {
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* =========================================================================
   Silicon Valley 10/10 Tier Upgrades: Titanium Frame, AI Avatar, Bento Cards
   ========================================================================= */

/* AI Avatar Glowing Holographic Orb */
@keyframes aiOrbBreath {
  0%, 100% {
    box-shadow: 0 0 16px 2px rgba(0, 240, 255, 0.4), 0 0 0 1px rgba(0, 240, 255, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 28px 6px rgba(0, 102, 255, 0.6), 0 0 0 2px rgba(0, 240, 255, 0.85);
    transform: scale(1.04);
  }
}

.ai-avatar-glow {
  animation: aiOrbBreath 3.5s infinite ease-in-out;
}

/* AI Launcher Teaser Tooltip */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ai-teaser-badge {
  animation: floatBadge 3s infinite ease-in-out;
  box-shadow: 0 8px 20px -4px rgba(0, 102, 255, 0.4), 0 0 0 1px rgba(0, 240, 255, 0.3);
}

/* Authentic iPhone 16 Pro Titanium Device Wrapper */
.iphone-pro-frame {
  position: relative;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(145deg, #475569 0%, #1e293b 35%, #0f172a 70%, #1e293b 100%);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 3px #1e293b,
    0 0 0 4.5px rgba(255, 255, 255, 0.09),
    0 30px 75px -15px rgba(0, 0, 0, 0.8),
    0 15px 45px -5px rgba(0, 102, 255, 0.35);
  isolation: isolate;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.iphone-pro-frame:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 
    0 0 0 1px rgba(0, 240, 255, 0.45),
    0 0 0 3px #1e293b,
    0 0 0 5px rgba(0, 102, 255, 0.3),
    0 35px 85px -15px rgba(0, 0, 0, 0.85),
    0 20px 55px -5px rgba(0, 102, 255, 0.45);
}

/* Hardware Physical Buttons on Chassis */
.iphone-btn-action {
  position: absolute;
  left: -4px;
  top: 105px;
  width: 4px;
  height: 26px;
  background: linear-gradient(180deg, #64748b, #334155);
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.iphone-btn-vol-up {
  position: absolute;
  left: -4px;
  top: 148px;
  width: 4px;
  height: 52px;
  background: linear-gradient(180deg, #64748b, #334155);
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.iphone-btn-vol-down {
  position: absolute;
  left: -4px;
  top: 212px;
  width: 4px;
  height: 52px;
  background: linear-gradient(180deg, #64748b, #334155);
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.iphone-btn-power {
  position: absolute;
  right: -4px;
  top: 160px;
  width: 4px;
  height: 72px;
  background: linear-gradient(180deg, #64748b, #334155);
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Top Ear Speaker Slit */
.iphone-speaker-slit {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3.5px;
  background: #0f172a;
  border-radius: 2px;
  z-index: 20;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8);
}

.iphone-inner-screen {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Specular Glass Sheen Overlay on Screen */
.iphone-glass-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 45%, transparent 100%);
  pointer-events: none;
  border-radius: 44px 44px 0 0;
  z-index: 15;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.island-camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e293b, #030712 70%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 2px rgba(0, 240, 255, 0.3);
}

/* iOS Home Indicator Bar */
.iphone-home-indicator {
  width: 130px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  margin: 8px auto 4px auto;
  pointer-events: none;
  transition: background 0.3s ease;
}

.iphone-pro-frame:hover .iphone-home-indicator {
  background: rgba(255, 255, 255, 0.55);
}

/* AI Face ID Reticle & Laser Scanline Animation */
@keyframes faceScanSweep {
  0% { transform: translateY(-100%); opacity: 0.8; }
  50% { opacity: 1; }
  100% { transform: translateY(280%); opacity: 0.8; }
}

.face-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00f0ff 50%, transparent 100%);
  box-shadow: 0 0 8px #00f0ff, 0 0 16px rgba(0, 240, 255, 0.6);
  animation: faceScanSweep 1.1s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulseGlowRing {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.pulse-ring-glow {
  animation: pulseGlowRing 2.2s infinite ease-in-out;
}

/* Bento Grid Cards with Fine Light Border */
.bento-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bento-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 102, 255, 0.28), 0 0 20px 2px rgba(0, 240, 255, 0.1);
}

/* Custom Interactive ROI Range Slider */
input[type=range].roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0066ff, #00f0ff);
  outline: none;
}

input[type=range].roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0066ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

input[type=range].roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Copy Code Toast */
.code-copy-btn {
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #00f0ff;
}

/* Luxury Glass Specular Highlights */
.glass-card-specular {
  position: relative;
  overflow: hidden;
}

.glass-card-specular::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(0, 240, 255, 0.15),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  transition: 0.75s ease;
}

.glass-card-specular:hover::before {
  left: 150%;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Text Selection Glow */
::selection {
  background: #0066ff;
  color: #ffffff;
}
