/* ===============================================
   ABOUT ME PAGE STYLES
   =============================================== */

/* ========== PAGE BACKGROUND ========== */
/* Параллакс фон для всей страницы about me (между header и footer) */
body.about-me-page {
  background-image: url('../images/desktop/about_me/skyjpg.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Отключаем параллакс на мобильных */
@media (max-width: 768px) {
  body.about-me-page {
    background-attachment: scroll;
  }
}

/* ========== SECTIONS ========== */
/* Intro Section */
.intro-section-container {
  padding: 35px 0;
  background: transparent;
}

.intro-section-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 3rem;
  margin: 0 auto;
  text-align: center;
  max-width: 900px;
}

.intro-section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: url('../images/desktop/about_me/skyjpg.jpg') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #37bed396;
  font-weight: 700;
}

.intro-section-subtitle {
  font-size: 1.9rem;
  text-align: center;
  background: url('../images/desktop/about_me/skyjpg.jpg') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #37bed396;
  font-weight: 300;
}

.intro-section {
  display: block;
}

.intro-photo {
  width: 68%;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
}

.intro-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 1 !important;
}

.intro-text {
  text-align: center;
  flex: 1;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

/* Practice Section */
.practice-section-container {
  padding: 80px 0;
  background: transparent;
}

.practice-section-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.practice-section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: url('../images/desktop/about_me/skyjpg.jpg') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #37bed396;
  font-weight: 700;
}

.practice-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Practice List */
.practice-list {
  list-style: none;
  padding: 0;
}

.practice-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.6;
  color: var(--color-light);
}

.practice-list li:last-child {
  border-bottom: none;
}

.practice-year {
  font-weight: 600;
  color: var(--color-accent);
}

/* Certificates Section */
.certificates-section-container {
  padding: 80px 0;
  background: transparent;
}

.certificates-section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  background: url('../images/desktop/about_me/skyjpg.jpg') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #37bed359;
  font-weight: 700;
}

.certificates-section-title::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  -webkit-text-stroke: 2px var(--color-indicator-active);
  text-stroke: 2px var(--color-primary);
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: transparent;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 1 !important;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-indicator-active);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-button:hover {
  background: var(--color-indicator-active);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-button:focus-visible {
  outline: 3px solid var(--color-indicator-active);
  outline-offset: 2px;
  background: var(--color-indicator-active);
  color: white;
}

.carousel-button:focus {
  outline: none;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: var(--color-indicator-active);
  transform: scale(1.3);
}

.indicator:focus-visible {
  outline: 2px solid var(--color-indicator-active);
  outline-offset: 2px;
}

.indicator:focus {
  outline: none;
}

.indicator.active {
  background: var(--color-indicator-active);
  transform: scale(1.2);
}

/* CTA Section */
.cta-section-container {
  padding: 25px 0;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(10px);
  position: relative;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-title {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  background: url('../images/desktop/about_me/skyjpg.jpg') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #37bed396;
  font-weight: 700;
}

.cta-text {
  font-size: 1.2rem;
  margin: 0;
  background: url('../images/desktop/about_me/skyjpg.jpg') center center fixed;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #37bed396;
}

.cta-section-container .btn-flip-wrapper {
  flex: 0 0 auto;
}

/* Фоллбэк для браузеров без поддержки background-clip */
@supports not (background-clip: text) {
  .intro-section-title,
  .intro-section-subtitle,
  .practice-section-title,
  .certificates-section-title,
  .cta-title,
  .cta-text {
    color: white;
    -webkit-text-fill-color: white;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .intro-section {
    flex-direction: column;
    gap: 2rem;
  }
  
  .intro-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    top: 0;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    transition: none !important;
  }

  .carousel-button:hover {
    transform: translateY(-50%) !important;
    background: var(--color-indicator-active);
    color: white;
  }

  .carousel-button:focus-visible {
    outline: 3px solid var(--color-indicator-active);
    outline-offset: 2px;
    background: var(--color-indicator-active);
    color: white;
  }
  
  .carousel-slide {
    padding: 1rem;
  }
  
  .carousel-slide img {
    max-height: 400px;
  }

  .indicator {
    transition: none !important;
  }
  
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
}
