@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lobster';
  src: url('fonts/lobster-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --t: 0.3s cubic-bezier(.4, 0, .2, 1);
  --spring: 0.5s cubic-bezier(.175, .885, .32, 1.275);
}

[data-theme="dark"] {
  --bg: #111110;
  --surface: #1C1C1A;
  --surface-elevated: #252523;
  --text: #F0EFE9;
  --text-secondary: #9A9891;
  --muted: #8A8883;
  --border: rgba(255, 255, 255, 0.07);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-h: 0 12px 40px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(17, 17, 16, 0.88);
  --accent: #10B981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.22);
  --card-bg: rgba(28, 28, 26, 0.7);
  --card-border: rgba(255, 255, 255, 0.05);
  --card-hover-border: rgba(16, 185, 129, 0.35);
  --aurora-1: rgba(16, 185, 129, 0.26);
  --aurora-2: rgba(94, 92, 230, 0.22);
  --aurora-3: rgba(255, 159, 10, 0.18);
  --grain-opacity: 0.022;
}

[data-theme="light"] {
  --bg: #E8EDE6;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --text: #161614;
  --text-secondary: #6A6865;
  --muted: #888580;
  --border: rgba(0, 0, 0, 0.09);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.09);
  --shadow-h: 0 10px 40px rgba(0, 0, 0, 0.16);
  --nav-bg: rgba(232, 237, 230, 0.94);
  --accent: #059669;
  --accent-soft: rgba(5, 150, 105, 0.1);
  --accent-glow: rgba(5, 150, 105, 0.2);
  --card-bg: #FFFFFF;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-hover-border: rgba(5, 150, 105, 0.45);
  --aurora-1: rgba(16, 185, 129, 0.35);
  --aurora-2: rgba(94, 92, 230, 0.25);
  --aurora-3: rgba(255, 159, 10, 0.22);
  --grain-opacity: 0.012;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  transition: background var(--t), color var(--t);
}

/* ── AURORA BACKGROUND ── */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  filter: blur(80px);
}

.aurora-1 {
  width: 650px;
  height: 500px;
  border-radius: 42% 58% 65% 35% / 55% 40% 60% 45%;
  background: var(--aurora-1);
  top: -200px;
  right: -150px;
  opacity: 0.6;
  animation: auroraMove1 28s ease-in-out infinite, auroraBreathe1 7s ease-in-out 3s infinite backwards;
}

.aurora-2 {
  width: 550px;
  height: 450px;
  border-radius: 65% 35% 40% 60% / 45% 60% 40% 55%;
  background: var(--aurora-2);
  bottom: -150px;
  left: -100px;
  opacity: 0.4;
  animation: auroraMove2 34s ease-in-out infinite, auroraBreathe2 9s ease-in-out 3.5s infinite backwards;
}

.aurora-3 {
  width: 400px;
  height: 350px;
  border-radius: 55% 45% 50% 50% / 40% 55% 45% 60%;
  background: var(--aurora-3);
  top: 35%;
  left: 45%;
  opacity: 0.5;
  animation: auroraMove3 24s ease-in-out infinite, auroraBreathe3 11s ease-in-out 4s infinite backwards;
}

.aurora-4 {
  width: 350px;
  height: 400px;
  border-radius: 40% 60% 55% 45% / 60% 35% 65% 40%;
  background: var(--aurora-2);
  top: 10%;
  left: -80px;
  opacity: 0.4;
  animation: auroraMove4 38s ease-in-out infinite, auroraBreathe2 8s ease-in-out 4.5s infinite backwards;
}

.aurora-5 {
  width: 300px;
  height: 280px;
  border-radius: 58% 42% 48% 52% / 50% 62% 38% 50%;
  background: var(--aurora-1);
  bottom: 15%;
  right: -60px;
  opacity: 0.6;
  animation: auroraMove5 32s ease-in-out infinite, auroraBreathe1 10s ease-in-out 5s infinite backwards;
}

