.profile {
  padding: 10rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}


.profile::before {
  content: '';
  position: absolute;
  bottom: -5rem;
  left: 0;
  width: 100%;
  height: 20rem;
  background: url('path/to/city-skyline.svg') repeat-x;
  background-size: contain;
  opacity: 0.1;
  z-index: 0;
}

.profile-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}


.profile-lanyard {
  flex: 1;
  min-width: 30rem;
}

.lanyard-card {
  position: relative;
  width: 100%;
  max-width: 35rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.lanyard-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.lanyard-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: 
    linear-gradient(30deg, var(--accent-primary) 12%, transparent 12.5%, transparent 87%, var(--accent-primary) 87.5%, var(--accent-primary)),
    linear-gradient(150deg, var(--accent-primary) 12%, transparent 12.5%, transparent 87%, var(--accent-primary) 87.5%, var(--accent-primary)),
    linear-gradient(30deg, var(--accent-primary) 12%, transparent 12.5%, transparent 87%, var(--accent-primary) 87.5%, var(--accent-primary)),
    linear-gradient(150deg, var(--accent-primary) 12%, transparent 12.5%, transparent 87%, var(--accent-primary) 87.5%, var(--accent-primary)),
    linear-gradient(60deg, var(--accent-secondary) 25%, transparent 25.5%, transparent 75%, var(--accent-secondary) 75%, var(--accent-secondary)),
    linear-gradient(60deg, var(--accent-secondary) 25%, transparent 25.5%, transparent 75%, var(--accent-secondary) 75%, var(--accent-secondary));
  background-size: 40px 70px;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
}

.lanyard-avatar {
  position: relative;
  width: 15rem;
  height: 15rem;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: rgba(0, 204, 153, 0.05);
  padding: 0.5rem;
  overflow: hidden;
  z-index: 1;
}

.lanyard-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 0.5rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.lanyard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all var(--transition-medium) ease;
}

.lanyard-avatar:hover img {
  transform: scale(1.1);
}

.lanyard-info {
  text-align: center;
  position: relative;
  z-index: 1;
}

