.about-section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(61, 99, 221, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 107, 107, 0.05) 0%,
      transparent 20%
    ),
    #f8faff;
}

.dark-theme .about-section {
  background: radial-gradient(
      circle at 10% 20%,
      rgba(61, 99, 221, 0.08) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 107, 107, 0.08) 0%,
      transparent 20%
    ),
    #0f172a;
}

.about-header-container {
  width: 100%;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.about-image-content-container {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.about-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1.5rem;
  height: 100%;
}

.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 30px rgba(61, 99, 221, 0.2);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 500px;
  width: 100%;
  max-width: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  clip-path: polygon(
    0% 15%,
    15% 0%,
    85% 0%,
    100% 15%,
    100% 85%,
    85% 100%,
    15% 100%,
    0% 85%
  );
}

.about-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(61, 99, 221, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 107, 107, 0.2) 0%,
      transparent 50%
    );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-image-wrapper:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-2deg);
  transform-origin: center center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 50px rgba(61, 99, 221, 0.4),
    0 0 80px rgba(255, 107, 107, 0.3);
  clip-path: polygon(
    5% 10%,
    10% 5%,
    90% 5%,
    95% 10%,
    95% 90%,
    90% 95%,
    10% 95%,
    5% 90%
  );
}

.about-image-wrapper:hover::before {
  opacity: 1;
}

.dark-theme .about-image-wrapper {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 30px rgba(61, 99, 221, 0.3);
}

.about-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.01);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.08) rotate(1deg);
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at bottom,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 70%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem;
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 3;
}

.about-image-wrapper:hover .about-image-overlay {
  opacity: 1;
}

.experience-badge {
  background: rgba(61, 99, 221, 0.9);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(61, 99, 221, 0.5),
    0 0 20px rgba(61, 99, 221, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.2);
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  animation: glow 2s infinite alternate;
}

.experience-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.about-image-wrapper:hover .experience-badge {
  transform: translateY(0) scale(1);
}

.about-image-wrapper:hover .experience-badge::before {
  left: 100%;
}

.years {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.experience-badge .text {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shapes .shape {
  position: absolute;
  opacity: 0.1;
  animation: floatProfessional 20s infinite ease-in-out;
  filter: blur(1px);
}

.floating-shapes .shape-1 {
  width: 70px;
  height: 70px;
  top: -20px;
  right: -20px;
  animation-delay: 0s;
  background: var(--primary-color);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.floating-shapes .shape-2 {
  width: 50px;
  height: 50px;
  bottom: 30px;
  left: -15px;
  animation-delay: 2s;
  background: var(--accent-color);
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0% 80%,
    0% 20%
  );
}

.floating-shapes .shape-3 {
  width: 40px;
  height: 40px;
  top: 50%;
  right: 40px;
  animation-delay: 4s;
  background: var(--success-color);
  clip-path: polygon(
    50% 0%,
    80% 10%,
    100% 35%,
    100% 70%,
    80% 90%,
    50% 100%,
    20% 90%,
    0% 70%,
    0% 35%,
    20% 10%
  );
}

.about-content {
  width: 100%;
  padding-top: 0;
}

.enhanced-tabs {
  margin-bottom: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
}

.dark-theme .tabs-nav {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--dark-text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.7;
  font-size: 0.95rem;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.dark-theme .tab-btn {
  color: var(--light-text);
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(61, 99, 221, 0.15);
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(61, 99, 221, 0.15);
  border: 1px solid rgba(61, 99, 221, 0.2);
}

.tab-btn i {
  font-size: 1.2rem;
}

.tabs-content {
  position: relative;
  min-height: 300px;
}

.tab-panel {
  display: none;
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-panel.active {
  display: block;
}

.tab-content h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-text);
  text-align: left;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.75rem;
}

.tab-content h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.dark-theme .tab-content h4 {
  color: var(--light-text);
}

.tab-content p {
  color: var(--dark-text);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  text-align: left;
  font-weight: 400;
}

.dark-theme .tab-content p {
  color: var(--light-text);
  opacity: 0.8;
}

.tab-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
}

.feature:hover {
  transform: translateX(3px);
}

.feature i {
  color: var(--success-color);
  font-size: 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.vision-goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.goal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(61, 99, 221, 0.08);
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(61, 99, 221, 0.1);
}

.goal-item:hover {
  transform: translateY(-5px);
  background: rgba(61, 99, 221, 0.12);
  box-shadow: 0 10px 30px rgba(61, 99, 221, 0.15);
  border-color: rgba(61, 99, 221, 0.2);
}

.goal-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.goal-item:hover i {
  transform: scale(1.1);
}

.goal-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text);
}

