:root {
  --primary: #232946;
  --accent: #3f8efc;
  --bg: #f4f6fb;
  --card-bg: #fff;
  --text: #232946;
  --border: #e3e6ee;
  --radius: 14px;
  --shadow: 0 4px 24px 0 rgba(35,41,70,0.07);
  --font: 'Inter', Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #e0e7ff 0%, #f4f6fb 100%);
  z-index: -1;
}

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

.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 2px 16px 0 rgba(63,142,252,0.08);
  background: #e3e6ee;
}

h1 {
  margin: 0 0 0.7rem 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
}

nav {
  margin-top: 0.2rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}

nav a:last-child {
  margin-right: 0;
}

nav a:hover, nav a:focus {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -2rem;
  margin-bottom: 2rem;
  padding: 2.5rem 2rem 2rem 2rem;
}

main section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

.subtitle {
  margin: 0 0 1rem 1.2rem;
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
  font-size: 1rem;
  color: #444;
}

.contact-list li {
  margin-bottom: 0.3rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.experience-item {
  margin-bottom: 2rem;
}

.experience-item h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.company {
  font-weight: 400;
  color: #555;
  margin-left: 0.5rem;
}

.duration {
  display: block;
  font-size: 0.98rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.experience-item ul {
  margin: 0.3rem 0 0 1.2rem;
  padding: 0;
  font-size: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0 0;
}

.skills-list li {
  background: #e0e7ff;
  color: #232946;
  padding: 0.35em 1em;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 4px 0 rgba(35,41,70,0.04);
}

.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects-list li {
  margin-bottom: 1.3rem;
}

.projects-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #3f8efc;
  font-weight: 600;
  text-decoration: none;
  background: #f4f8ff;
  border-radius: 8px;
  padding: 0.8em 1em;
  transition: background 0.18s, color 0.18s;
}

.projects-list a:hover {
  background: #e0e7ff;
  color: #232946;
}

.project-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.project-desc {
  font-size: 0.98rem;
  color: #555;
  font-weight: 400;
}

.subtitle-main {
  display: block;
  font-weight: 600;
  color: #3f8efc;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.subtitle-sub {
  display: block;
  color: #5b6b8c;
  font-size: 1.02rem;
  margin-top: 2px;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 0;
  color: #888;
  font-size: 1rem;
  background: transparent;
}

.contact-icons {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  align-items: center;
  justify-content: flex-start;
}
.contact-icons li {
  display: flex;
}
.contact-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px 0 rgba(35,41,70,0.04);
}
.contact-icons a:hover {
  background: #3f8efc;
}
.contact-icons a:hover svg path {
  fill: #fff;
}
.contact-icons svg {
  display: block;
  width: 22px;
  height: 22px;
}

.top-contact-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.7rem;
}
.email-text {
  color: #3f8efc;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.08rem;
  transition: color 0.18s;
  word-break: break-all;
}
.email-text:hover {
  color: #232946;
  text-decoration: underline;
}

.phone-text {
  color: #3f8efc;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.08rem;
  margin-left: 1.2rem;
  transition: color 0.18s;
}
.phone-text:hover {
  color: #232946;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .container, .card {
    padding: 1rem 0.5rem;
  }
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .profile-photo {
    width: 80px;
    height: 80px;
  }
  .card {
    margin-top: 0;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}