@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --color-skin-50: #FDF8F3;
  --color-skin-100: #FAF0E6;
  --color-skin-200: #F5E1D0;
  --color-skin-300: #EBCDB0;
  --color-pink-brand: #FF2D7A;
  --color-pink-bright: #FF1B8D;
  --color-pink-soft: #FF6B9D;
  --color-pink-pale: #FFB6C1;
  --color-grey-900: #1A1A1A;
  --color-grey-800: #2A2A2A;
  --color-grey-700: #3A3A3A;
  --color-grey-600: #555555;
  --color-grey-500: #777777;

  --font-mono: 'Roboto Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-skin-50);
  color: var(--color-grey-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-pink-brand);
  color: white;
}

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

::-webkit-scrollbar-track {
  background: var(--color-skin-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-pink-soft);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-pink-brand);
}

/* Reduced motion */
@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;
  }
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--color-pink-brand) 0%, var(--color-pink-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(253, 248, 243, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 45, 122, 0.1);
}

/* Ambient floating shapes */
@keyframes ambient-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -50px) rotate(120deg); }
  66% { transform: translate(-20px, -30px) rotate(240deg); }
}

@keyframes ambient-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-40px, 30px) rotate(-120deg); }
  66% { transform: translate(20px, 50px) rotate(-240deg); }
}

@keyframes ambient-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -25px) scale(1.05); }
}

.ambient-shape-1 {
  animation: ambient-float-1 12s ease-in-out infinite;
}

.ambient-shape-2 {
  animation: ambient-float-2 15s ease-in-out infinite;
}

.ambient-shape-3 {
  animation: ambient-float-3 8s ease-in-out infinite;
}

/* Typing cursor */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--color-pink-brand);
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Line reveal */
.line-reveal {
  overflow: hidden;
}

.line-reveal > span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}

.line-reveal.revealed > span {
  transform: translateY(0);
  opacity: 1;
}
