* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  background: #05000a;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="6" fill="%23bc13fe" stroke="%23ffffff" stroke-width="1.5"/><circle cx="12" cy="12" r="10" fill="none" stroke="%23bc13fe" stroke-width="1" opacity="0.4"/></svg>') 12 12, auto;
}

a, button, .work-item, .project-link {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5" fill="%2300e5ff" stroke="%23ffffff" stroke-width="1.5"/><circle cx="12" cy="12" r="11" fill="none" stroke="%2300e5ff" stroke-width="2" opacity="0.6"/></svg>') 12 12, pointer !important;
}

.page-wrapper {
  width: 95vw;
  height: 90vh;
  background: radial-gradient(circle at 70% 40%, rgba(36, 0, 76, 0.95), #0b0016 72%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-wrapper::after {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  top: -180px;
  right: -140px;
  background: #00e5ff;
  filter: blur(165px);
  opacity: 0.13;
  pointer-events: none;
  animation: softGlow 10s ease-in-out infinite alternate;
}

@keyframes softGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.1; }
  to { transform: translate(-40px, 50px) scale(1.15); opacity: 0.18; }
}

header {
  padding: 40px 60px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
}

.logo {
  width: 44px;
  filter: drop-shadow(0 0 9px rgba(0, 229, 255, 0.85));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.08) rotate(4deg);
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 1));
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 38px;
}

nav a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #fff;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #00e5ff;
  transition: width 0.28s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.about-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  position: relative;
}

.about-content {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  position: relative;
  z-index: 5;
}

.eyebrow {
  color: rgba(0, 229, 255, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
}

.main-name {
  font-size: clamp(4rem, 8vw, 6.4rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff 0%, #b9b9b9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text {
  max-width: 360px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.7;
}

.minimal-link {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.75);
  padding-bottom: 7px;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.minimal-link::after {
  content: '→';
  margin-left: 10px;
  color: #00e5ff;
}

.minimal-link:hover {
  transform: translateX(4px);
  color: #00e5ff;
  border-color: #bc13fe;
}

.profile-frame {
  width: clamp(280px, 27vw, 360px);
  height: clamp(360px, 35vw, 460px);
  border-radius: 160px;
  border: 2px solid rgba(188, 19, 254, 0.55);
  overflow: hidden;
  box-shadow: 0 0 54px rgba(188, 19, 254, 0.22);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.profile-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 76px rgba(188, 19, 254, 0.36);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decor-circle {
  position: absolute;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.top-right-decor { top: 24px; right: 44px; width: 72px; }
.bottom-left-decor { bottom: 48px; left: 44px; width: 105px; transform: rotate(160deg); }

footer {
  padding: 20px 60px 38px;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.footer-logo img {
  width: 34px;
  opacity: 0.45;
}

.footer-line {
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent);
  margin-top: 10px;
}

@media (max-width: 768px) {
  body { align-items: flex-start; overflow-y: auto; }

  .page-wrapper {
    width: 100vw;
    min-height: 100vh;
    height: auto;
    border-radius: 0;
    border: none;
    overflow-y: auto;
  }

  header {
    padding: 28px 22px;
    flex-direction: column;
    gap: 22px;
  }

  nav ul { gap: 24px; }

  .about-container { padding: 34px 24px 50px; }

  .about-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 34px;
  }

  .intro-text { margin-left: auto; margin-right: auto; }

  .profile-frame {
    width: 270px;
    height: 340px;
  }

  .decor-circle { display: none; }

  footer {
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-line { width: 80%; }
}


/* Contacts page */
.contacts-container {
  flex-grow: 1;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 10% 40px;
}

.contacts-content {
  width: min(720px, 100%);
  text-align: center;
  transform: translateY(18px);
}

.contacts-content .eyebrow {
  margin-bottom: 14px;
}

.contacts-title {
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff 0%, #b9b9b9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smaller, softer contact text than the first About version */
.contacts-subtitle {
  max-width: 410px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(460px, 100%);
  margin: 0 auto;
}

.contact-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: rgba(20, 0, 38, 0.46);
  border: 1px solid rgba(188, 19, 254, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 20px rgba(188, 19, 254, 0.18);
  background: rgba(29, 0, 58, 0.62);
}

.contact-card img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.82;
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.contact-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-value {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }

  .contacts-container {
    padding: 28px 24px 54px;
  }

  .contacts-content {
    transform: translateY(0);
  }

  .contact-card {
    border-radius: 26px;
    grid-template-columns: 30px 1fr;
    padding: 14px 18px;
  }

  .contact-value {
    font-size: 0.84rem;
  }
}
