/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-pink: #ff6b9d;
  --c-purple: #c44dff;
  --c-blue: #4da6ff;
  --c-cyan: #00d4ff;
  --c-orange: #ff9a56;
  --c-green: #56e89e;
  --c-dark: #0f0e17;
  --c-card: rgba(255,255,255,0.07);
  --c-card-border: rgba(255,255,255,0.12);
  --c-text: #fffffe;
  --c-text-dim: rgba(255,255,255,0.6);
  --radius: 20px;
  --font-main: 'Nunito', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--c-text);
  background: var(--c-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0e17 0%, #1a1033 40%, #0f0e17 100%);
}

.hero__bg-shapes {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.shape--1 {
  width: 400px; height: 400px;
  background: var(--c-pink);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.shape--2 {
  width: 350px; height: 350px;
  background: var(--c-purple);
  bottom: -10%; right: -5%;
  animation-delay: 2s;
}
.shape--3 {
  width: 250px; height: 250px;
  background: var(--c-cyan);
  top: 50%; left: 60%;
  animation-delay: 4s;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ===== AVATAR ===== */
.avatar-wrapper {
  position: relative;
  width: 180px; height: 180px;
}

.avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-pink), var(--c-purple), var(--c-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.avatar img,
.avatar__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.avatar__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: white;
}

.avatar__camera-icon {
  width: 64px; height: 64px;
}

.avatar__text {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 600;
}

.avatar__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--c-pink);
  border-right-color: var(--c-cyan);
  animation: spin 4s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== NAME & TAGLINE ===== */
.hero__name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-pink), var(--c-purple), var(--c-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--c-text-dim);
  min-height: 2em;
}

.typewriter { color: var(--c-text-dim); }

.cursor {
  display: inline-block;
  color: var(--c-pink);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

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

.hero__scroll-hint {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text-dim);
  font-size: 0.85rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ABOUT ===== */
.about {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--c-dark) 0%, #12101f 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.about__card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(196, 77, 255, 0.15);
}

.about__card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.about__card p {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about__card strong {
  color: var(--c-text);
}

/* ===== HOBBIES ===== */
.hobbies {
  padding: 6rem 0;
  background: #12101f;
}

.hobbies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.hobby-card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  transition-delay: var(--delay, 0s);
}

.hobby-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(77, 166, 255, 0.15);
  border-color: var(--c-blue);
}

.hobby-card__icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.hobby-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hobby-card p {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

/* ===== SOCIALS ===== */
.socials {
  padding: 6rem 0;
  background: linear-gradient(180deg, #12101f 0%, var(--c-dark) 100%);
  text-align: center;
}

.socials__subtitle {
  color: var(--c-text-dim);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.socials__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.social-link--tiktok {
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  color: white;
}
.social-link--tiktok:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(254, 44, 85, 0.4);
}

.social-link--vk {
  background: linear-gradient(135deg, #4680c2, #3b5998);
  color: white;
}
.social-link--vk:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(59, 89, 152, 0.4);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--c-text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--c-card-border);
}

.footer strong {
  color: var(--c-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .avatar-wrapper, .avatar {
    width: 140px; height: 140px;
  }
  .avatar__camera-icon { width: 48px; height: 48px; }
  .about__grid, .hobbies__grid {
    grid-template-columns: 1fr;
  }
  .social-link {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
