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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}


@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 40px;
  text-align: center;
  position: relative;
}

.language-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.lang-btn.active {
  background: white;
  color: #2c3e50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #3498db;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.justify {
  text-align: justify;
  text-justify: auto;
}

.quote {
  font-style: italic;
  font-size: medium;
}

.name {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.title {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 400;
}

.main-content {
  padding: 40px;
}

.section {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.6s ease-out forwards;
}

.section:nth-child(1) {
  animation-delay: 0.2s;
}

.section:nth-child(2) {
  animation-delay: 0.4s;
}

.section:nth-child(3) {
  animation-delay: 0.6s;
}

.section:nth-child(4) {
  animation-delay: 0.8s;
}

.section:nth-child(5) {
  animation-delay: 1s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
  border-radius: 2px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: #3498db;
}

.experience-item,
.education-item {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.experience-item:hover,
.education-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.expand-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.2rem;
  color: #3498db;
  transition: transform 0.3s ease;
}

.experience-item.expanded .expand-icon {
  transform: rotate(180deg);
}

.experience-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding-top 0.3s ease;
  opacity: 0;
}

.experience-details.expanded {
  max-height: 500px;
  opacity: 1;
  padding-top: 15px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.detail-section {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.detail-section h5 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.detail-section ul {
  list-style: none;
  padding: 0;
}

.detail-section li {
  padding: 3px 0;
  padding-left: 15px;
  position: relative;
  color: #555;
  font-size: 0.9rem;
}

.detail-section li::before {
  content: "•";
  color: #3498db;
  position: absolute;
  left: 0;
}

.expand-hint {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 10px;
  font-style: italic;
}

.job-title,
.degree {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.company,
.school {
  font-weight: 500;
  color: #3498db;
  margin-bottom: 5px;
}

.date {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

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

.skill-category {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.skill-item {
  margin-bottom: 10px;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2c3e50);
  border-radius: 3px;
  transition: width 1s ease-out;
}

.lang-content {
  transition: all 0.3s ease;
}

.lang-content.hidden {
  display: none;
}

.fade-transition {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-transition.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-radius: 10px;
  }

  .header {
    padding: 30px 20px;
  }

  .language-toggle {
    position: static;
    justify-content: center;
    margin-bottom: 20px;
  }

  .name {
    font-size: 2rem;
  }

  .main-content {
    padding: 30px 20px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}
