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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #1a202c;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background particles */
.bg-decoration {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { width: 100px; height: 100px; left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { width: 40px; height: 40px; left: 30%; animation-delay: 6s; }
.particle:nth-child(5) { width: 70px; height: 70px; left: 70%; animation-delay: 8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-100vh) rotate(360deg); opacity: 0.6; }
}

header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px 60px;
  color: white;
  animation: fadeInDown 1s ease-out;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
  animation: fadeIn 1.2s ease-out;
}

header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.title-container {
  max-width: 800px;
  margin: 0 auto 40px;
}

.main-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.sub-titles {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.lang-switcher {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.links a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.links a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.section {
  margin-bottom: 60px;
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
}

.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 h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.3));
  border-radius: 2px;
}

.about-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-content strong {
  color: #4a5568;
  font-weight: 600;
}

/* Grid Layout for Cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-thumbnail {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  background: #f7fafc;
  padding: 20px;
  box-sizing: border-box;
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #718096, #4a5568);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  transform: scaleY(1);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
  color: #1a202c;
  line-height: 1.4;
}

.card h3 a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card h3 a:hover {
  color: #4a5568;
}

.card p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 0.95rem;
  flex: 1;
}

.card-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(74, 85, 104, 0.1);
  color: #4a5568;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(74, 85, 104, 0.15);
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 60px 20px 50px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .lang-switcher {
    top: 20px;
    right: 20px;
    padding: 6px;
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .about-content {
    padding: 28px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-thumbnail {
    height: 160px;
  }
  
  .links {
    gap: 8px;
  }
  
  .links a {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .links a img {
    width: 18px;
    height: 18px;
  }
}