@keyframes auroraBreathe1 {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes auroraBreathe2 {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

@keyframes auroraBreathe3 {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

@keyframes auroraMove1 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(-80px, 60px) scale(1.08) rotate(3deg); }
  50% { transform: translate(-30px, 120px) scale(0.95) rotate(-2deg); }
  75% { transform: translate(50px, 40px) scale(1.05) rotate(1deg); }
}

@keyframes auroraMove2 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(60px, -80px) scale(1.06) rotate(-3deg); }
  50% { transform: translate(100px, -30px) scale(0.97) rotate(2deg); }
  75% { transform: translate(30px, -60px) scale(1.03) rotate(-1deg); }
}

@keyframes auroraMove3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  33% { transform: translate(-40%, -55%) scale(1.12) rotate(4deg); }
  66% { transform: translate(-55%, -42%) scale(0.92) rotate(-3deg); }
}

@keyframes auroraMove4 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  30% { transform: translate(40px, 80px) scale(1.1) rotate(-4deg); }
  60% { transform: translate(80px, 30px) scale(0.94) rotate(3deg); }
}

@keyframes auroraMove5 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  35% { transform: translate(-50px, -60px) scale(1.08) rotate(5deg); }
  70% { transform: translate(-20px, 40px) scale(0.96) rotate(-2deg); }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
  transition: background var(--t);
}

.nav-logo {
  font-family: 'Lobster', cursive;
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
}
.nav-logo-img { height: 24px; width: auto; display: block !important; }
.nav-logo-img-light { height: 24px; width: auto; display: none !important; }
[data-theme="light"] .nav-logo-img { display: none !important; }
[data-theme="light"] .nav-logo-img-light { display: block !important; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  transition: background 0.2s;
}

.theme-btn:hover {
  background: var(--accent-soft);
}

.icon-sun, .icon-moon {
  position: absolute;
  width: 17px;
  height: 17px;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.4, 0, .2, 1);
  color: var(--muted);
}

[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(45deg) scale(0.6); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: none; }
[data-theme="light"] .icon-sun { opacity: 1; transform: none; }
[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(-45deg) scale(0.6); }

.lang-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  touch-action: manipulation;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* ── CONTAINER ── */
.container {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: 110px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── HERO ── */
.hero {
  text-align: center;
  margin-bottom: 56px;
  animation: fadeUp 0.9s cubic-bezier(.22, .68, 0, 1) both;
}

.avatar-glow {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-image: url('/avatar.jpg');
  background-size: 140%;
  background-position: center 38%;
  border: 2.5px solid var(--border);
  z-index: 1;
  transition: border-color var(--t);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.name {
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    #059669 0%,
    #059669 30%,
    #a7f3d0 50%,
    #059669 70%,
    #059669 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nameShimmer 8s ease-in-out infinite;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 14px 0 12px;
  transition: background var(--t), border-color var(--t);
}

[data-theme="light"] .hero-badge {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(5, 150, 105, 0.25);
  color: #059669;
}

.tagline {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color var(--t);
}

.hero-line {
  width: 36px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  margin: 28px auto 0;
  opacity: 0.6;
}

/* ── LINKS SECTION ── */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-left: 4px;
  margin-bottom: 4px;
  transition: color var(--t);
}

/* ── LINK CARDS ── */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition:
    transform 0.4s cubic-bezier(.22, .68, 0, 1),
    box-shadow 0.4s cubic-bezier(.22, .68, 0, 1),
    border-color 0.3s ease,
    background var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--accent-soft) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: var(--shadow-h);
  border-color: var(--card-hover-border);
}

.link-card:active {
  transform: translateY(-1px) scale(1.002);
}

.link-card.featured {
  border-color: var(--accent-soft);
}

.link-card.featured .link-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ── PRODUCT CARDS ── */
.link-card--preview {
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.04);
  min-height: 220px;
  transition:
    transform 0.2s ease,
    box-shadow 0.4s cubic-bezier(.22, .68, 0, 1),
    border-color 0.3s ease;
}

[data-theme="light"] .link-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .link-card--preview {
  border-color: rgba(0, 0, 0, 0.08);
}

.link-card--preview:hover {
  border-color: var(--card-hover-border);
}

.link-preview {
  flex-shrink: 0;
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.link-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--card-bg) 100%);
}

