/* ============================================
   ABOUT SECTION ENHANCEMENTS
   ============================================ */

/* Blob/Morphing Shape Background */
.page-about {
  position: relative;
  overflow: hidden;
}

.about-blob-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.about-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobMorph 15s ease-in-out infinite;
}

.about-blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.about-blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #ff6b5b, #ef3724);
  bottom: -5%;
  left: -5%;
  animation-delay: 5s;
}

@keyframes blobMorph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(90deg) scale(1.1);
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%;
    transform: rotate(180deg) scale(1);
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    transform: rotate(270deg) scale(1.1);
  }
}

/* About section content z-index */
.page-about .container {
  position: relative;
  z-index: 1;
}

/* Profile Image with Animated Gradient Border */
.profile-image-wrapper {
  display: inline-block;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.profile-gradient-border {
  position: relative;
  padding: 5px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    #ef3724,
    #ff6b5b,
    #ffd700,
    #ef3724,
    #ff6b5b
  );
  background-size: 300% 300%;
  animation: gradientBorderRotate 4s ease infinite;
}

@keyframes gradientBorderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.profile-gradient-border::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background: #fff;
  border-radius: 8px;
  z-index: 0;
}

.profile-gradient-border .profile-img {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 20%;
}

/* About Text Content Styling */
.about-text-content {
  position: relative;
}

.about-title {
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 0.8s ease forwards;
  animation-delay: 0.2s;
}

.about-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 0.8s ease forwards;
  animation-delay: 0.4s;
}

.about-description {
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 0.8s ease forwards;
  animation-delay: 0.6s;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Cards with 3D Flip Effect */
.contact-cards-container {
  display: flex;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.contact-card-flip {
  width: 140px;
  height: 80px;
  perspective: 1000px;
}

.contact-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.contact-card-flip:hover .contact-card-inner {
  transform: rotateY(180deg);
}

.contact-card-front,
.contact-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card-front {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border: 1px solid rgba(239, 55, 36, 0.2);
}

.contact-card-front .contact-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}

.contact-card-front span {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.contact-card-back {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  color: white;
  transform: rotateY(180deg);
}

.contact-card-back span {
  font-size: 0.75rem;
  word-break: break-all;
  line-height: 1.3;
}

/* Social Icons with Bounce Hover */
.social-icons-container {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.social-icon-bounce {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.social-icon-bounce img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-icon-bounce:hover {
  animation: iconBounce 0.6s ease;
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.3);
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
}

.social-icon-bounce:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(-8px);
  }
}

/* CV Download Button Enhancement */
.btn-cv-download {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-cv-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-cv-download:hover::before {
  left: 100%;
}

.btn-cv-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.3);
}

/* Responsive About Section */
@media (max-width: 991px) {
  .about-blob-1 {
    width: 300px;
    height: 300px;
  }

  .about-blob-2 {
    width: 250px;
    height: 250px;
  }

  .contact-cards-container {
    justify-content: center;
  }

  .social-icons-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-card-flip {
    width: 100%;
    max-width: 200px;
  }

  .profile-gradient-border .profile-img {
    height: auto;
    max-height: 400px;
  }

  .about-blob {
    opacity: 0.1;
  }
}

/* ============================================
   ABOUT SECTION - STACKED LAYOUT (NEW)
   ============================================ */

/* Stacked Layout Container */
.about-stacked-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

/* Image Section - Top of Stack */
.about-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Square Image Carousel */
.square-image-carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.square-images-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.square-carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.square-carousel-img.active {
  opacity: 1;
}

/* Carousel Gradient Border */
.square-image-carousel::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light), var(--color-accent), var(--color-primary));
  background-size: 300% 300%;
  animation: gradientBorderRotate 4s ease infinite;
  border-radius: calc(var(--radius-xl) + 3px);
  z-index: -1;
}

/* Carousel Indicators */
.square-carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.square-carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.square-carousel-indicators .indicator.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.2);
}

/* Carousel Navigation Arrows */
.square-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.square-carousel-nav:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.square-carousel-nav.prev {
  left: 10px;
}