.lanyard-name {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.lanyard-role {
  font-size: 1.6rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.lanyard-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.lanyard-badge {
  padding: 0.5rem 1.2rem;
  background: rgba(0, 204, 153, 0.1);
  color: var(--accent-primary);
  border-radius: 5rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.lanyard-badge:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.lanyard-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.status-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
}

.status-dot.online {
  background: #4CAF50;
  box-shadow: 0 0 10px #4CAF50;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 1.4rem;
  color: var(--text-secondary);
}


.profile-text {
  flex: 1;
  max-width: 60rem;
}

.profile-text h3 {
  color: var(--accent-primary);
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
}

.profile-text h4 {
  color: var(--text-secondary);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.profile-text h3::after {
  content: '';
  position: absolute;
  width: 8rem;
  height: 0.3rem;
  background: var(--accent-primary);
  left: 0;
  bottom: -1rem;
  border-radius: 0.2rem;
}

.profile-text p {
  margin-bottom: 3rem;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1.8;
}


.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.profile-tag {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-tag:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}


.profile-skills-container {
  margin-bottom: 3rem;
}

.profile-skills-container h4 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.profile-skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-skill-item {
  width: 100%;
}

.profile-skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.profile-skill-name {
  font-size: 1.6rem;
  color: var(--text-secondary);
}

.profile-skill-percentage {
  font-size: 1.6rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.profile-skill-bar {
  height: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5rem;
  overflow: hidden;
}

.profile-skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 5rem;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.profile-buttons {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
}

.profile-buttons .btn {
  min-width: 15rem;
  padding: 1.2rem 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.profile-buttons .btn:hover {
  transform: translateY(-5px);
}


.profile-additional {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 6rem;
  max-width: 120rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.education-container, 
.languages-container {
  flex: 1;
  min-width: 30rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.education-container:hover,
.languages-container:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
}

.education-container h4,
.languages-container h4 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.education-container h4::after,
.languages-container h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 4rem;
  height: 0.2rem;
  background: var(--accent-primary);
}

.education-list,
.language-list {
  list-style: none;
}

.education-list li {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2.5rem;
}

.education-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent-primary);
  border-radius: 50%;
}

.education-list li h5 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.education-list li p {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.language-list li {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-list li:last-child {
  border-bottom: none;
}

.language-list li span:first-child {
  font-size: 1.6rem;
  color: var(--text-primary);
}

.language-list li span:last-child {
  font-size: 1.4rem;
  color: var(--accent-primary);
  font-weight: 600;
  padding: 0.3rem 1rem;
  background: rgba(0, 204, 153, 0.1);
  border-radius: 5rem;
}


.cv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cv-modal.show {
  opacity: 1;
  visibility: visible;
}

.cv-modal-content {
  width: 90%;
  max-width: 40rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.cv-modal.show .cv-modal-content {
  transform: scale(1);
}

.cv-modal-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
}

.cv-modal-content.success .cv-modal-icon {
  color: #4CAF50;
}

.cv-modal-content.error .cv-modal-icon {
  color: #F44336;
}

.cv-modal-text h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cv-modal-text p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cv-modal-close {
  padding: 1rem 3rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 5rem;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cv-modal-close:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}


@media (max-width: 992px) {
  .profile-content {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-text {
    text-align: center;
  }
  
  .profile-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .profile-buttons {
    justify-content: center;
  }
  
  .profile-lanyard {
    width: 100%;
  }
  
  .lanyard-card {
    max-width: 35rem;
  }
  
  .profile-tags {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .profile-additional {
    flex-direction: column;
    gap: 3rem;
  }
  
  .education-container, 
  .languages-container {
    width: 100%;
  }
  
  .profile-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 30rem;
    margin: 3rem auto 0;
  }
  
  .profile-buttons .btn {
    width: 100%;
  }
  
  .profile-text h3 {
    font-size: 2.6rem;
  }
  
  .profile-text h4 {
    font-size: 1.8rem;
  }
  
  .profile-text p {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .lanyard-avatar {
    width: 12rem;
    height: 12rem;
  }
  
  .lanyard-name {
    font-size: 2rem;
  }
  
  .lanyard-role {
    font-size: 1.5rem;
  }
  
  .education-container, 
  .languages-container {
    padding: 2rem;
  }
  
  .education-list li h5 {
    font-size: 1.6rem;
  }
  
  .profile-skills-container h4,
  .education-container h4,
  .languages-container h4 {
    font-size: 1.8rem;
  }
}

.btn-cv {
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 17px;
  padding: 12px 20px;
  color: white;
  background: linear-gradient(144deg, #39ff14, #00cc99 50%, #cd7f32);
  border: none;
  box-shadow: 0 0.7em 1.5em -0.5em rgba(59, 48, 78, 0.527);
  letter-spacing: 0.05em;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}


.btn-cv:hover {
  box-shadow: 0 0.5em 1.5em -0.5em #3b82f6;
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.btn-cv:active {
  box-shadow: 0 0.3em 1em -0.5em #3b82f6;
}

.btn-cv::before {
  content: "";
  width: 4px;
  height: 40%;
  background-color: white;
  position: absolute;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  left: 0;
  transition: all 0.2s;
}

.btn-cv::after {
  content: "";
  width: 4px;
  height: 40%;
  background-color: white;
  position: absolute;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  right: 0;
  transition: all 0.2s;
}

.btn-cv:hover::before,
.btn-cv:hover::after {
  height: 60%;
}

.btn-cv:hover::before {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  transform: translate(5px, -15px) rotate(45deg);
}

.btn-cv:hover::after {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  transform: translate(-5px, 15px) rotate(45deg);
}

.btn-kontak {
  --color: linear-gradient(144deg, #39ff14, #00cc99 50%, #cd7f32);
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 17px;
  padding: 12px 20px;
  color: var(--color);
  background: transparent;
  border: 2px solid var(--color);
  letter-spacing: 0.05em;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s, color 0.5s;
  overflow: hidden;
  z-index: 1;
  outline: 2px solid #39ff14;
}

.btn-kontak:before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--color);
  height: 150px;
  width: 200px;
  border-radius: 50%;
}

.btn-kontak:hover {
  color: #fff;
  box-shadow: 0 0.6em 2em -0.2em #39ff14;
}

.btn-kontak:before {
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}

.btn-kontak:hover:before {
  top: -30px;
  left: -30px;
}

.btn-kontak:active:before {
  background: #39ff14;
  transition: background 0s;
}

