/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 1rem;
  overflow-x: hidden;
  position: relative;
}

/* === Fade-in Animation === */
.fade-in {
  animation: fadeIn 1.2s ease-in-out both;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Main Container === */
.about-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
  z-index: 2;
}

/* === Glass Card === */
.about-card {
  background: rgba(20, 20, 20, 0.5);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(123, 228, 62, 0.2);
  color: #eee;
}

/* === Top section (image + intro) === */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #7be43e;
  box-shadow: 0 0 15px rgba(123, 228, 62, 0.3);
  margin-bottom: 1rem;
}

.intro {
  margin-left: 2rem;
  max-width: 500px;
  position: relative;
}

.intro h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, #7be43e, #5b913b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
}

.intro h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.subtitle {
  font-size: 1.2rem;
  color: #b6ff9e;
  margin-top: 0.5rem;
}

.motto {
  font-style: italic;
  color: #c2ffd6;
  margin-top: 0.8rem;
}

/* === Content section === */
.content {
  margin-top: 2rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.content ul {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.content li {
  margin-bottom: 0.5rem;
}

/* === Button === */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: rgba(123, 228, 62, 0.1);
  border: 1px solid #7be43e;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn:hover {
  background: #7be43e;
  color: #000;
  transform: translateY(-2px);
}

/* === Footer === */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: transparent;
  color: white;
  padding: 1rem;
  font-size: 0.95rem;
  gap: 1rem;
  z-index: 3;
}

.footer .social {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.footer .social:hover {
  color: #7be43e;
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  .top {
    flex-direction: column;
  }

  .intro {
    margin-left: 0;
    margin-top: 1rem;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

.lang-switch-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #7be43e;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.flag {
  font-size: 0.9rem;
  color: white;
  font-weight: bold;
}

.lang-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.lang-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #7be43e;
}

input:checked + .slider:before {
  transform: translateX(22px);
}