.square-carousel-nav.next {
  right: 10px;
}

/* ============================================
   3D COVERFLOW CAROUSEL WITH NEON GLOW
   ============================================ */

.coverflow-carousel {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 420px;
  margin: 0 auto;
  perspective: 1200px;
  overflow: visible;
}

.coverflow-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.coverflow-slide {
  position: absolute;
  width: 280px;
  height: 350px;
  left: 50%;
  top: 50%;
  margin-left: -140px;
  margin-top: -175px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.coverflow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

/* Active slide (center) */
.coverflow-slide.active {
  z-index: 10;
  transform: translateZ(100px) scale(1.05);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(239, 55, 36, 0.8),
    0 0 40px rgba(239, 55, 36, 0.5),
    0 0 80px rgba(239, 55, 36, 0.3);
}

/* Neon glow animation for active slide */
.coverflow-slide.active::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg,
    #ef3724, #ff6b5b, #ffd700, #ff6b5b, #ef3724);
  background-size: 400% 400%;
  border-radius: 24px;
  z-index: -1;
  animation: neonGlowRotate 3s ease infinite;
  filter: blur(8px);
}

.coverflow-slide.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

@keyframes neonGlowRotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Left slides (prev) */
.coverflow-slide.prev-1 {
  z-index: 8;
  transform: translateX(-200px) translateZ(-50px) rotateY(35deg) scale(0.85);
  opacity: 0.9;
  filter: brightness(0.8);
}

.coverflow-slide.prev-2 {
  z-index: 6;
  transform: translateX(-350px) translateZ(-150px) rotateY(45deg) scale(0.7);
  opacity: 0.6;
  filter: brightness(0.6);
}

.coverflow-slide.prev-3 {
  z-index: 4;
  transform: translateX(-450px) translateZ(-250px) rotateY(50deg) scale(0.55);
  opacity: 0.3;
  filter: brightness(0.4);
}

/* Right slides (next) */
.coverflow-slide.next-1 {
  z-index: 8;
  transform: translateX(200px) translateZ(-50px) rotateY(-35deg) scale(0.85);
  opacity: 0.9;
  filter: brightness(0.8);
}

.coverflow-slide.next-2 {
  z-index: 6;
  transform: translateX(350px) translateZ(-150px) rotateY(-45deg) scale(0.7);
  opacity: 0.6;
  filter: brightness(0.6);
}

.coverflow-slide.next-3 {
  z-index: 4;
  transform: translateX(450px) translateZ(-250px) rotateY(-50deg) scale(0.55);
  opacity: 0.3;
  filter: brightness(0.4);
}

/* Hidden slides */
.coverflow-slide.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) translateZ(-400px) scale(0.3);
}

/* Reflection effect under active slide */
.coverflow-slide.active img {
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Navigation arrows */
.coverflow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  z-index: 20;
}

.coverflow-nav:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 25px rgba(239, 55, 36, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.coverflow-prev {
  left: -10px;
}

.coverflow-next {
  right: -10px;
}

/* Dot indicators */
.coverflow-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coverflow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.coverflow-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.coverflow-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 15px rgba(239, 55, 36, 0.8);
  transform: scale(1.3);
}