.link-card--preview .link-content {
  padding: 14px 18px 18px;
  flex-direction: row;
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-card--preview .link-content-text {
  flex: 1;
}

.link-card--preview .link-arrow {
  flex-shrink: 0;
  align-self: center;
  margin-right: 2px;
}

/* ── LINK ICON ── */
.link-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color 0.3s ease, background 0.3s ease, transform 0.4s cubic-bezier(.22, .68, 0, 1);
}

.link-card:hover .link-icon {
  transform: scale(1.06);
}

.link-icon.linkedin { color: #0A66C2; background: rgba(10, 102, 194, 0.1); }
.link-icon.youtube { color: #FF0000; background: rgba(255, 0, 0, 0.06); }
.link-icon.instagram { color: #E4405F; background: rgba(228, 64, 95, 0.06); }
.link-icon.tiktok { color: var(--text-secondary); background: rgba(128, 128, 128, 0.06); }

/* ── LINK CONTENT ── */
.link-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.link-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 400;
  transition: color var(--t);
}

/* ── LINK ARROW ── */
.link-arrow {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.3;
  transition: transform 0.4s cubic-bezier(.22, .68, 0, 1), color 0.3s ease, opacity 0.3s ease;
}

.link-card:hover .link-arrow {
  opacity: 0.8;
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ── FOOTER ── */
.footer {
  margin-top: auto;
  padding-top: 64px;
  padding-bottom: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-weight: 400;
  transition: color 0.2s;
}

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

.footer-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.01em;
  opacity: 0.5;
  font-weight: 400;
  transition: color var(--t);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-reveal: elements start hidden, appear on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,.68,0,1), transform 0.7s cubic-bezier(.22,.68,0,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */

@media (max-width: 600px) {
  .container {
    max-width: 100%;
    padding: 88px 20px max(48px, env(safe-area-inset-bottom, 24px));
  }

  .links-section { gap: 36px; }

  .link-preview { height: 120px; }
  .link-card--preview { min-height: 180px; }
}

@media (max-width: 480px) {
  nav {
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .container {
    padding: 80px 16px max(40px, env(safe-area-inset-bottom, 20px));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .link-card {
    padding: 13px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .link-card--preview { border-radius: 16px; }
  .link-preview { height: 100px; }

  .link-icon { width: 38px; height: 38px; border-radius: 10px; }
  .link-title { font-size: 14px; }
  .link-desc { font-size: 12px; }

  .avatar-glow { width: 100px; height: 100px; margin-bottom: 26px; }
  .avatar { width: 100px; height: 100px; }
  .name { font-size: clamp(30px, 9vw, 42px); }

  .aurora { filter: blur(60px); }
  .aurora-1 { width: 350px; height: 280px; }
  .aurora-2 { width: 300px; height: 250px; }
  .aurora-3 { width: 220px; height: 200px; }
  .aurora-4 { width: 200px; height: 220px; }
  .aurora-5 { width: 180px; height: 160px; }
}

@media (max-width: 360px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .link-card { padding: 12px 13px; gap: 10px; }
  .link-icon { width: 36px; height: 36px; }
  .avatar { width: 88px; height: 88px; }
  .avatar-glow { width: 88px; height: 88px; }
}

/* ── TOUCH DEVICE ── */
@media (hover: none) {
  .link-card:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--card-border);
  }

  .link-card.featured:hover { border-color: var(--accent-soft); }
  .link-card--preview:hover { border-color: rgba(255, 255, 255, 0.04); }
  [data-theme="light"] .link-card--preview:hover { border-color: rgba(0, 0, 0, 0.04); }
  .link-card:hover::before { opacity: 0; }
  .link-card:hover .link-icon { transform: none; }
  .link-card:hover .link-arrow { opacity: 0.3; transform: none; color: var(--muted); }

  .link-card:active {
    transform: scale(0.98);
    opacity: 0.85;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  .theme-btn:hover, .lang-btn:hover { background: transparent; }
  .theme-btn:active, .lang-btn:active {
    transform: scale(0.9);
    opacity: 0.7;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
}

/* ── ACCESSIBILITY ── */
.link-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-btn:focus-visible, .lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(16, 185, 129, 0.2); color: var(--text); }
