/* ==========================================================================
   Amy Rose Landing Page - Soft Petal Elegance
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-base: #FDF6F8;
  --bg-card: #FFFBF9;
  --pink-primary: #F4A5B8;
  --pink-accent: #E88A9E;
  --pink-deep: #D4707F;
  --pink-light: #FBDCE5;
  --text-primary: #2D2A32;
  --text-secondary: #6B6574;
  --shadow-soft: rgba(244, 165, 184, 0.25);
  --shadow-medium: rgba(232, 138, 158, 0.2);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 50%;
  --radius-pill: 50px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Gradient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(244, 165, 184, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232, 138, 158, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(251, 220, 229, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Background Decorative Blobs
   -------------------------------------------------------------------------- */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: floatBlob 20s ease-in-out infinite;
}

.bg-blob-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.bg-blob-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(225deg, var(--pink-accent), var(--pink-primary));
  bottom: 10%;
  left: -80px;
  animation-delay: -7s;
}

.bg-blob-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(45deg, var(--pink-light), var(--pink-primary));
  top: 40%;
  right: -60px;
  animation-delay: -14s;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

/* --------------------------------------------------------------------------
   Container & Card
   -------------------------------------------------------------------------- */
.container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  box-shadow:
    0 4px 20px var(--shadow-soft),
    0 8px 40px var(--shadow-medium);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Profile Section
   -------------------------------------------------------------------------- */
.profile {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.profile-image-wrapper {
  display: inline-block;
  position: relative;
  margin-bottom: var(--space-md);
  animation: fadeSlideUp 0.6s ease-out both;
}

.profile-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-accent), var(--pink-deep));
  animation: softGlow 4s ease-in-out infinite;
  z-index: -1;
}

.profile-image {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--bg-card);
  background: var(--pink-light);
}

@keyframes softGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(244, 165, 184, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(232, 138, 158, 0.5);
    transform: scale(1.02);
  }
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  animation: fadeSlideUp 0.6s ease-out 0.1s both;
}

.profile-handle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  animation: fadeSlideUp 0.6s ease-out 0.15s both;
}

.profile-handle-link:hover,
.profile-handle-link:focus-visible {
  color: var(--pink-deep);
  background: var(--pink-light);
}

.profile-handle-link:focus-visible {
  outline: 2px solid var(--pink-accent);
  outline-offset: 2px;
}

.profile-handle-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-handle {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Links Section
   -------------------------------------------------------------------------- */
.links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--bg-card), var(--pink-light));
  border: 1px solid rgba(244, 165, 184, 0.3);
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-primary));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px var(--shadow-soft);
  border-color: var(--pink-primary);
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 0.15;
}

.link-card:focus-visible {
  outline: 2px solid var(--pink-accent);
  outline-offset: 2px;
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

.link-brand {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.link-code {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--pink-deep);
  position: relative;
  z-index: 1;
}

/* Staggered animation for links */
.link-card:nth-child(1) { animation: fadeSlideUp 0.6s ease-out 0.2s both; }
.link-card:nth-child(2) { animation: fadeSlideUp 0.6s ease-out 0.3s both; }
.link-card:nth-child(3) { animation: fadeSlideUp 0.6s ease-out 0.4s both; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-blob {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .card {
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  }

  .profile-image {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 360px) {
  .card {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .link-card {
    padding: var(--space-sm) var(--space-md);
  }
}
