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

body {
  background: #0d0d0d;
  color: #fff;
  font-family: "DM Sans", sans-serif;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 50px;
  border-bottom: 1px solid #252525;
  position: relative;
}

.logo {
  font-size: 22px;
  font-weight: 800;
}

.purple-word {
  color: #9b5cff;
}

.links {
  display: flex;
  gap: 36px;
}

.links a {
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.links a:hover {
  color: #9b5cff;
  text-decoration: underline;
}

.active-link {
  color: #9b5cff !important;
}

.right-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.big-purple-btn {
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 50px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

.big-purple-btn:hover {
  background: #9b5cff;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.round-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.mobile-menu {
  display: none;
}

.wrapper {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 200px;
  grid-template-rows: 240px 240px auto auto;
  gap: 12px;
  padding: 30px 50px;
}

.box {
  background: #1a1a1e;
  border: 1px solid #252525;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tiny-purple {
  font-size: 11px;
  color: #9b5cff;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.medium-title {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
}

.gray-text {
  font-size: 13px;
  color: #fff;
}

.small-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #252525;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}

.small-round-btn:hover {
  background: #7c3aed;
  transform: rotate(-45deg);
}

.hollow {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
  color: transparent;
}

.photo-box {
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 0;
  gap: 0;
  justify-content: flex-end;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 18px;
}

.avail-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #4ade80;
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  animation: glow-badge 2.5s ease-in-out infinite;
}

.green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: dot-breathe 2s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { transform: scale(1.5); box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-badge {
  0%, 100% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.15); }
  50% { box-shadow: 0 0 18px rgba(74, 222, 128, 0.35); }
}

.intro-box {
  grid-column: 2;
  grid-row: 1;
  background: #131316;
  justify-content: center;
  padding: 28px;
  gap: 4px;
}

.big-name {
  font-family: "Syne", sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  animation: focus-in-contract-bck 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes focus-in-contract-bck {
  0% {
    letter-spacing: 1em;
    transform: translateZ(300px);
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    transform: translateZ(12px);
    filter: blur(0);
    opacity: 1;
  }
}

.intro-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-top: 12px;
}

.contact-box {
  grid-column: 3;
  grid-row: 1;
  justify-content: space-between;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 6px;
  flex: 1;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ccc;
  transition: transform 0.2s, color 0.2s;
  cursor: default;
}

.contact-row:hover {
  transform: translateX(5px);
  color: #fff;
}

.contact-row:hover .c-icon {
  color: #b47fff;
}

.c-icon {
  font-size: 17px;
  color: #9b5cff;
  flex-shrink: 0;
}

.right-col {
  grid-column: 4;
  grid-row: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-box {
  flex: 1;
  background: #131316;
  border-radius: 18px 18px 0 0;
  border-bottom: none;
  justify-content: space-around;
  text-align: center;
  padding: 20px 14px;
}

.one-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.big-num {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.tiny-label {
  font-size: 9px;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.thin-line {
  height: 1px;
  background: #252525;
  width: 100%;
}

.cv-box {
  background: #131316;
  border-radius: 0 0 18px 18px;
  border-top: 1px solid #252525;
  padding: 20px;
  justify-content: space-between;
  min-height: 150px;
}

.exp-box {
  grid-column: 2;
  grid-row: 2;
  gap: 14px;
  overflow: auto;
}

.exp-box::-webkit-scrollbar {
  width: 4px;
}

.exp-box::-webkit-scrollbar-track {
  background: #131316;
  border-radius: 10px;
}

.exp-box::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 10px;
}

.exp-box::-webkit-scrollbar-thumb:hover {
  background: #9b5cff;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.exp-item {
  display: flex;
  gap: 14px;
}

.exp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c3aed;
  border: 2px solid #9b5cff;
  flex-shrink: 0;
  margin-top: 4px;
  animation: dot-breathe 3s ease-in-out infinite;
}

.exp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1e1e22;
}