/* Auto-play progress indicator */
.coverflow-carousel::after {
  content: '';
  position: absolute;
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.coverflow-carousel.playing::before {
  content: '';
  position: absolute;
  bottom: -55px;
  left: calc(50% - 100px);
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 3px;
  z-index: 1;
  animation: progressBar 5s linear infinite;
}

@keyframes progressBar {
  0% { width: 0%; }
  100% { width: 200px; }
}

/* Pause on hover */
.coverflow-carousel:hover.playing::before {
  animation-play-state: paused;
}

/* ============================================
   COVERFLOW CAROUSEL - LIGHT MODE (Default)
   ============================================ */

:root .coverflow-carousel {
  background: linear-gradient(135deg,
    rgba(248, 249, 250, 0.8) 0%,
    rgba(233, 236, 239, 0.6) 50%,
    rgba(248, 249, 250, 0.8) 100%);
  border-radius: 30px;
  padding: 20px;
}

:root .coverflow-slide {
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

:root .coverflow-slide img {
  border: none;
}

:root .coverflow-slide.active {
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(239, 55, 36, 0.9),
    0 0 30px rgba(239, 55, 36, 0.4),
    0 0 60px rgba(239, 55, 36, 0.2);
  border-color: transparent;
}

:root .coverflow-slide.active::before {
  background: linear-gradient(45deg,
    #ef3724, #ff6b5b, #ffd700, #ff6b5b, #ef3724);
  filter: blur(10px);
  opacity: 0.8;
}

:root .coverflow-slide.prev-1,
:root .coverflow-slide.next-1 {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

:root .coverflow-slide.prev-2,
:root .coverflow-slide.next-2 {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

:root .coverflow-slide.prev-3,
:root .coverflow-slide.next-3 {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

:root .coverflow-nav {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

:root .coverflow-nav:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow:
    0 6px 20px rgba(239, 55, 36, 0.4),
    0 0 20px rgba(239, 55, 36, 0.3);
}

:root .coverflow-dots {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

:root .coverflow-dot {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

:root .coverflow-dot:hover {
  background: rgba(0, 0, 0, 0.3);
}

:root .coverflow-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(239, 55, 36, 0.5);
}

:root .coverflow-carousel::after {
  background: rgba(0, 0, 0, 0.08);
}

:root .coverflow-carousel.playing::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

/* ============================================
   COVERFLOW CAROUSEL - DARK MODE
   ============================================ */

[data-theme="dark"] .coverflow-carousel {
  background: linear-gradient(135deg,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(15, 15, 30, 0.95) 50%,
    rgba(26, 26, 46, 0.9) 100%);
  border-radius: 30px;
  padding: 20px;
}

[data-theme="dark"] .coverflow-slide {
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 5px 20px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .coverflow-slide.active {
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 0 4px rgba(239, 55, 36, 1),
    0 0 50px rgba(239, 55, 36, 0.6),
    0 0 100px rgba(239, 55, 36, 0.3),
    inset 0 0 30px rgba(239, 55, 36, 0.1);
  border-color: transparent;
}

[data-theme="dark"] .coverflow-slide.active::before {
  background: linear-gradient(45deg,
    #ef3724, #ff4444, #ffd700, #ff6b5b, #ef3724);
  filter: blur(12px);
  opacity: 1;
}

[data-theme="dark"] .coverflow-slide.active::after {
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .coverflow-slide.prev-1,
[data-theme="dark"] .coverflow-slide.next-1 {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .coverflow-slide.prev-2,
[data-theme="dark"] .coverflow-slide.next-2 {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .coverflow-slide.prev-3,
[data-theme="dark"] .coverflow-slide.next-3 {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .coverflow-nav {
  background: rgba(30, 30, 50, 0.8);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .coverflow-nav:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow:
    0 8px 30px rgba(239, 55, 36, 0.5),
    0 0 30px rgba(239, 55, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .coverflow-dots {
  background: rgba(30, 30, 50, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .coverflow-dot {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .coverflow-dot:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .coverflow-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow:
    0 0 15px rgba(239, 55, 36, 0.8),
    0 0 30px rgba(239, 55, 36, 0.4);
}

[data-theme="dark"] .coverflow-carousel::after {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .coverflow-carousel.playing::before {
  background: linear-gradient(90deg,
    var(--color-primary),
    var(--color-primary-light),
    var(--color-accent));
  box-shadow: 0 0 10px rgba(239, 55, 36, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .coverflow-carousel {
    max-width: 100%;
    height: 380px;
  }

  .coverflow-slide {
    width: 240px;
    height: 300px;
    margin-left: -120px;
    margin-top: -150px;
  }

  .coverflow-slide.prev-1 {
    transform: translateX(-150px) translateZ(-50px) rotateY(30deg) scale(0.8);
  }

  .coverflow-slide.next-1 {
    transform: translateX(150px) translateZ(-50px) rotateY(-30deg) scale(0.8);
  }

  .coverflow-slide.prev-2,
  .coverflow-slide.next-2,
  .coverflow-slide.prev-3,
  .coverflow-slide.next-3 {
    opacity: 0;
  }

  .coverflow-prev {
    left: 5px;
  }

  .coverflow-next {
    right: 5px;
  }
}

@media (max-width: 576px) {
  .coverflow-carousel {
    height: 340px;
  }

  .coverflow-slide {
    width: 200px;
    height: 260px;
    margin-left: -100px;
    margin-top: -130px;
  }

  .coverflow-slide.prev-1 {
    transform: translateX(-100px) translateZ(-30px) rotateY(25deg) scale(0.75);
    opacity: 0.5;
  }

  .coverflow-slide.next-1 {
    transform: translateX(100px) translateZ(-30px) rotateY(-25deg) scale(0.75);
    opacity: 0.5;
  }

  .coverflow-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .coverflow-dots {
    padding: 8px 15px;
    gap: 6px;
  }

  .coverflow-dot {
    width: 8px;
    height: 8px;
  }
}

/* Name Section Below Image */
/* ============================================
   IMAGE LIGHTBOX MODAL
   ============================================ */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active .lightbox-image-container {
  transform: scale(1);
}

.lightbox-image {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(239, 55, 36, 0.5);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 30px rgba(239, 55, 36, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Lightbox zoom animation */
@keyframes lightboxZoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-modal.active .lightbox-image {
  animation: lightboxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-image {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-counter {
    bottom: 20px;
    font-size: 0.9rem;
    padding: 8px 20px;
  }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

.about-name-section {
  margin-top: 80px; /* Extra space to clear carousel dots and progress bar */
  text-align: center;
}

.about-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  letter-spacing: var(--letter-spacing-tight);
}

.about-title {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--space-3);
}

.about-language-tags {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.language-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.language-tag i {
  color: var(--color-primary);
}

/* Content Section - Below Image */
.about-content-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Bio Card */
.about-bio-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color-light);
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bio-paragraph {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin: 0;
}

.bio-paragraph.bio-motto {
  font-style: italic;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05), rgba(var(--color-primary-rgb), 0.1));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  position: relative;
}

.bio-paragraph.bio-motto i {
  color: var(--color-primary);
  opacity: 0.5;
  margin: 0 var(--space-2);
}

/* Contact & Social Row */
.about-contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
}

/* Contact Cards Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.about-contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.about-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.about-contact-card .contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-contact-card .contact-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.about-contact-card .contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.about-contact-card .contact-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.about-contact-card .contact-value {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  word-break: break-word;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 30, 50, 0.8);
}

/* Social Section */
.about-social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.social-icons-row {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.about-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color-light);
}

.about-social-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.about-social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  background: var(--color-primary);
}

.about-social-link:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .about-bio-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .about-contact-card {
  background: var(--bg-card);
}

[data-theme="dark"] .about-contact-card:hover {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .language-tag {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .about-social-link {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .square-carousel-nav {
  background: rgba(30, 30, 50, 0.9);
  color: var(--color-primary);
}

[data-theme="dark"] .square-carousel-nav:hover {
  background: var(--color-primary);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .about-stacked-layout {
    gap: var(--space-6);
  }

  .square-image-carousel {
    max-width: 320px;
  }

  .about-name {
    font-size: var(--font-size-xl);
  }

  .about-bio-card {
    padding: var(--space-5);
  }

  .bio-paragraph {
    font-size: var(--font-size-sm);
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .about-contact-card {
    padding: var(--space-4);
  }

  .about-contact-card .contact-icon {
    width: 40px;
    height: 40px;
  }

  .about-contact-card .contact-icon img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .square-image-carousel {
    max-width: 280px;
  }

  .square-carousel-nav {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .about-name {
    font-size: var(--font-size-lg);
  }

  .about-language-tags {
    gap: var(--space-2);
  }

  .language-tag {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
  }
}

