/* ===== RESET ===== */

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

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, #1f1147, transparent 40%),
    radial-gradient(circle at 80% 30%, #0c3b63, transparent 40%),
    #070b18;
  color: #f5f7ff;
  line-height: 1.6;
}

/* ===== LAYOUT ===== */

.main {
  max-width: 1200px;
  margin: 50px auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
  padding: 0 20px;
}

/* ===== GLASS CARD BASE ===== */

.main__block,
.side-bar,
.experience__company {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );

  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ===== MAIN BLOCK ===== */

.main__block {
  padding: 40px;
}

/* ===== SIDEBAR ===== */

.side-bar {
  padding: 28px;
}

.side-bar__photo {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===== TITLES ===== */

.title,
.side-bar__title {
  font-size: 18px;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: .5px;

  background: linear-gradient(90deg, #7dd3fc, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== ABOUT ===== */

.about__name {
  font-size: 38px;
  margin: 12px 0 18px;

  background: linear-gradient(90deg, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about__position span {
  color: #9ca3af;
}

/* ===== TEXT ===== */

.about__info p,
.education__faculty,
.education__period,
.experience__date {
  color: #cbd5f5;
}

/* ===== LISTS ===== */

.projects__list,
.tech-skills__list,
.soft-skills__list,
.experience__list {
  padding-left: 18px;
}

/* ===== LINKS ===== */

a {
  color: #93c5fd;
  text-decoration: none;
  position: relative;
  transition: .25s;
}

a:hover {
  color: #e879f9;
}

/* glowing underline */

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #7dd3fc, #c084fc);
  transition: .3s;
}

a:hover::after {
  width: 100%;
}

/* ===== EXPERIENCE CARD ===== */

.experience__company {
  padding: 20px;
  margin-bottom: 16px;
  transition: .3s;
}

.experience__company:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 70px rgba(124,58,237,0.35);
}

/* ===== SIDEBAR BLOCKS ===== */

.contacts,
.tech-skills,
.soft-skills {
  margin-top: 22px;
}

/* ===== SOFT GLOW ITEMS ===== */

.tech-skills__link,
.soft-skills__link,
.projects__item {
  transition: .2s;
}

.tech-skills__link:hover,
.soft-skills__link:hover,
.projects__item:hover {
  color: #f0abfc;
  text-shadow: 0 0 6px rgba(192,132,252,.6);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

  .main {
    grid-template-columns: 1fr;
  }

  .side-bar {
    order: -1;
  }
}

@media (max-width: 600px) {

  .main__block {
    padding: 24px;
  }

  .about__name {
    font-size: 30px;
  }
}