﻿/* UniSocify Apple-Grade Fluid Motion & Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  /* Easing curves directly from standards */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  overflow-x: hidden;
  background-color: #fafbfc;
  color: #0f172a;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Translucent Apple-style Materials */
.glass-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.07), 0 0 0 1px rgba(226, 232, 240, 0.6);
}

.glass-floating {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Dynamic Aurora / Mesh Glow */
.aurora-blob-1 {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
  filter: blur(60px);
  animation: auroraMove1 14s ease-in-out infinite alternate;
}

.aurora-blob-2 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  filter: blur(70px);
  animation: auroraMove2 18s ease-in-out infinite alternate;
}

.aurora-blob-3 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 70%);
  filter: blur(65px);
  animation: auroraMove3 20s ease-in-out infinite alternate;
}

@keyframes auroraMove1 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes auroraMove2 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(-70px, 50px) scale(1.2); }
  100% { transform: translate(40px, -30px) scale(0.9); }
}

@keyframes auroraMove3 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(50px, 60px) scale(1.1); }
  100% { transform: translate(-50px, -40px) scale(1); }
}

/* Background Grid Pattern with Radial Vignette */
.bg-grid-mesh {
  background-image: 
    radial-gradient(circle at center, transparent 0%, #fafbfc 80%),
    radial-gradient(rgba(37, 99, 235, 0.1) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 28px 28px;
}

/* Kinetic Gradient Typography */
.kinetic-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 35%, #2563eb 70%, #4f46e5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 8s var(--ease-in-out) infinite alternate;
}

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Micro-Interactions & Button Press Feedbacks */
/* Apple Design: Response on pointer-down (100-160ms) */
.btn-press {
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  will-change: transform;
}
.btn-press:active {
  transform: scale(0.97) !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -8px rgba(37, 99, 235, 0.35);
  }
  .card-hover-lift {
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
  }
  .card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 45px -12px rgba(37, 99, 235, 0.14), 0 0 0 1px rgba(147, 197, 253, 0.6);
  }
}

/* 3D Phone Mockup Container & Perspective */
.phone-viewport {
  perspective: 1400px;
}

.phone-card-3d {
  transform-style: preserve-3d;
  transition: transform 400ms var(--ease-out);
  box-shadow: 
    0 35px 80px -20px rgba(37, 99, 235, 0.3),
    0 20px 40px -15px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Smooth Physical Floats */
.float-physics-1 {
  animation: floatPhys1 5.5s ease-in-out infinite;
}
.float-physics-2 {
  animation: floatPhys2 6.8s ease-in-out 1.2s infinite;
}

@keyframes floatPhys1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.8deg); }
}

@keyframes floatPhys2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-0.8deg); }
}

/* Live Activity Dynamic Island Simulation */
.island-glow {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.45);
}

/* Reveal-on-scroll / Stagger Entrance */
.reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-50 { transition-delay: 50ms; }
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
}
