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

:root {
  --primary:    #6C63FF;
  --accent:     #FF6584;
  --teal:       #43B89C;
  --bg:         #F9F9FF;
  --dark:       #2D2D3A;
  --mid:        #5A5A72;
  --light:      #FFFFFF;
  --border:     #E0DFFF;

  --font-head:  'Poppins', sans-serif;
  --font-body:  'Open Sans', sans-serif;

  --radius:     12px;
  --shadow:     0 4px 24px rgba(108, 99, 255, 0.10);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover  { color: var(--accent); }
a:visited { color: var(--teal); }

.btn:visited { color: var(--light); }
.contact-card__link:visited,
.nav__logo:visited             { color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.25;
}

h1 { font-size: 2.8rem;  font-weight: 800; }
h2 { font-size: 2rem;    font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem;  font-weight: 600; }

p  { font-size: 1rem; color: var(--mid); margin-bottom: 1rem; }

.btn,
.nav__logo,
.nav__links a,
.read-more,
.profile-block__role,
.skill-tag,
.timeline-item__date,
.hobby-mini-card strong,
.contact-card__label,
.contact-card__link {
  font-family: var(--font-head);
}

.btn,
.nav__links a,
.read-more,
.profile-block__role,
.skill-tag,
.contact-card__link {
  font-weight: 600;
}

.card,
.interest-card,
.project-card,
.contact-card,
.hobby-mini-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card,
.interest-card,
.project-card,
.contact-card {
  background: var(--light);
}

.card:hover,
.interest-card:hover,
.project-card:hover,
.contact-card:hover,
.hobby-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.15);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section       { padding: 5rem 0; }
.section--alt  { background: var(--light); }

.section-title    { margin-bottom: 1rem; }
.section-subtitle { max-width: 560px; margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  background: var(--primary);
  color: var(--light);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.25);
  color: var(--light);
}

.btn--sm { padding: 0.45rem 1.25rem; font-size: 0.85rem; }

.site-header {
  background: var(--light);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(108, 99, 255, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.nav__logo span              { color: var(--primary); }
.nav__logo:hover,
.nav__logo:visited           { color: var(--dark); }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--mid);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav__links a:hover,
.nav__links a:visited:hover  { color: var(--primary); border-bottom-color: var(--primary); }
.nav__links a:visited        { color: var(--mid); }
.nav__links a.active         { color: var(--primary); border-bottom-color: var(--accent); }

.site-footer {
  background: var(--dark);
  color: var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p             { color: var(--border); margin: 0; font-size: 0.9rem; }
.site-footer a,
.site-footer a:visited     { color: var(--teal); }

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #9B94FF 50%, var(--accent) 100%);
  padding: 7rem 0 6rem;
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.hero::before {
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.06);
  top: -150px;
  right: -100px;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  bottom: -80px;
  left: -60px;
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  color: var(--light);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero__subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card         { padding: 2rem; }
.card h3      { margin-bottom: 0.5rem; }
.card p       { font-size: 0.95rem; margin-bottom: 1.25rem; }

.read-more {
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more:hover   { color: var(--accent); }
.read-more:visited { color: var(--teal); }

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

.interest-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.interest-card__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.interest-card h3    { font-size: 1rem; margin-bottom: 0.4rem; }
.interest-card p     { font-size: 0.85rem; margin: 0; }

.profile-block {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-block__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.25);
  overflow: hidden;
}

.profile-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-block__info   { flex: 1; }
.profile-block__info h2 { margin-bottom: 0.25rem; }

.profile-block__role {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill-tag {
  background: #EEEDff;
  color: var(--primary);
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--light);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item__date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-item h3 { margin-bottom: 0.2rem; }
.timeline-item p  { font-size: 0.95rem; margin: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.project-card { overflow: hidden; }

.project-card__image {
  width: 100%;
  height: 200px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__body      { padding: 1.75rem; }
.project-card__body h3   { margin-bottom: 0.5rem; }
.project-card__body p    { font-size: 0.95rem; margin-bottom: 1.25rem; }

.hobby-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.hobby-mini-card {
  background: var(--bg);
  padding: 1rem 1.25rem;
}

.hobby-mini-card:hover    { border-color: var(--primary); }

.hobby-mini-card__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.hobby-mini-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.hobby-mini-card p { font-size: 0.83rem; color: var(--mid); margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.contact-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-card__top { padding: 0.6rem 1.5rem; background: linear-gradient(90deg, var(--primary), #9B94FF); }

.contact-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; padding: 1.5rem 1.5rem 0; }
.contact-card p  { font-size: 0.92rem; padding: 0 1.5rem; margin-bottom: 1.25rem; }

.contact-card__link {
  display: inline-block;
  margin: auto 1.5rem 1.5rem;
  font-size: 0.88rem;
  color: var(--primary);
}

.contact-card__link:hover { color: var(--accent); }

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #9B94FF 100%);
  padding: 4rem 0;
  color: var(--light);
}

.page-hero h1 { color: var(--light); font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 0; max-width: 500px; }

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero h1   { font-size: 2.4rem; }
  .hero      { padding: 5rem 0 4rem; }
  .page-hero { padding: 3rem 0; }
  .profile-block { flex-direction: column; align-items: center; text-align: center; }
  .skills-list   { justify-content: center; }
  .hobby-section { grid-template-columns: 1fr; text-align: center; }
  .hobby-section__icon { margin: 0 auto; }
  .nav__links { gap: 1rem; }
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav__links { display: none; }
}