@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
  --text: #ffffff;
  --muted: #ffffff;
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

html {
  background: url('About_png1.jpg') center/cover no-repeat fixed;
  background-color: #050505;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: url('About_png1.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  padding: 36px 18px 48px;
  position: relative;
  overflow-x: hidden;
}

.page-transition {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.92));
  pointer-events: none;
  z-index: 5;
  transform-origin: top;
  transition: height 1.5s ease, opacity 1.5s ease;
  opacity: 0;
}

.page-transition.is-active {
  height: 100%;
  opacity: 1;
}

main.page {
  width: min(960px, 100%);
  padding: 52px 40px 48px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  text-align: center;
  margin: 84px 0 44px;
}

.name {
  margin: 0 0 12px;
  font-size: clamp(64px, 8vw, 78px);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
}

.role {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
}

.motto {
  margin: 0 0 32px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
}

.socials {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin: 0;
  z-index: 2;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px;
  border: none;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  transition: transform 180ms ease, color 180ms ease;
}

.social-link img {
  width: 28px;
  height: 28px;
  display: block;
}

.social-link:hover {
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.9);
}

.section-block {
  padding: 18px;
  margin: 0;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.section-block h2 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
  position: relative;
  transition: color 200ms ease-out, transform 200ms ease-out, filter 200ms ease-out, background-size 200ms ease-out;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 6px;
}

.section-block p,
.section-block ul {
  margin: 0;
  color: var(--muted);
}

.section-block ul {
  padding-left: 18px;
}

.section-block li {
  margin: 6px 0;
}

.sections-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
  margin-top: 36px;
}

.sections-row .section-block {
  flex: 1 1 220px;
  max-width: 320px;
}

.section-block:hover h2 {
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
  background-size: 100% 2px;
}

.nav-card {
  transition: transform 200ms ease, filter 200ms ease, color 200ms ease, background-color 200ms ease, backdrop-filter 200ms ease;
}

.nav-card.is-hovered {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.06);
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(3px);
  border-radius: 10px;
}

.social-link.is-hovered {
  transform: translateY(-1px) scale(1.05);
  color: rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(3px);
  border-radius: 10px;
}

.social-link.is-active {
  transform: translateY(-1px) scale(1.05);
}

.anim-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 3.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

.mini-footer {
  margin-top: 42px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 10px 0 0;
  opacity: 0;
  animation: fadeInUp 3.6s ease-out forwards;
  animation-delay: var(--delay, 6500ms);
}

body.is-fading-out {
  animation: pageFadeOut 1.5s ease-in forwards;
}

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

@keyframes pageFadeOut {
  to {
    opacity: 0;
    filter: blur(2px);
  }
}

@media (max-width: 640px) {
  body {
    padding: 24px 14px;
  }
  main.page {
    padding: 28px 18px 24px;
  }
  .socials {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    gap: 12px;
  }
}
