.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 8, 20, 0.9);
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px;
  z-index: 100;
}

.top-nav a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
}

.top-nav a.active,
.top-nav a:hover {
  opacity: 1;
  color: #00b3ff;
}

.about-hero {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(11, 28, 58, 0.8), rgba(168, 85, 247, 0.3), rgba(0, 119, 255, 0.3));
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
  animation: spin 20s linear infinite;
}

.about-hero::after {
  content: '✨🔮⚡🌟🧙‍♂️🤖⭐💡';
  position: absolute;
  font-size: 4em;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  letter-spacing: 40px;
  top: 20%;
}

.about-hero h1,
.about-hero p {
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  gap: 40px;
}

.about-card {
  background: rgba(255,255,255,0.05);
  padding: 35px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(0,179,255,0.15);
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s ease;
  border: 2px solid rgba(168, 85, 247, 0.2);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
  transition: left 0.5s ease;
}

.about-card:hover::before {
  left: 100%;
}

.about-card.animated-card {
  position: relative;
}

.about-card.animated-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 40px rgba(0,179,255,0.3);
  border-color: rgba(0, 179, 255, 0.5);
}

.robot-img {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 20px auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.robot-img:hover {
  transform: scale(1.05);
}

.card-decoration {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.about-card.animated-card:hover .card-decoration {
  opacity: 0.7;
}

.float-icon {
  font-size: 1.5em;
  animation: float 3s ease-in-out infinite;
}

.float-icon:nth-child(2) {
  animation-delay: 0.5s;
}

.float-icon:nth-child(3) {
  animation-delay: 1s;
}

.about-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.about-card.expandable {
  cursor: pointer;
}

.about-card.expandable h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.expand-icon {
  font-size: 1.5em;
  color: #a855f7;
  transition: transform 0.3s;
}

.about-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.hidden-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 15px;
}

.hidden-content p {
  margin-top: 15px;
  line-height: 1.6;
}

.preview {
  opacity: 0.6;
  font-style: italic;
  margin-top: 10px;
}

.values {
  padding: 80px 20px;
  text-align: center;
}

.values-subtitle {
  margin-top: 10px;
  opacity: 0.7;
  font-size: 0.95em;
  color: #a855f7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 40px auto;
  perspective: 1000px;
}

.value {
  height: 180px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  border-radius: 15px;
}

.value:hover {
  transform: translateY(-10px) scale(1.05);
}

.value.flipped {
  transform: rotateY(180deg);
}

.value-front,
.value-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0,179,255,0.4);
}

.value-front {
  background: linear-gradient(135deg, #0077ff, #00b3ff);
}

.value-back {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  transform: rotateY(180deg);
}

.value-icon {
  font-size: 3em;
  margin-bottom: 10px;
  animation: float 3s infinite ease-in-out;
}

.value-label {
  font-size: 1.1em;
  font-weight: 600;
}

.value-back p {
  text-align: center;
  line-height: 1.5;
  margin-top: 8px;
}

.value-back strong {
  display: block;
  margin-bottom: 8px;
  color: #ffd700;
}