.exp-item:last-child .exp-body {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exp-role {
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.exp-date {
  font-size: 11px;
  color: #9b5cff;
  background: rgba(155, 92, 255, 0.1);
  border: 1px solid rgba(155, 92, 255, 0.2);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-company {
  font-size: 12px;
  color: #888;
}

.exp-desc {
  font-size: 12px;
  color: #aaa;
  line-height: 1.55;
}

.edu-box {
  grid-column: 3;
  grid-row: 2;
  justify-content: space-between;
}

.edu-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.edu-degree {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.edu-school {
  font-size: 13px;
  color: #9b5cff;
}

.edu-date {
  font-size: 12px;
  color: #666;
}

.skills-box {
  grid-column: 1 / 4;
  grid-row: 3;
  gap: 14px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 1;
  align-content: center;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #131316;
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 20px 12px;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  cursor: default;
}

.skill-card:hover {
  border-color: rgba(155, 92, 255, 0.45);
  background: rgba(155, 92, 255, 0.06);
  transform: translateY(-2px);
}

.skill-icon-wrap {
  font-size: 30px;
  color: #9b5cff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, transform 0.25s;
}

.skill-card:hover .skill-icon-wrap {
  color: #b47fff;
  transform: scale(1.2) rotate(-5deg);
}

.skill-name {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;
  transition: color 0.2s;
}

.skill-card:hover .skill-name {
  color: #fff;
}

.hire-box {
  grid-column: 1 / 4;
  grid-row: 4;
  background: #131316;
  justify-content: space-between;
  min-height: 110px;
}

.box {
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: fade-up 0.55s ease both;
}

.box:nth-child(1) { animation-delay: 0s; }
.box:nth-child(2) { animation-delay: 0.08s; }
.box:nth-child(3) { animation-delay: 0.14s; }
.box:nth-child(4) { animation-delay: 0.2s; }
.box:nth-child(5) { animation-delay: 0.26s; }
.box:nth-child(6) { animation-delay: 0.32s; }
.box:nth-child(7) { animation-delay: 0.38s; }

.box:hover {
  border-color: rgba(155, 92, 255, 0.28);
  box-shadow: 0 6px 30px rgba(155, 92, 255, 0.09);
}

.intro-box,
.contact-box,
.exp-box,
.edu-box,
.skills-box,
.hire-box {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.intro-box:hover,
.contact-box:hover,
.exp-box:hover,
.edu-box:hover,
.skills-box:hover,
.hire-box:hover {
  transform: translateY(-3px);
}

.small-round-btn {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.small-round-btn:hover {
  background: #7c3aed;
  transform: rotate(-45deg);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.exp-role {
  transition: color 0.2s;
}

.exp-item:hover .exp-role {
  color: #9b5cff;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 50px;
  border-top: 1px solid #252525;
}

.copy-text {
  font-size: 13px;
  color: #fff;
}

.purple-link {
  color: #9b5cff;
  text-decoration: none;
}

.foot-links {
  display: flex;
  gap: 28px;
}

.foot-links a {
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.foot-links a:hover {
  color: #9b5cff;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  nav {
    padding: 16px 30px;
  }

  footer {
    padding: 18px 30px;
  }

  .wrapper {
    grid-template-columns: 180px 1fr 1fr 180px;
    padding: 20px 30px;
  }

  .big-name {
    font-size: 38px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 14px 24px;
  }

  footer {
    padding: 16px 24px;
  }

  .wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    padding: 16px 24px;
  }

  .photo-box {
    grid-column: 1;
    grid-row: auto;
    min-height: 300px;
  }

  .intro-box {
    grid-column: 2;
    grid-row: auto;
  }

  .contact-box {
    grid-column: 1;
    grid-row: auto;
  }

  .right-col {
    grid-column: 2;
    grid-row: 2 / 5;
  }

  .exp-box {
    grid-column: 1;
    grid-row: auto;
  }

  .edu-box {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .skills-box {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .hire-box {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .big-name {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 14px 16px;
  }

  nav .links {
    display: none;
  }

  nav .right-side {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    position: absolute;
    top: 61px;
    left: 0;
    right: 0;
    background: #131316;
    border-bottom: 1px solid #252525;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .mobile-menu a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    padding: 16px 24px;
    border-bottom: 1px solid #1e1e1e;
    transition:
      color 0.2s,
      background 0.2s;
  }

  .mobile-menu a:hover {
    color: #9b5cff;
    background: #1a1a1e;
  }

  .menu-toggle:checked ~ .mobile-menu {
    display: flex;
    max-height: 300px;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 18px 16px;
  }

  .wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  .photo-box {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
  }

  .intro-box {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-box {
    grid-column: 1;
    grid-row: auto;
  }

  .right-col {
    grid-column: 1;
    grid-row: auto;
    min-height: 380px;
  }

  .exp-box {
    grid-column: 1;
    grid-row: auto;
  }

  .edu-box {
    grid-column: 1;
    grid-row: auto;
  }

  .skills-box {
    grid-column: 1;
    grid-row: auto;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hire-box {
    grid-column: 1;
    grid-row: auto;
  }

  .big-name {
    font-size: 34px;
  }

  .exp-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 400px) {
  nav {
    padding: 12px;
  }

  .wrapper {
    padding: 10px 12px;
    gap: 8px;
  }

  footer {
    padding: 16px 12px;
  }

  .big-name {
    font-size: 28px;
  }

  .big-purple-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}
