* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #f9f8f6;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  height: 100dvh;
  padding: 10px 40px;

  display: flex;
  flex-direction: column;
}

header {
  margin: 10px;
  flex-shrink: 0;
}

.header {
  border-radius: 20px;
  box-shadow:
    0 20px 50px rgba(50, 90, 150, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background-color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  align-items: center;
}

.header .logo {
  margin-right: auto;
  margin-left: 10px;
  max-height: 50px;
  box-shadow: 0 8px 22px rgba(70, 110, 170, 0.12);
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo:active {
  transform: scale(0.9);
}

.header img {
  border-radius: 50%;
}

.header .menu {
  padding: 0;
}

.header ul {
  display: flex;
  gap: 10px;
  list-style-type: none;
}

.header ul li {
  padding: 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.header ul a {
  position: relative;
  text-decoration: none;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 8px;
}

.header ul a.active {
  color: #2f73ff;
}

.header ul a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 100%;
  height: 3px;
  border-radius: 999px;

  background-color: #2f73ff;
  transform: translateX(-50%);
}

.header ul li:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

.header .message {
  margin-left: auto;
  margin-right: 10px;
}

.message button {
  color: black;
  padding: 16px;
  border-radius: 50%;
  border-style: none;
  box-shadow: 0 8px 22px rgba(70, 110, 170, 0.12);
  background-color: rgb(255, 255, 255);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.message button:active {
  background-color: rgb(229, 229, 229);
  transform: scale(0.9);
}

.main {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.pages {
  height: 100%;
  display: flex;
  transform: translateX(0%);
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.page {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px;
}

.content {
  width: min(100%, 900px);
}

.eyebrow {
  color: #2f73ff;
  font-weight: 700;
  margin-bottom: 12px;
}

.content h1 {
  font-size: clamp(48px, 7vw, 96px);
  color: #111827;
  line-height: 1;
  margin-bottom: 14px;
}

.content h2 {
  font-size: clamp(32px, 5vw, 64px);
  color: #2f73ff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.content p {
  max-width: 580px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  gap: 18px;
  margin-top: 32px;
}

button {
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  background: #2f73ff;
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(47, 115, 255, 0.25);
}

button.secondary {
  background: white;
  color: #111827;
  border: 1px solid #e5ecf8;
  box-shadow: 0 8px 22px rgba(70, 110, 170, 0.1);
}

.card {
  min-height: 60%;
  padding: 48px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e5ecf8;

  box-shadow:
    0 20px 50px rgba(50, 90, 150, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(18px);
}

.card h1 {
  font-size: 52px;
  margin-bottom: 24px;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-list div {
  padding: 20px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e5ecf8;

  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.skill-list span {
  color: #2f73ff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  height: 180px;
  padding: 20px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid #e5ecf8;
  font-weight: 700;

  display: flex;
  align-items: end;
}

.online {
  color: #22c55e !important;
  font-weight: 800;
  font-size: 26px !important;
}

form {
  display: grid;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #e5ecf8;
  border-radius: 14px;
  padding: 16px;
  outline: none;
  font-size: 15px;
  background: #f8fbff;
}

textarea {
  min-height: 150px;
  resize: none;
}

@media only screen and (max-width: 768px) {
  html,
  body {
    width: 100%;
    height: 100%;
    padding: 10px 14px;
    overflow: hidden;
  }

  body {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  header {
    margin: 0 0 10px 0;
    flex-shrink: 0;
  }

  .header {
    min-height: 64px;
    padding: 10px 12px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .header .logo {
    margin: 0;
    max-height: 44px;
  }

  .header img {
    width: 44px;
  }

  .header .message {
    margin: 0;
  }

  .message button {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .header .menu {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .header .menu::-webkit-scrollbar {
    display: none;
  }

  .header ul {
    width: max-content;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0 4px;
  }

  .header ul li {
    flex-shrink: 0;
    padding: 7px 10px;
  }

  .header ul a {
    font-size: 13px;
    white-space: nowrap;
  }

  .main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .pages {
    height: 100%;
  }

  .page {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    padding: 12px;
  }

  .content {
    width: 100%;
  }

  .content h1 {
    font-size: clamp(38px, 12vw, 58px);
    margin-bottom: 10px;
  }

  .content h2 {
    font-size: clamp(26px, 8vw, 42px);
    margin-bottom: 16px;
  }

  .content p {
    font-size: 15px;
    line-height: 1.6;
  }

  .btn-group {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .btn-group button {
    width: 100%;
  }

  .card {
    width: 100%;
    min-height: auto;
    max-height: 100%;
    padding: 28px 22px;
    border-radius: 22px;
    overflow: hidden;
  }

  .card h1 {
    font-size: 36px;
    margin-bottom: 18px;
  }

  .skill-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-list div {
    padding: 14px 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card {
    height: 82px;
    border-radius: 16px;
  }

  form {
    gap: 12px;
  }

  input,
  textarea {
    padding: 13px;
    font-size: 14px;
  }

  textarea {
    min-height: 110px;
  }
}

@media only screen and (max-width: 430px) {
  html,
  body {
    padding: 8px 10px;
  }

  .header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 10px;
  }

  .header .logo,
  .header .message {
    display: none;
  }

  .header .menu {
    width: 100%;
  }

  .header ul {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .header ul li {
    padding: 6px 8px;
  }

  .header ul a {
    font-size: 12px;
  }

  .page {
    padding: 8px;
  }

  .content h1 {
    font-size: 36px;
  }

  .content h2 {
    font-size: 28px;
  }

  .content p {
    font-size: 14px;
  }

  .card {
    padding: 22px 18px;
  }

  .card h1 {
    font-size: 30px;
  }

  .project-card {
    height: 70px;
  }

  textarea {
    min-height: 90px;
  }
}