.dark-theme .goal-item span {
  color: var(--light-text);
}

.timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  opacity: 0.6;
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.875rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-color);
  z-index: 2;
}

.dark-theme .timeline-item::before {
  border-color: #1e293b;
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  background: rgba(61, 99, 221, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
}

.timeline-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.dark-theme .timeline-content h5 {
  color: var(--light-text);
}

.timeline-content p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dark-theme .about-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-actions .btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: fit-content;
  font-weight: 600;
  border: none;
  text-decoration: none;
}

.about-actions .btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 8px 20px rgba(61, 99, 221, 0.3);
}

.about-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(61, 99, 221, 0.4);
}

.about-actions .btn-secondary {
  background: #64748b;
  color: white;
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.2);
}

.about-actions .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(100, 116, 139, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatProfessional {
  0%,
  100% {
    transform: translateY(0px) translateX(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-20px) translateX(12px) rotate(3deg) scale(1.02);
  }
  40% {
    transform: translateY(-10px) translateX(-8px) rotate(-2deg) scale(1.01);
  }
  60% {
    transform: translateY(6px) translateX(10px) rotate(2deg) scale(1.015);
  }
  80% {
    transform: translateY(2px) translateX(-5px) rotate(-1deg) scale(1.01);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 99, 221, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(61, 99, 221, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 99, 221, 0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 12px 35px rgba(61, 99, 221, 0.5),
      0 0 15px rgba(61, 99, 221, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 12px 35px rgba(61, 99, 221, 0.7),
      0 0 25px rgba(61, 99, 221, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.3);
  }
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about-image-content-container {
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .about-section {
    padding: 3.5rem 0;
  }

  .about-image-content-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-content {
    text-align: left;
  }

  .tabs-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-btn {
    flex: 1 0 calc(33.333% - 0.75rem);
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
  }

  .vision-goals {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tabs-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-btn {
    flex: 1 0 calc(33.333% - 0.5rem);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .tab-btn i {
    font-size: 1rem;
  }

  .timeline {
    padding-left: 1.75rem;
  }

  .timeline-item::before {
    left: -0.75rem;
  }

  .about-actions {
    flex-direction: row;
    gap: 1rem;
  }

  .about-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 2.5rem 0;
  }

  .about-image-content-container {
    gap: 2.5rem;
  }

  .about-image-wrapper {
    max-width: 100%;
    padding: 0;
  }

  .experience-badge {
    padding: 1.2rem 1.5rem;
  }

  .years {
    font-size: 1.8rem;
  }

  .tab-content h4 {
    font-size: 1.5rem;
  }

  .tab-content p {
    font-size: 1rem;
  }

  .vision-goals {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tabs-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-btn {
    flex: 1 0 calc(50% - 0.5rem);
    margin-bottom: 0.5rem;
  }

  .about-actions {
    flex-direction: column;
    width: 100%;
  }

  .about-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .tabs-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab-btn {
    width: 100%;
    flex: none;
  }
}

/* RTL Support */
.rtl .about-content {
  text-align: right;
}

.rtl .tab-content h4 {
  text-align: right;
}

.rtl .tab-content h4::after {
  left: auto;
  right: 0;
}

.rtl .feature {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.rtl .timeline {
  padding-left: 0;
  padding-right: 2rem;
}

.rtl .timeline::before {
  left: auto;
  right: 0;
}

.rtl .timeline-item::before {
  left: auto;
  right: -0.875rem;
}

.rtl .tabs-nav {
  justify-content: flex-end;
}
