/* About 3D Section - Premium Animations */

.about-3d-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  perspective: 1200px;
  overflow: hidden;
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-3d-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(163, 230, 53, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl);
}

.about-content {
  animation: fadeInLeft 0.8s ease-out;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.about-text {
  margin-bottom: 0;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  animation: slideInLeft 0.6s ease-out 0.1s backwards;
  letter-spacing: -0.02em;
}

.about-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  animation: slideInLeft 0.6s ease-out 0.2s backwards;
}

/* Improved CTA button styling and hover effects */
.about-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #000000;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all var(--transition-base);
  animation: slideInLeft 0.6s ease-out 0.3s backwards;
  border: 2px solid var(--primary);
  width: fit-content;
  font-size: 1rem;
}

.about-cta:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: 0 12px 30px rgba(163, 230, 53, 0.35);
  background: transparent;
  color: var(--primary);
}

/* Enhanced image container with refined 3D effects */
.about-image-container {
  animation: fadeInRight 0.8s ease-out;
  perspective: 1200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-container::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: conic-gradient(from 0deg, rgba(163, 230, 53, 0.2), rgba(163, 230, 53, 0.05), rgba(163, 230, 53, 0.2));
  border-radius: 2rem;
  animation: rotate 8s linear infinite;
  z-index: 0;
}

.image-frame-3d {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(163, 230, 53, 0.15);
  transform-style: preserve-3d;
  transition: all var(--transition-base);
  z-index: 1;
}

/* Improved 3D rotated background frame to be more visible and prominent */
.frame-background-3d {
  position: absolute;
  inset: -100px;
  background: linear-gradient(
    135deg,
    rgba(163, 230, 53, 0.4) 0%,
    rgba(163, 230, 53, 0.2) 50%,
    rgba(163, 230, 53, 0.1) 100%
  );
  border-radius: 3rem;
  border: 2px solid rgba(163, 230, 53, 0.3);
  transform: rotateY(-30deg) rotateX(20deg) rotateZ(15deg);
  z-index: -1;
  filter: blur(0px);
  box-shadow: 0 30px 100px rgba(163, 230, 53, 0.3), inset 0 0 60px rgba(163, 230, 53, 0.15);
  animation: floatFrame 4s ease-in-out infinite;
}

.image-frame-3d img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.5rem;
  transition: all var(--transition-slow);
  transform-origin: center;
  filter: brightness(0.95) contrast(1.05);
}

.image-frame-3d:hover img {
  transform: scale(1.1) rotateY(8deg) rotateX(-3deg);
  filter: brightness(1.15) contrast(1.1) saturate(1.15);
}

.image-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1.5rem;
  background: radial-gradient(ellipse at 30% 30%, rgba(163, 230, 53, 0.25) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.image-frame-3d:hover .image-glow {
  opacity: 1;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Added floating animation to the background frame */
@keyframes floatFrame {
  0%,
  100% {
    transform: rotateY(-30deg) rotateX(20deg) rotateZ(15deg) translateY(0px);
  }
  50% {
    transform: rotateY(-30deg) rotateX(20deg) rotateZ(15deg) translateY(-10px);
  }
}

/* Responsive design */
@media (max-width: 1200px) {
  .about-container {
    gap: var(--spacing-xl);
  }

  .image-frame-3d:hover img {
    transform: scale(1.07) rotateY(5deg) rotateX(-2deg);
  }
}

@media (max-width: 1024px) {
  /* Improved mobile layout - stack vertically */
  .about-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
  }

  .about-image-container {
    order: -1;
  }

  .image-frame-3d:hover img {
    transform: scale(1.05) rotateY(3deg) rotateX(-1deg);
  }
}

@media (max-width: 768px) {
  .about-3d-section {
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: auto;
  }

  .about-container {
    padding: var(--spacing-md);
  }

  .about-title {
    font-size: 2.2rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .image-frame-3d:hover img {
    transform: scale(1.03);
  }
}

@media (max-width: 480px) {
  .about-3d-section {
    min-height: auto;
  }

  .about-title {
    font-size: 1.8rem;
  }

  .about-container {
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
  }
}
