/*
* LittleLink - Bold Modern Redesign
* https://littlelink.io
*/

/* CSS Custom Properties
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  font-size: 16px;
  
  /* Color System - Black & Dark Blue Theme */
  --color-primary: #3b82f6;
  --color-secondary: #2563eb;
  --color-accent: #1d4ed8;
  
  /* Light Theme */
  --bg-base: #0a0a0a;
  --bg-card: rgba(23, 23, 23, 0.9);
  --bg-section: rgba(30, 30, 30, 0.8);
  --border-subtle: rgba(59, 130, 246, 0.2);
  --border-glow: rgba(59, 130, 246, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #93c5fd;
  --text-muted: #9ca3af;
  --shadow-color: rgba(59, 130, 246, 0.15);
  --gradient-hero: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Typography */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.75rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

/* Dark Theme */
:root.theme-dark {
  color-scheme: dark;
  --bg-base: #0a0a0a;
  --bg-card: rgba(23, 23, 23, 0.9);
  --bg-section: rgba(30, 30, 30, 0.8);
  --border-subtle: rgba(59, 130, 246, 0.2);
  --border-glow: rgba(59, 130, 246, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #93c5fd;
  --text-muted: #9ca3af;
  --shadow-color: rgba(59, 130, 246, 0.15);
}

/* Auto Theme */
:root.theme-auto {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root.theme-auto {
    --bg-base: #0a0a0a;
    --bg-card: rgba(23, 23, 23, 0.9);
    --bg-section: rgba(30, 30, 30, 0.8);
    --border-subtle: rgba(59, 130, 246, 0.2);
    --border-glow: rgba(59, 130, 246, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #93c5fd;
    --text-muted: #9ca3af;
    --shadow-color: rgba(59, 130, 246, 0.15);
  }
}

/* Animated Background
–––––––––––––––––––––––––––––––––––––––––––––––––– */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
}

/* Mesh Gradient Background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(29, 78, 216, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 10% 90%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  animation: meshMove 25s ease-in-out infinite;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, -2%) rotate(1deg); }
  50% { transform: translate(-1%, 3%) rotate(-1deg); }
  75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

/* Floating Particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 60%; top: 10%; animation-delay: -10s; animation-duration: 30s; }
.particle:nth-child(4) { left: 80%; top: 50%; animation-delay: -15s; animation-duration: 22s; }
.particle:nth-child(5) { left: 40%; top: 60%; animation-delay: -8s; animation-duration: 28s; }
.particle:nth-child(6) { left: 90%; top: 30%; animation-delay: -12s; animation-duration: 24s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(30px, -50px) scale(1.5); opacity: 0.6; }
  50% { transform: translate(-20px, 30px) scale(0.8); opacity: 0.3; }
  75% { transform: translate(40px, 20px) scale(1.2); opacity: 0.5; }
}


/* Container
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-12);
}

/* Hero Profile Card
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.hero-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  margin-bottom: var(--space-8);
  text-align: center;
  overflow: hidden;
  animation: cardReveal 0.8s ease-out;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--shadow-color) 100%);
  opacity: 0.3;
  pointer-events: none;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar with Glow Ring */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-6);
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient-hero);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.avatar {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-base);
  z-index: 1;
}

/* Hero Typography */
.hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-2);
  font-size: var(--font-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-card .tagline {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-2);
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.hero-card .tagline-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.85;
  font-style: italic;
}

/* Section Cards
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.section-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  animation: sectionReveal 0.6s ease-out backwards;
}

.section-card:nth-child(2) { animation-delay: 0.1s; }
.section-card:nth-child(3) { animation-delay: 0.2s; }
.section-card:nth-child(4) { animation-delay: 0.3s; }
.section-card:nth-child(5) { animation-delay: 0.4s; }

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section-header h2 {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Button Stack */
.button-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-base);
  font-weight: 600;
  text-decoration: none;
  color: var(--button-text, #fff);
  background: var(--button-background, var(--gradient-hero));
  border: var(--button-border, none);
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.button:hover::before {
  transform: translateX(100%);
}

.button:active {
  transform: translateY(-1px);
}

/* Button Icons */
.icon {
  width: 22px;
  height: 22px;
  margin-right: var(--space-3);
  flex-shrink: 0;
  filter: var(--icon-filter, none);
}

/* Footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */
footer {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  font-size: var(--font-sm);
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--text-secondary);
  text-decoration: none;
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Responsive
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 520px) {
  .container {
    padding: var(--space-4) var(--space-3) var(--space-8);
  }
  
  .hero-card {
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-xl);
  }
  
  .hero-card h1 {
    font-size: var(--font-3xl);
  }
  
  .avatar {
    width: 110px;
    height: 110px;
  }
  
  .section-card {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }
  
  .section-header h2 {
    font-size: var(--font-lg);
  }
  
  .button {
    min-height: 50px;
    font-size: var(--font-sm);
  }
}

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


/* Privacy Page Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container-left {
  position: relative;
  width: 100%;
  max-width: 700px;
  text-align: left;
  margin: 0 auto;
  padding: 0 var(--space-5);
  box-sizing: border-box;
}

.container-left p {
  margin-bottom: var(--space-4);
}

nav {
  margin: var(--space-8) 0;
  text-align: left;
}

section {
  margin: var(--space-12) 0;
  text-align: left;
}

h2 {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

h3 {
  font-size: var(--font-xl);
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-4) 0;
  color: var(--text-primary);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
}

ul li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

/* Font Face Definitions
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'),
       url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2') format('woff2'),
       url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff') format('woff');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2') format('woff2'),
       url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff') format('woff');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff2') format('woff2'),
       url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff') format('woff');
}
