/* ========================================= */
/* ===== ГЕРОЙ СЕКЦИЯ - MODERN BG ===== */
/* ========================================= */

.aetherion-pro.anton-hero-section {
    margin-top: 50px;
    position: relative;
    width: 100%;
    min-height: 650px;
    max-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
    overflow: hidden;
}

/* ОСНОВНОЙ ФОН С ЗАКРУГЛЕННЫМИ УГЛАМИ */
.anton-hero-bg {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    height: calc(100% - 40px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: -12px -5px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 0;
     background-image: url('/wp-content/uploads/2025/11/BG_N.webp');
     background-size: cover;
    
}

/* КОНТЕЙНЕР ДЛЯ МЕДИА */
.anton-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ВИДЕО ФОН */
.anton-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.1);
}

/* ФОЛБЭК ИЗОБРАЖЕНИЕ */
.anton-bg-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5) contrast(1.1);
    display: none;
}

/* НАЛОЖЕНИЕ ДЛЯ ЧИТАЕМОСТИ */
.anton-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(18, 18, 18, 0.8) 0%,
        rgba(18, 18, 18, 0.5) 50%,
        rgba(18, 18, 18, 0.8) 100%
    );
    z-index: 1;
}

/* ДЕКОРАТИВНЫЕ УГЛЫ */
.anton-corner-decor {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(202,248,128);
    z-index: 1;
    opacity: 0;
    animation: anton-corner-fade 1s ease-out 0.5s forwards;
    display: none;
}

.anton-corner-top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 0 0 0;
}

.anton-corner-top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 12px 0 0;
}

.anton-corner-bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 12px;
}

.anton-corner-bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 12px 0;
}

@keyframes anton-corner-fade {
    to { opacity: 1; }
}

/* Основной контейнер */
.anton-hero-container {
    position: relative;
    max-width: 75rem;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    z-index: 3;
    padding: 0 20px;
}

/* Layout - 60/40 на десктопе */
.anton-hero-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem 0;
}

/* Текстовая часть */
.anton-hero-content {
    text-align: left;
    max-width: 100%;
}

/* ЗАГОЛОВОК (ВАШ ОРИГИНАЛЬНЫЙ СТИЛЬ) */
.anton-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 500;
    color: #E6E6E6;
    margin: 0 0 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.anton-title-line { display: block; }
.anton-accent {
    background: #CEF868;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
    font-family: 'Unbounded', sans-serif;
}
.anton-hero-title:hover .anton-accent { color: #CEF868; }

/* ПОДЗАГОЛОВОК (ВАШ ОРИГИНАЛЬНЫЙ СТИЛЬ) */
.anton-hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1.2rem, 1.2vw + 0.5rem, 1.0625rem);
    color: #E6E6E6;
    margin: 0 0 2rem;
    line-height: 1.6;
    max-width: 700px;
}
.anton-hero-subtitle strong { font-weight: 600; color: #FFF; }

/* НАВЫКИ (ВАШ ОРИГИНАЛЬНЫЙ СТИЛЬ) */
.anton-hero-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.anton-skill-item {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.875rem;
    color: #E6E6E6;
    background: rgba(243, 243, 243, 0.1);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(243, 243, 243, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.anton-skill-item:hover {
    background: rgba(243, 243, 243, 0.2);
    transform: translateY(-1px);
    border-color: rgba(206, 248, 104, 0.6);
}

/* КНОПКИ (ВАШ ОРИГИНАЛЬНЫЙ СТИЛЬ) */
.anton-hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.anton-cta-button,
.anton-secondary-button {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.4rem;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none;
    border-radius: 8px; /* Закругление 8px */
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.anton-cta-button { 
    background: #77E6FF; 
    color: #0A0A0F; 
}
.anton-secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: #E6E6E6;
    border: 2px solid #CEF868;
}
.anton-cta-button::before,
.anton-secondary-button::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.6s ease;
}
.anton-cta-button:hover::before,
.anton-secondary-button:hover::before { left: 100%; }
.anton-cta-button:hover {
    background: #31D8FE;
    transform: translateY(-2px);
    color: #0A0A0F;
}
.anton-secondary-button:hover {
    background: #CEF868;
    color: #0A0A0F;
    transform: translateY(-2px);
}
.anton-cta-button i,
.anton-secondary-button i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ======================================== */
/*          МОБИЛЬНАЯ ВЕРСИЯ               */
/* ======================================== */
@media (max-width: 768px) {
    .aetherion-pro.anton-hero-section {
        height: auto;
        min-height: 100vh;
        max-height: none;
        padding: 20px 15px;
    }

    .anton-hero-bg {
        top: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        border-radius: 16px;
    }

    .anton-hero-container {
        padding: 0 20px;
        height: auto;
    }

    .anton-hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2.5rem;
        padding: 1rem 0;
    }

    /* Lottie — сверху по центру */
    .anton-hero-animation {
        height: 240px;
        order: -1;
        margin-bottom: 0;
    }
    .anton-hero-animation lottie-player {
        max-width: 240px;
        max-height: 240px;
    }

    /* ВСЁ ТЕКСТОВОЕ — СЛЕВА */
    .anton-hero-content {
        text-align: left !important;
    }

    .anton-hero-title {
        margin-bottom: 1rem;
        text-align: left;
        font-weight: 600;
    }
    .anton-accent {
         font-weight: 600;
    }

    .anton-hero-subtitle {
        margin: 0 0 1.5rem;
        max-width: none;
        text-align: left;
    }

    .anton-hero-skills {
        justify-content: flex-start;
        margin-bottom: 2rem;
    }

    .anton-hero-buttons {
        justify-content: flex-start;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .anton-cta-button,
    .anton-secondary-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }

    /* Упрощаем декоративные элементы на мобильных */
    .anton-corner-decor {
        width: 40px;
        height: 40px;
         display: none;
    }
    
    .anton-corner-top-left,
    .anton-corner-top-right,
    .anton-corner-bottom-left,
    .anton-corner-bottom-right {
        top: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .aetherion-pro.anton-hero-section {
        padding: 15px 10px;
        min-height: 90vh;
    }

    .anton-hero-bg {
        border-radius: 12px;
    }

    .anton-hero-animation {
        height: 200px;
    }
    .anton-hero-animation lottie-player {
        max-width: 200px;
        max-height: 200px;
    }

    .anton-hero-layout { gap: 2rem;
            padding-top: 25px;
        padding-bottom: 25px;
    }

    .anton-hero-title {
        font-size: clamp(1.75rem, 6vw + 1rem, 2.8rem);
        font-family: 'Unbounded', sans-serif;
    }

    .anton-hero-subtitle {
        font-size: clamp(0.875rem, 3vw + 0.5rem, 1rem);
    }

    .anton-hero-skills { gap: 0.5rem; }
    .anton-skill-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .anton-hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .anton-cta-button,
    .anton-secondary-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Анимация появления */
.anton-hero-content > * { 
    opacity: 0; 
    animation: fadeInUp 0.8s ease-out forwards; 
}
.anton-hero-title { animation-delay: 0.1s; }
.anton-hero-subtitle { animation-delay: 0.2s; }
.anton-hero-skills { animation-delay: 0.3s; }
.anton-hero-buttons { animation-delay: 0.4s; }
.anton-hero-animation {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    .anton-hero-content > *, 
    .anton-hero-animation,
    .anton-corner-decor {
        animation: none;
        opacity: 1;
    }
    .anton-skill-item, 
    .anton-cta-button, 
    .anton-secondary-button {
        transition: none;
    }
    
    .anton-corner-decor {
        opacity: 0.5;
         display: none;
    }
    
    .anton-bg-video {
        display: none;
    }
    
    .anton-bg-fallback {
        display: block !important;
    }
}




/* ВИДЕО ФОН - ИСПРАВЛЕНИЯ ДЛЯ SAFARI */
.anton-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.4) contrast(1.1);
    
    /* Исправления для Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    
    /* Гарантия отображения */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Контейнер для видео с исправлениями для Safari */
.anton-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    
    /* Для Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Фолбэк для случаев, когда видео не работает */
.anton-bg-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.5) contrast(1.1);
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Дополнительные исправления для основного контейнера */
.aetherion-pro.anton-hero-section {
    margin-top: 50px;
    position: relative;
    width: 100%;
    min-height: 650px;
    max-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
    overflow: hidden;
    
    /* Для Safari */
    -webkit-overflow-scrolling: touch;
}

/* Исправление позиционирования фона */
.anton-hero-bg {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    height: calc(100% - 40px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: -12px -5px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 0;
    
    /* Фолбэк фон для Safari */
    background-image: url('/wp-content/uploads/2025/11/BG_N.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* JavaScript fallback класс */
.video-fallback .anton-bg-video {
    display: none !important;
}

.video-fallback .anton-bg-fallback {
    display: block !important;
}

/* ДОПОЛНИТЕЛЬНЫЕ МОБИЛЬНЫЕ ИСПРАВЛЕНИЯ */
@media (max-width: 768px) {
    /* Оптимизация видео-фона для мобильных */
    .anton-bg-video {
        /* Улучшение производительности на мобильных */
        -webkit-transform: translateZ(0) scale(1.1);
        transform: translateZ(0) scale(1.1);
        width: 120%; /* Небольшой зум для лучшего заполнения */
        height: 120%;
    }
    
    /* Улучшение читаемости текста */
    .anton-hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(18, 18, 18, 0.9) 0%,
            rgba(18, 18, 18, 0.7) 50%,
            rgba(18, 18, 18, 0.9) 100%
        );
    }
    
    /* Оптимизация анимаций для мобильных */
    .anton-hero-content > * {
        animation-duration: 0.6s; /* Более быстрые анимации */
    }
}

/* Оптимизация для очень маленьких экранов */
@media (max-width: 360px) {
    .aetherion-pro.anton-hero-section {
        padding: 10px 5px;
        min-height: 95vh;
    }
    
    .anton-hero-bg {
        top: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        border-radius: 12px;
    }
    
    .anton-hero-container {
        padding: 0 10px;
    }
    
    .anton-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .anton-cta-button,
    .anton-secondary-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Отключение видео на мобильных для экономии трафика */
@media (max-width: 768px) and (prefers-reduced-data: reduce) {
    .anton-bg-video {
        display: none !important;
    }
    
    .anton-bg-fallback {
        display: block !important;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-height: 500px) and (max-width: 768px) {
    .aetherion-pro.anton-hero-section {
        min-height: 500px;
        padding: 10px 15px;
    }
    
    .anton-hero-layout {
        grid-template-rows: 1fr;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .anton-hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 0.5rem;
    }
    
    .anton-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .anton-hero-skills {
        margin-bottom: 1rem;
    }
}


/* ================================== */
/* ===== ИНВЕСТ СЛАЙДЕР      ===== */
/* ================================== */



.invest-slider {
  width: 25%;
  height: 50px; /* Фиксированная высота для CLS */
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 20px;
}

.invest-slider-container {
  position: relative;
  height: 100%; /* Наследует высоту родителя */
  width: 100%;
  will-change: transform; /* Подсказка браузеру для анимации */
}

.invest-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.invest-slide.invest-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.invest-slide-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 100%;
}

/* Горячая метка */
.invest-hot-container {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #E6E6E6;
  padding: 5px 10px;
  margin-right: 10px;
  flex-shrink: 0;
  line-height: 1;
  border-radius: 8px;
}
.invest-hot-container:hover {
    background: #77E6FF;
}

.invest-hot-icon {
  font-size: 14px;
  color: #0A0A0F;
}

.invest-hot-text {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  color: #0A0A0F;
  font-weight: 500;
}

/* Текст и ссылка */
.invest-slider h5 {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  color: #E6E6E6;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0; /* Фикс для ellipsis */
}

.invest-custom-link {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  background: #CEF868;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  margin-left: 10px;
  flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .invest-slider {
    height: 50px;
    width: 50%;
  }
  
  .invest-hot-container,
  .invest-hot-icon,
  .invest-hot-text,
  .invest-slider h5,
  .invest-custom-link {
    font-size: 12px;
  }
}

/* Отключение анимаций для prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .invest-slide {
    transition: none !important;
  }
}

@media (max-width: 480px) {
    
  .invest-slider {
    height: 50px;
    width: 90%;
  }    
    
    
}



.emoji-with-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Базовые настройки адаптивной типографики */
.aetherion-pro {
  font-size: clamp(14px, 1vw + 14px, 16px);
}







/* ========================================= */
/* Секция "Обо мне" */
/* ========================================= */

/* Секция "Обо мне" */
.aetherion-pro section.about {
    padding-bottom: 70px;
  position: relative;
  z-index: 1;
  overflow-x: hidden; /* Добавлено: предотвращает горизонтальный сдвиг */
}

/* ЗАГОЛОВОК ВЫРОВНЕН СЛЕВА */
.aetherion-pro #about-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 2.8rem); /* Унифицировано с остальным сайтом */
  font-weight: 600;
  color: #E6E6E6;
  text-align: left;
  margin-bottom: 3.125rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Унифицировано с skills */
  transition: color 0.3s ease;
  width: 100%;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
}

.aetherion-pro #about-title:hover {
  color: #CEF868; /* Акцентный цвет сайта */
}

.bio-card p {color: #E6E6E6;}
.aetherion-pro section.about .container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 0px; /* Без боковых отступов */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.aetherion-pro section.about .bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9375rem;
  max-width: 75rem;
  padding: 15px;
  margin: 0 auto;
  will-change: transform;
  width: 100%;
  overflow-x: hidden; /* Добавлено: предотвращает горизонтальный сдвиг */
  padding-bottom: 3rem;
}

/* УНИФИЦИРОВАННЫЕ СТИЛИ ДЛЯ ВСЕХ КАРТОЧЕК */
.aetherion-pro section.about .bento-card {
  background: #1A1A1A;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 1.0s cubic-bezier(0.25, 0.8, 0.25, 1) !important; /* Унифицировано с skills */
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
  touch-action: pan-y; /* Добавлено: улучшает touch, предотвращает horiz сдвиги */
  border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение вместо % */
  overflow: visible; /* ИЗМЕНЕНО: предотвращает обрезку при увеличении */
}

.aetherion-pro section.about .bento-card:hover {
  transform: translateY(-0.3125rem) scale(1.01) !important;
  z-index: 2;
  background: #202020;
}

/* УНИФИЦИРОВАННЫЕ ТЕКСТОВЫЕ СТИЛИ ДЛЯ ВСЕХ КАРТОЧЕК */
.aetherion-pro section.about .bento-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.625rem); /* Унифицировано с skills */
  color: #E6E6E6;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
  margin-top: 5px;
}

.aetherion-pro section.about .bento-card:hover h3 {
  color: #CEF868; /* Унифицировано с skills */
}

.aetherion-pro section.about .bento-card p,
.aetherion-pro section.about .bento-card li,
.aetherion-pro section.about .tool-item,
.aetherion-pro section.about .skill-title,
.aetherion-pro section.about .skill-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(0.9375rem, 1.2vw + 0.5rem, 1.0625rem); /* Унифицировано с skills */
  color: #E6E6E6;
  line-height: 1.6;
  padding-right: 5px;
}

/* Специальные стили для списков в карточке опыта */
.aetherion-pro section.about .bento-card.experience ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aetherion-pro section.about .bento-card.experience li {
  position: relative;
  padding-left: 1.5625rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.aetherion-pro section.about .bento-card.experience li:before {
  content: "→";
  position: absolute;
  left: 0;
  background: linear-gradient(135deg, #E6E6E6 0%, #E6E6E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Стили для карточек с пользовательским фоновым изображением */
.aetherion-pro section.about .bento-card.has-custom-bg {
  background: none;
  background-color: rgba(26, 26, 26, 0.8);
  position: relative;
  z-index: 1;
}

.aetherion-pro section.about .bento-card.has-custom-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  filter: opacity(0.05);
  z-index: -1;
  border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
}

/* Указываем background-image для каждой карточки явно */
.aetherion-pro section.about .bento-card.has-custom-bg:hover {
  background-color: #202020;
}

/* Специальные карточки */
.aetherion-pro section.about .bento-card.photo {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  background: none;
  box-shadow: none;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ СМЕНЫ ФОТО ПРИ НАВЕДЕНИИ */
.aetherion-pro .bento-card.photo {
  position: relative;
  overflow: hidden;
}

.aetherion-pro .bento-card.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Псевдо-элемент для второго изображения */
.aetherion-pro .bento-card.photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/wp-content/uploads/Porfolio/myPhoto_Hov.webp');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
  border-radius: 30px;
}

.aetherion-pro .bento-card.photo:hover img {
  border-radius: 30px;
  filter: brightness(110%);
  transform: scale(1.01);
}

.aetherion-pro .bento-card.photo:hover::after {
  opacity: 1;
}

.aetherion-pro section.about .bento-card.bio,
.aetherion-pro section.about .bento-card.mission {
  grid-column: span 2;
  border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
}

/* Инструменты */
.aetherion-pro section.about .bento-card.tools {
  grid-column: span 1;
  border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
}

.aetherion-pro section.about .tools-icons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0px;
}

.aetherion-pro section.about .tool-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.aetherion-pro section.about .tool-item:hover {
  background: #343434;
  transform: translateX(0.3125rem);
}

.aetherion-pro section.about .tool-item i {
  font-size: 1rem;
  background: linear-gradient(135deg, #CEF868 0%, #CEF868 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: 1.375rem;
  text-align: center;
}

/* Навыки */
.aetherion-pro section.about .bento-card.skills {
  grid-column: span 3;
  border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
}

.aetherion-pro section.about .skill-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9375rem;
  padding-right: 5px;
}

.aetherion-pro section.about .skill-item {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0.625rem;
  padding: 0.9375rem;
  transition: transform 0.3s ease;
}

.aetherion-pro section.about .skill-item:hover {
  transform: translateY(-0.1875rem);
}

.aetherion-pro section.about .progress-bar {
  width: 100%;
  height: 0.375rem;
  background: #333333;
  border-radius: 0.1875rem;
  overflow: hidden;
}

.aetherion-pro section.about .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #77E6FF 0%, #77E6FF 100%);
  border-radius: 0.1875rem;
  transition: width 1.5s ease;
}

@keyframes progressGlow {
  0% { box-shadow: 0 0 0 rgba(209, 254, 106, 0); }
  50% { box-shadow: 0 0 10px rgba(209, 254, 106, 0.5); }
  100% { box-shadow: 0 0 0 rgba(209, 254, 106, 0); }
}

.aetherion-pro section.about .progress-fill.animated {
  animation: progressGlow 2s ease;
}

/* Опыт */
.aetherion-pro section.about .bento-card.experience {
  grid-column: span 3;
  border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
}

/* Адаптация */
@media (max-width: 1200px) {
  .aetherion-pro section.about .bento-grid {
    gap: 0.75rem; /* Уменьшил gap для лучшей компоновки */
  }

.aetherion-pro section.about .bento-card.tools {
  grid-column: span 2;
  padding-bottom: 20px;
}

.aetherion-pro section.about .bento-card.skills {
  grid-column: span 2;
}


  .aetherion-pro section.about .bento-card.experience {
    grid-column: span 2;
  }


  .aetherion-pro section.about .bento-card.photo {
    grid-row: span 1;
    border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
  }
  .aetherion-pro section.about .bento-card.skills {
    grid-column: span 2;
    border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
  }
  .aetherion-pro section.about .skill-progress {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .aetherion-pro section.about .bento-card.has-custom-bg::before {
    background-size: cover;
    background-position: center;
    border-radius: 30px; /* ИСПРАВЛЕНО: фиксированное значение */
  }
  .aetherion-pro section.about .bento-card h3 {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem); /* Уменьшил для средних экранов */
  }
  .aetherion-pro section.about .bento-card p,
  .aetherion-pro section.about .bento-card li {
    font-size: clamp(0.875rem, 1.2vw + 0.5rem, 1rem);
  }
}

@media (max-width: 768px) {
  .aetherion-pro section.about {
    padding: 2.5rem 0; /* Уменьшил padding */
  }
  
  .aetherion-pro #about-title{
      padding-left: 10px;
  }
  .aetherion-pro section.about .bento-grid {
    grid-template-columns: 1fr; /* Изменено: одна колонка без wrap, сверху вниз */
    grid-auto-rows: auto; /* Авто-высота рядов */
    gap: 0.625rem; /* Ещё меньше gap */
    margin-right: 0.625rem;
  }
  .aetherion-pro section.about .bento-card {
    grid-column: span 1 !important;
    padding: 0.75rem; /* Уменьшил padding внутри карточек */
    transition-duration: 0.6s; /* Ускорил анимацию для мобильного */
    border-radius: 25px; /* ИСПРАВЛЕНО: немного меньше для мобильных */
  }
  .aetherion-pro section.about .bento-card:hover {
    transform: none; /* Отключил hover-эффекты на мобильном */
  }
  .aetherion-pro section.about .bento-card.photo {
    grid-column: span 1;
    grid-row: span 1;
    height: 300px; /* Фиксированная высота для фото на мобильном */
  }
  .aetherion-pro section.about .bento-card.photo img {
      border-radius: 25px; /* ИСПРАВЛЕНО: немного меньше для мобильных */
    object-fit: cover;
  }
  .aetherion-pro section.about .skill-progress {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
  .aetherion-pro section.about .bento-card.has-custom-bg::before {
    background-size: cover;
    background-position: center;
  }
  .aetherion-pro section.about .bento-card h3 {
    font-size: clamp(1rem, 4vw + 0.5rem, 1.375rem); /* Адаптировал размер */
    margin-bottom: 0.5rem;
  }
  .aetherion-pro section.about .bento-card p,
  .aetherion-pro section.about .bento-card li {
    font-size: clamp(0.8125rem, 3vw + 0.5rem, 0.9375rem); /* Уменьшил текст для читаемости */
    line-height: 1.5;
            margin-right: 10px;
  }
  .aetherion-pro section.about .progress-fill {
    transition-duration: 1s; /* Ускорил анимацию прогресса */
  }
  .aetherion-pro section.about .tool-item {
    padding: 0.5rem 0.75rem;
  }
  .aetherion-pro section.about .bento-card.experience li {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .aetherion-pro section.about .bento-card {
    padding: 0.625rem; /* Ещё меньше padding */
    border-radius: 20px; /* ИСПРАВЛЕНО: немного меньше для очень маленьких экранов */
  }
  .aetherion-pro section.about .tool-item {
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
  }
  .aetherion-pro section.about .bento-card.has-custom-bg::before {
    background-size: contain;
    background-position: center;
  }
  .aetherion-pro section.about .progress-bar {
    height: 0.3125rem; /* Тоньше бар для мобильного */
  }
  .aetherion-pro section.about #about-title {
    font-size: clamp(1.75rem, 6vw + 1rem, 2.5rem); /* Уменьшил заголовок для очень маленьких экранов */
  }
}

/* Стили для собачки, которая прячется и выглядывает ТОЛЬКО при наведении на bio */
.aetherion-pro section.about {
  position: relative;
  overflow: hidden;
}

.hidden-dog-container {
  position: absolute;
  top: 20%;
  right: -150px; /* Собачка полностью скрыта за правым краем */
  width: 180px;
  z-index: 5;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hidden-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: rotate(-5deg);
  transition: transform 0.6s ease;
}

/* ИЗМЕНЕНИЕ: Эффект при наведении на КАРТОЧКУ BIO - собачка выглядывает */
.aetherion-pro #bio-card:hover ~ .hidden-dog-container,
.aetherion-pro #bio-card:hover ~ .hidden-dog-container {
  right: -10px; /* Выглядывает, оставляя 10px за блоком */
  transform: translateY(-5px);
}

.aetherion-pro #bio-card:hover ~ .hidden-dog-container .hidden-dog {
  transform: rotate(5deg) scale(1.05);
}

/* Собачка появляется с небольшим подпрыгиванием ТОЛЬКО при наведении на bio */
@keyframes dogPeek {
  0% {
    right: -150px;
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    right: -10px;
    transform: translateY(-5px);
  }
}

.aetherion-pro #bio-card:hover ~ .hidden-dog-container {
  animation: dogPeek 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Адаптация для планшетов */
@media (max-width: 1200px) {
  .hidden-dog-container {
    width: 150px;
    height: 150px;
    right: -120px;
  }
  
  .aetherion-pro #bio-card:hover ~ .hidden-dog-container {
    right: -8px;
  }
}

/* Скрываем собачку на мобильных устройствах */
@media (max-width: 768px) {
  .hidden-dog-container {
    display: none;
  }
}

/* Убедимся, что контент остается поверх собачки */
.aetherion-pro section.about .container {
  position: relative;
  z-index: 10;
}

.aetherion-pro section.about .bento-grid {
  position: relative;
  z-index: 10;
}






/* ========================================= */
/* ===== СЕКЦИЯ ПОДХОД К СОЗДАНИЮ ===== */
/* ========================================= */


/* Design Approach Section */
.aetherion-pro section.design-approach {
    padding-bottom: 1rem;
    background: var(--цвет-фона);
    position: relative;
}

.section-tite {color: #F6F6F6;}
.section-tite:hover {color: #CEF868;}


/* Approach Grid */
.aetherion-pro .approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 75rem;
    margin: 3rem auto 0;
}

/* Approach Card */
.aetherion-pro .approach-card {
    background: #1A1A1A;
    padding: 2rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.aetherion-pro .approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.aetherion-pro .approach-card:hover {
    transform: translateX(10px);
    border-left-color: #CEF868;
    background: #202020;
}

.aetherion-pro .approach-card:hover::before {
    left: 100%;
}

/* Card Header */
.aetherion-pro .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.aetherion-pro .card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.aetherion-pro .approach-card:hover .card-icon {
    transform: scale(1.1);
}

.aetherion-pro .card-icon i {
    font-size: 1.25rem;
    color: #CEF868;
    transition: all 0.4s ease;
}

.aetherion-pro .approach-card:hover .card-icon i {
    transform: rotate(10deg);
}

.aetherion-pro .card-badge {
    font-family: var(--шрифт-основной);
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
    background: rgba(206, 248, 104, 0.1);
    color: #CEF868;
    border-radius: 10px;
    border: 1px solid rgba(206, 248, 104, 0.2);
    font-weight: 500;
}

/* Card Content */
.aetherion-pro .approach-card h3 {
    font-family: var(--шрифт-заголовков);
    font-size: 1.375rem;
    color: #E6E6E6;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.aetherion-pro .approach-card:hover h3 {
    color: #CEF868;
}

.aetherion-pro .approach-card p {
    font-family: var(--шрифт-основной);
    font-size: 0.95rem;
    color: rgba(230, 230, 230, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Card Features */
.aetherion-pro .card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.aetherion-pro .card-features span {
    font-family: var(--шрифт-основной);
    font-size: 0.85rem;
    color: rgba(230, 230, 230, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.aetherion-pro .approach-card:hover .card-features span {
    color: rgba(230, 230, 230, 0.9);
}

.aetherion-pro .card-features i {
    font-size: 0.7rem;
    color: #77E6FF;
    transition: transform 0.3s ease;
}

.aetherion-pro .approach-card:hover .card-features i {
    transform: scale(1.2);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .aetherion-pro .approach-grid {
        gap: 1.25rem;
    }
    
    .aetherion-pro .approach-card {
        padding: 1.75rem;
    }
    
    .aetherion-pro .approach-card h3 {
        font-size: 1.25rem;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .aetherion-pro section.design-approach {
        padding: 3rem 0;
    }
    
    .aetherion-pro .approach-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2.5rem auto 0;
    }
    
    .aetherion-pro .approach-card {
        padding: 1.5rem;
    }
    
    .aetherion-pro .approach-card:hover {
        transform: translateX(5px);
    }
    
    .aetherion-pro .card-header {
        gap: 0.875rem;
    }
    
    .aetherion-pro .card-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .aetherion-pro .card-icon i {
        font-size: 1.1rem;
    }
    
    .aetherion-pro .approach-card h3 {
        font-size: 1.125rem;
    }
    
    .aetherion-pro .approach-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .aetherion-pro .approach-card {
        padding: 1.25rem;
    }
    
    .aetherion-pro .card-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .aetherion-pro .approach-card h3 {
        font-size: 1rem;
    }
    
    .aetherion-pro .approach-card p {
        font-size: 0.85rem;
    }
    
    .aetherion-pro .card-features span {
        font-size: 0.8rem;
    }
}










/* ========================================= */
/* ===== Цифровой дизайн ===== */
/* ========================================= */








/* ===== ОСНОВНЫЕ СТИЛИ С ОПТИМИЗАЦИЕЙ ===== */
.aetherion-skills-showcase {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    contain: layout style paint;
    padding-bottom: 4rem;
    padding-top: 2rem;
}

/* Заголовок */
.aetherion-skills-header {
    text-align: left;
    margin-bottom: 60px;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.aetherion-skills-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(2rem, 4vw + 1rem, 2.8rem);
    font-weight: 600;
    color: #E6E6E6;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.title-word {
    display: inline-block;
    transform: translateY(100%);
    animation: wordReveal 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.title-line:nth-child(1) .word-wrapper:nth-child(1) .title-word { animation-delay: 0.1s; }
.title-line:nth-child(1) .word-wrapper:nth-child(2) .title-word { animation-delay: 0.3s; }
.title-line:nth-child(2) .word-wrapper:nth-child(1) .title-word { animation-delay: 0.5s; }
.title-line:nth-child(2) .word-wrapper:nth-child(2) .title-word { animation-delay: 0.7s; }

@keyframes wordReveal {
    from {
        transform: translateY(100%) rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.accent-word {
    background: #77E6FF;
    -webkit-background-clip: text;
    background-clip: text;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: transparent;
}

.accent-word:hover {
    color: #77E6FF;
}

/* Вращающиеся слова */
.rotating-words {
    position: relative;
    display: inline-block;
}

.rotating-word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, #77E6FF 0%, #77E6FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #77E6FF;
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Подзаголовок */
.aetherion-skills-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(0.9375rem, 1.2vw + 0.5rem, 1.0625rem);
    color: #E6E6E6;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 1s forwards;
    text-align: left;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== СЕТКА КАРТОЧЕК С ОПТИМИЗАЦИЕЙ ===== */
.aetherion-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    align-items: start;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
}

.aetherion-skill-card {
    position: relative;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    height: 450px;
    will-change: transform;
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    touch-action: pan-y;
    width: 100%;
    box-sizing: border-box;
    contain: layout style paint;
    border-radius: 30px;
}

.aetherion-skill-card[data-card-index="0"] { animation-delay: 1.2s; }
.aetherion-skill-card[data-card-index="1"] { animation-delay: 1.3s; }
.aetherion-skill-card[data-card-index="2"] { animation-delay: 1.4s; }
.aetherion-skill-card[data-card-index="3"] { animation-delay: 1.5s; }
.aetherion-skill-card[data-card-index="4"] { animation-delay: 1.6s; }
.aetherion-skill-card[data-card-index="5"] { animation-delay: 1.7s; }
.aetherion-skill-card[data-card-index="6"] { animation-delay: 1.8s; }
.aetherion-skill-card[data-card-index="7"] { animation-delay: 1.9s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aetherion-skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(119, 230, 255, 0.2);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.aetherion-skill-media {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout style paint;
}

.aetherion-skill-icon {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    will-change: transform;
}

.aetherion-skill-card:hover .aetherion-skill-icon {
    transform: scale(1.1);
    color: #77E6FF;
}

.aetherion-skill-image,
.aetherion-skill-video {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.90);
    will-change: transform, filter;
}

.aetherion-skill-card:hover .aetherion-skill-image,
.aetherion-skill-card:hover .aetherion-skill-video {
    transform: scale(1.05);
    filter: brightness(0.25);
}

.elementor img {height: 100%;}

/* Бейджи */
.aetherion-telegram-badge,
.aetherion-shorts-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
}

.aetherion-telegram-badge {
    background: linear-gradient(135deg, #0088cc, #00aced);
}

.aetherion-shorts-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

/* Оверлей с оптимизацией */
.aetherion-skill-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 35px 25px 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.aetherion-skill-card:hover .aetherion-skill-overlay,
.aetherion-skill-card.active .aetherion-skill-overlay {
    opacity: 1;
}

.aetherion-content-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(16, 16, 16, 0.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform-origin: bottom;
    transform: scaleY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid rgba(119, 230, 255, 0.15);
    z-index: 1;
    border-radius: 8px;
    clip-path: polygon(0% 10%, 100% 0%, 100% 100%, 0% 100%);
    will-change: transform;
}

.aetherion-skill-card:hover .aetherion-content-background,
.aetherion-skill-card.active .aetherion-content-background {
    height: 50%;
    transform: scaleY(1);
}

.aetherion-skill-content {
    position: relative;
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
    width: 100%;
    opacity: 0;
    pointer-events: auto;
    will-change: transform, opacity;
}

.aetherion-skill-card:hover .aetherion-skill-content,
.aetherion-skill-card.active .aetherion-skill-content {
    transform: translateY(0);
    opacity: 1;
}

.aetherion-skill-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Source Sans 3', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.aetherion-skill-desc {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0px;
    line-height: 1.5;
    font-size: 0.9rem;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Список фич */
.aetherion-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 20px;
}

.aetherion-feature {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    transition: all 0.3s ease;
    will-change: transform;
}

.aetherion-feature:hover {
    background: rgba(119, 230, 255, 0.15);
    border-color: rgba(119, 230, 255, 0.3);
    transform: translateY(-1px);
}

/* Ссылка */
.aetherion-skill-link {
    display: inline-flex;
    align-items: center;
    color: #77E6FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    will-change: transform;
}

.aetherion-skill-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #77E6FF, #31D8FE);
    transition: width 0.3s ease;
}

.aetherion-skill-link:hover::after {
    width: 100%;
}

.aetherion-skill-link:hover {
    color: #31D8FE;
    transform: translateX(5px);
}

/* ===== АДАПТИВНОСТЬ С ОПТИМИЗАЦИЕЙ ===== */
@media (max-width: 1200px) {
    .aetherion-portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .aetherion-skills-showcase {
        padding: 45px 10px;
    }
   
    .aetherion-skills-header {
        margin-bottom: 30px;
    }
   
    .aetherion-skills-title {
        font-size: clamp(1.8rem, 6vw + 1rem, 2.8rem);
        margin-bottom: 1rem;
    }
   
    .aetherion-skills-subtitle {
        font-size: clamp(0.875rem, 3vw + 0.5rem, 1rem);
        max-width: 100%;
    }
   
    .aetherion-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
   
    .aetherion-skill-card {
        height: 350px;
        animation-duration: 0.4s;
        animation-delay: 0s !important;
    }
   
    /* Оптимизированные стили для мобильных */
    .aetherion-skill-overlay {
        padding: 25px 20px 20px;
        opacity: 0;
    }
   
    .aetherion-content-background {
        height: 0 !important;
        transform: scaleY(0) !important;
        background: rgba(10, 10, 15, 0.98);
        clip-path: polygon(0% 5%, 100% 0%, 100% 100%, 0% 100%);
    }
   
    .aetherion-skill-content {
        transform: translateY(20px);
        opacity: 0;
    }
   
    /* Активное состояние для мобильных */
    .aetherion-skill-card.active .aetherion-skill-overlay {
        opacity: 1;
    }
   
    .aetherion-skill-card.active .aetherion-content-background {
        height: 55% !important;
        transform: scaleY(1) !important;
    }
   
    .aetherion-skill-card.active .aetherion-skill-content {
        transform: translateY(0);
        opacity: 1;
    }
   
    /* Отключаем hover-эффекты на мобильных */
    .aetherion-skill-card:hover {
        transform: none;
    }
   
    .aetherion-skill-card:hover .aetherion-skill-image,
    .aetherion-skill-card:hover .aetherion-skill-video {
        transform: none;
    }
   
    .aetherion-skill-card:hover .aetherion-skill-overlay,
    .aetherion-skill-card:hover .aetherion-content-background,
    .aetherion-skill-card:hover .aetherion-skill-content {
        opacity: 0;
        transform: translateY(20px);
        height: 0;
    }
}

@media (max-width: 480px) {
    .aetherion-skill-card {
        height: 320px;
    }
   
    .aetherion-skill-overlay {
        padding: 20px 15px 15px;
    }
   
    .aetherion-skill-card.active .aetherion-content-background {
        height: 60% !important;
    }
   
    .aetherion-skill-icon {
        top: 15px;
        left: 15px;
        font-size: 1.5rem;
    }
   
    .aetherion-telegram-badge,
    .aetherion-shorts-badge {
        top: 15px;
        right: 15px;
        font-size: 0.7rem;
        padding: 5px 10px;
    }
   
    .aetherion-skill-title {
        font-size: 1.2rem;
    }
   
    .aetherion-skill-desc {
        font-size: 0.8rem;
    }
   
    .aetherion-features-list {
        gap: 5px;
    }
   
    .aetherion-feature {
        font-size: 0.65rem;
    }
}

/* Дополнительные оптимизации */
html, body {
    overflow-x: hidden;
}

.aetherion-skills-showcase * {
    box-sizing: border-box;
}

/* Отключаем анимации для пользователей, которые их предпочитают не использовать */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ОПТИМИЗИРОВАННЫЕ АНИМАЦИИ ДЛЯ ПОЯВЛЕНИЯ ===== */
.aetherion-skill-card {
    position: relative;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    height: 450px;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    touch-action: pan-y;
    width: 100%;
    box-sizing: border-box;
    contain: layout style paint;
}

/* Убираем статические animation-delay, теперь они будут через JS */
.aetherion-skill-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Ступенчатая анимация через CSS переменные */
.aetherion-skill-card.revealed:nth-child(1) { transition-delay: 0.1s; }
.aetherion-skill-card.revealed:nth-child(2) { transition-delay: 0.2s; }
.aetherion-skill-card.revealed:nth-child(3) { transition-delay: 0.3s; }
.aetherion-skill-card.revealed:nth-child(4) { transition-delay: 0.4s; }
.aetherion-skill-card.revealed:nth-child(5) { transition-delay: 0.5s; }
.aetherion-skill-card.revealed:nth-child(6) { transition-delay: 0.6s; }
.aetherion-skill-card.revealed:nth-child(7) { transition-delay: 0.7s; }
.aetherion-skill-card.revealed:nth-child(8) { transition-delay: 0.8s; }

/* Улучшенный ховер-эффект */
.aetherion-skill-card.revealed:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(119, 230, 255, 0.2);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== УЛУЧШЕНИЯ ПЛАВНОСТИ АНИМАЦИЙ ===== */
.aetherion-skills-showcase {
    transform: translateZ(0); /* Аппаратное ускорение */
}

.aetherion-portfolio-grid {
    transform: translateZ(0);
}

/* Плавный скролл для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Оптимизация для быстрых анимаций */
@media (prefers-reduced-motion: no-preference) {
    .aetherion-skill-card {
        transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
}

/* Для пользователей, которые предпочитают уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    .aetherion-skill-card {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
    
    .aetherion-skill-card.revealed {
        opacity: 1;
    }
}





/* ========================================= */
/* ===== КЕЙСЫ ===== */
/* ========================================= */



/* Секция портфолио */
.aetherion-pro .creative-flowers {
  position: relative;
  z-index: 1;
    margin-bottom: 5rem;
}

.aetherion-pro .creative-flowers-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(2rem, 4vw + 1rem, 2.8rem);
    font-weight: 600;
    color: #E6E6E6;
    text-align: left;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3rem;
    margin-bottom: 3.125rem;
}

.aetherion-pro .creative-flowers-title:hover {
  color: #CEF868;
}




/* Секция портфолио */
.aetherion-pro .creative-flow {
  position: relative;
  z-index: 1;
      margin-top: 5rem;
    margin-bottom: 5rem;
}

.aetherion-pro .creative-flow-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(2rem, 4vw + 1rem, 2.8rem);
    font-weight: 600;
    color: #E6E6E6;
    text-align: left;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.aetherion-pro .creative-flow-title:hover {
  color: #CEF868;
}

/* Сетка кейсов */
.aetherion-pro .cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Карточки кейсов */
.aetherion-pro .case-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1A1A1A;
  border-radius: 30px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  overflow: hidden;
  min-height: 120px;
  height: auto;
}

.aetherion-pro .case-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: #202020;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Контент карточки */
.aetherion-pro .case-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-right: 20px;
}

.aetherion-pro .case-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: #E6E6E6;
  margin: 0 0 10px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.aetherion-pro .case-card:hover h3 {
  color: #CEF868;
}

.aetherion-pro .case-card p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: #FFFFFF;
  margin: 0;
  line-height: 1.5;
  opacity: 0.9;
}

/* Кнопка действия */
.aetherion-pro .case-action {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A0A0F;
  background: #E6E6E6;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  white-space: nowrap;
  flex-shrink: 0;
}

.aetherion-pro .case-card:hover .case-action {
  background: #CEF868;
  transform: scale(1.05);
}

/* Фон для карточек */
.aetherion-pro .case-card.has-case-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: opacity(0.1);
  z-index: 1;
  border-radius: 30px;
  transition: filter 0.3s ease;
}

.aetherion-pro .case-card.has-case-bg:hover::before {
  filter: opacity(0.15);
}

/* Анимация появления */
@keyframes caseAppear {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.aetherion-pro .case-card {
  opacity: 0;
  animation: caseAppear 0.6s ease forwards;
}

.aetherion-pro .case-card:nth-child(1) { animation-delay: 0.1s; }
.aetherion-pro .case-card:nth-child(2) { animation-delay: 0.2s; }
.aetherion-pro .case-card:nth-child(3) { animation-delay: 0.3s; }
.aetherion-pro .case-card:nth-child(4) { animation-delay: 0.4s; }
.aetherion-pro .case-card:nth-child(5) { animation-delay: 0.5s; }

/* Адаптивность */
@media (max-width: 768px) {
  .aetherion-pro .creative-flow {
    margin-top: 0rem;
    margin-bottom: 1rem;
  }
  
.aetherion-pro .creative-flowers {
  margin-bottom: 0px; }


  .aetherion-pro .cases-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0px;
    padding-bottom: 2rem;
  }
  
  .aetherion-pro .case-card {
    min-height: 110px;
    padding: 20px;
    border-radius: 25px;
  }
  
  .aetherion-pro .case-content {
    padding-right: 15px;
  }
  
  .aetherion-pro .case-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 8px;
  }
  
  .aetherion-pro .case-card p {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  }
  
  .aetherion-pro .case-action {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .aetherion-pro .creative-flow-title {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .aetherion-pro .case-card {
    min-height: 100px;
    padding: 18px;
    border-radius: 20px;
  }
  
  .aetherion-pro .case-card h3 {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 6px;
  }
  
  .aetherion-pro .case-card p {
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    line-height: 1.4;
  }
  
  .aetherion-pro .case-action {
    font-size: 0.8rem;
    padding: 7px 14px;
  }
  
  .aetherion-pro .cases-grid {
    margin: 0 0px;
    gap: 10px;
  }
}




/* ========================================= */
/* ===== КОМПАНИИ С КОТОРЫМИ РАБОТАЛ ===== */
/* ========================================= */

/* Секция компании */
.aetherion-pro section.company {
  padding: clamp(30px, 5vw, 60px) 0;
  position: relative;
  z-index: 1;
  overflow-x: hidden; /* Добавлено: предотвращает горизонтальный сдвиг */
}

/* Контейнер */
.aetherion-pro section.company .clients-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Заголовок секции */
.aetherion-pro section.company .section-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 2.8rem);  /* Унифицировано с about/skills */
    font-weight: 600;
    color: #E6E6E6; /* Такой же цвет как в about */
    text-align: left;
    margin-bottom: 3.125rem; /* Такой же отступ как в about */
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Унифицировано с about/skills */
    transition: color 0.3s ease;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
}

.aetherion-pro section.company .section-title:hover {
  color: #77E6FF; /* Акцентный цвет сайта */
}

/* Контейнер бегущей строки */
.aetherion-pro section.company .clients-marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Контент бегущей строки */
.aetherion-pro section.company .clients-marquee-content {
  display: flex;
  width: fit-content;
}

/* Трек с логотипами */
.aetherion-pro section.company .clients-marquee-track {
  display: flex;
  gap: clamp(15px, 3vw, 40px); /* Оригинальный адаптивный отступ */
  animation: marquee 40s linear infinite; /* Плавная CSS-анимация */
  will-change: transform; /* Аппаратное ускорение */
  transform: translateZ(0); /* Дополнительная оптимизация для Safari */
}

/* Анимация бегущей строки */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Сдвиг на половину длины трека (оригинал + дубликат) */
  }
}

@-webkit-keyframes marquee {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

/* Логотипы */
.aetherion-pro section.company .client-logo-item {
  flex: 0 0 auto;
  width: clamp(100px, 15vw, 200px); /* Оригинальная ширина для ПК */
  height: clamp(50px, 10vw, 80px); /* Оригинальная высота для ПК */
  display: flex;
  align-items: center;
  justify-content: center;
}

.aetherion-pro section.company .client-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(50%);
  transition: filter 0.3s ease, transform 0.3s ease;
  backface-visibility: hidden; /* Устраняет мерцание в Safari */
}

/* Эффекты при наведении */
.aetherion-pro section.company .client-logo-item img:hover {
  filter: grayscale(0%) sepia(50%) hue-rotate(60deg) brightness(1.1);
  transform: scale(1.1);
}

/* Пауза анимации при наведении (опционально) */
.aetherion-pro section.company .clients-marquee-container:hover .clients-marquee-track {
  animation-play-state: paused;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .aetherion-pro section.company {
    padding: clamp(20px, 4vw, 40px) 0; /* Уменьшил как в других секциях */
  }
  .aetherion-pro section.company .section-title {
    font-size: clamp(1.8rem, 6vw + 1rem, 2.8rem); /* Уменьшил как в skills/about на mobile */
    margin-bottom: clamp(15px, 3vw, 30px);
    padding-left: 10px;
  }
  .aetherion-pro section.company .client-logo-item {
    width: clamp(140px, 25vw, 250px); /* Увеличено: ещё чуть больше на mobile */
    height: clamp(70px, 12.5vw, 125px);
  }
  .aetherion-pro section.company .clients-marquee-track {
    gap: clamp(15px, 3vw, 30px); /* Увеличено: больший отступ на mobile */
    animation-duration: 25s; /* Ускорил анимацию для mobile (с 40s до 25s) */
  }
  .aetherion-pro section.company .client-logo-item img:hover {
    transform: none; /* Отключил scale на mobile (touch не hover) */
  }
  .aetherion-pro section.company .clients-marquee-container:hover .clients-marquee-track {
    animation-play-state: running; /* На mobile не пауза при "hover" (touch) */
  }
}

@media (max-width: 480px) {
  .aetherion-pro section.company {
    padding: clamp(15px, 3vw, 30px) 0;
  }
  .aetherion-pro section.company .section-title {
    font-size: clamp(1.75rem, 6vw + 1rem, 2.5rem); /* Уменьшил как в about/skills на tiny */
    margin-bottom: clamp(10px, 2vw, 20px);
  }
  .aetherion-pro section.company .client-logo-item {
    width: clamp(120px, 30vw, 220px); /* Увеличено: ещё чуть больше на tiny экранах */
    height: clamp(60px, 15vw, 110px);
  }
  .aetherion-pro section.company .clients-marquee-track {
    gap: clamp(12px, 2.5vw, 25px);
    animation-duration: 20s; /* Ещё быстрее для маленьких экранов */
  }
}



/* ==========ЛЕТАЮЩИЕ ОБЛОЧКА ===== */
/* ========================================= */


/* Основные стили для контейнера облаков */
.knowledge-clouds {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  contain: strict; /* Оптимизация для браузера */
}

/* Базовые стили для облаков */
.cloud {
  position: absolute;
  height: 60px;
  background: #FFFFFF;
  left: -200px;
  top: var(--offset);
  animation: float var(--speed) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
  opacity: 0.9;
  transform: translateZ(0);
  border-radius: 50px !important;
}

/* Разные типы облаков */
.cloud.type1 {
  width: 180px;
  height: 70px;
}

.cloud.type1::before, .cloud.type1::after {
  content: '';
  position: absolute;
  background: #FFFFFF;
  border-radius: 50% !important;
}

.cloud.type1::before {
  width: 80px;
  height: 80px;
  top: -30px;
  left: 20px;
}

.cloud.type1::after {
  width: 60px;
  height: 60px;
  top: -20px;
  right: 30px;
}

.cloud.type2 {
  width: 170px;
  height: 60px;
  border-radius: 60px !important;
}

.cloud.type2::before, .cloud.type2::after {
  content: '';
  position: absolute;
  background: #FFFFFF;
  border-radius: 50%;
}

.cloud.type2::before {
  width: 90px;
  height: 90px;
  top: -30px;
  left: 15px;
}

.cloud.type2::after {
  width: 70px;
  height: 70px;
  top: -15px;
  right: 20px;
}

.cloud.type3 {
  width: 160px;
  height: 80px;
  border-radius: 50px !important;
}

.cloud.type3::before, .cloud.type3::after, .cloud.type3 span::before {
  content: '';
  position: absolute;
  background: #FFFFFF;
  border-radius: 50% !important;
}

.cloud.type3::before {
  width: 50px;
  height: 50px;
  top: -12px;
  left: 10px;
  right: 20px;
}

.cloud.type3::after {
  width: 100px;
  height: 80px;
  top: -25px;
  right: 15px;
}

/* Текст внутри облака */
.cloud-text {
  width: 80%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  line-height: 1.2;
  overflow-wrap: break-word;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Анимация движения */
@keyframes float {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

/* Стили для солнца */
.sun {
    margin: 0px 200px 10px 10px ;
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #FFD700 0%, #FFA500 70%, transparent 80%);
  border-radius: 50%;
  box-shadow: 0 0 50px #FFA500, 0 0 100px #FF8C00;
  z-index: 0;
  animation: pulse 4s infinite alternate;
}

/* Лучи солнца */
.sun::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, transparent 40%, rgba(255, 215, 0, 0.3) 70%, transparent 80%);
  border-radius: 50%;
  animation: rays 6s infinite linear;
}

/* Анимация пульсации солнца */
@keyframes pulse {
  0% { transform: translateY(-50%) scale(1); }
  100% { transform: translateY(-50%) scale(1.1); }
}

/* Анимация лучей */
@keyframes rays {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .knowledge-clouds {
    height: 300px;
  }
  .sun {
    width: 80px;
    height: 80px;
    right: 30px;
  }
  .cloud {
    height: 50px;
  }
  .cloud.type1 {
    width: 140px;
    height: 60px;
  }
  .cloud.type1::before {
    width: 60px;
    height: 60px;
    top: -20px;
  }
  .cloud.type1::after {
    width: 40px;
    height: 40px;
  }
  .cloud.type2 {
    width: 180px;
    height: 50px;
  }
  .cloud.type2::before {
    width: 70px;
    height: 70px;
    top: -30px;
  }
  .cloud.type3 {
    width: 130px;
    height: 60px;
  }
  .cloud-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .knowledge-clouds {
    height: 350px;
  }
  .sun {
    width: 60px;
    height: 60px;
 margin: -60px 30px 10px 10px;
  }
  .cloud {
    height: 40px;
  }
  .cloud.type1 {
    width: 110px;
    height: 50px;
  }
  .cloud.type1::before {
    width: 40px;
    height: 40px;
    top: -15px;
  }
  .cloud.type2 {
    width: 140px;
    height: 40px;
  }
  .cloud.type2::before {
    width: 50px;
    height: 50px;
    top: -20px;
  }
  .cloud.type3 {
    width: 120px;
    height: 50px;
  }
  .cloud-text {
    font-size: 10px;
    padding: 0 10px;
  }
}





/* ========================================= */
/* ===== ПОСЛЕДНИЕ ЗАПИСИ БЛОГА ===== */
/* ========================================= */





/* Секция постов блога с горизонтальным скроллом */
.aetherion-pro-blog-posts-section {
    padding: 80px 0;
    position: relative;
    overflow-x: hidden; /* Добавлено: предотвращает горизонтальный сдвиг */
}

.blog-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.blog-section-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 2.8rem);  /* Унифицировано с about/skills */
    font-weight: 600;
    color: #E6E6E6; /* Такой же цвет как в about */
    text-align: left;
    margin-bottom: 3.125rem; /* Такой же отступ как в about */
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Унифицировано с about/skills */
    transition: color 0.3s ease;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
}

.blog-section-title:hover {
    color: #CEF868; /* Акцентный цвет сайта */
}

.blog-scroll-wrapper {
    position: relative;
}

/* Градиенты по бокам */
.scroll-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-gradient-left {
    left: 0;
    background: linear-gradient(90deg, #121212 20%, transparent 100%);
}

.scroll-gradient-right {
    right: 0;
    background: linear-gradient(270deg, #121212 20%, transparent 100%);
}

/* Скрываем градиенты когда скролл в крайних положениях */
.blog-scroll-inner.at-start ~ .scroll-gradient-left,
.blog-scroll-inner.at-end ~ .scroll-gradient-right {
    opacity: 0;
}

.blog-posts-scroll {
    overflow: hidden;
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.blog-scroll-inner {
    display: flex;
    gap: 25px;
    padding: 10px 0 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory; /* Добавлено: snap для карточек */
    -webkit-overflow-scrolling: touch; /* Добавлено: smooth touch на iOS */
}

.blog-scroll-inner::-webkit-scrollbar {
    display: none;
}

/* Настройки для 6 постов на ПК */
.blog-scroll-card {
    flex: 0 0 calc(16.666% - 21px); /* 6 колонок с учетом gap */
    min-width: 280px; /* Минимальная ширина для мобильных */
    background: #1A1A1A; /* Унифицировано с about карточками */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Унифицировано с about/skills */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Добавлено: shadow как в about */
    scroll-snap-align: start; /* Добавлено: snap к началу карточки */
}

.blog-scroll-card:hover {
    transform: translateY(-8px);
    background: #202020; /* Унифицировано с about hover */
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-scroll-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2E2E47 0%, #1A1A1A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-title {
    font-family: 'Unbounded', sans-serif; /* Унифицировано с about h3 */
    font-size: 18px; /* Унифицировано: clamp как в about h3, но адаптировал */
    color: #E6E6E6;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Добавлено: как в about */
    transition: color 0.3s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #CEF868; /* Унифицировано с about hover */
}

.blog-card-excerpt {
    font-family: 'Roboto Flex', sans-serif; /* Унифицировано с about p */
    font-size: 14px;
    color: #B0B0B0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(209, 254, 106, 0.1);
}

.blog-card-date {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 13px;
    color: #888;
}

.blog-card-readmore a {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #CEF868;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-card-readmore a:hover {
    color: #F6EB61;
}

.blog-scroll-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #CEF868;
    background: rgba(209, 254, 106, 0.1);
    color: #CEF868;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: #CEF868;
    color: #0A0A0F;
    transform: scale(1.1);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.scroll-btn:disabled:hover {
    background: rgba(209, 254, 106, 0.1);
    color: #CEF868;
}

/* Адаптивность для мобильных */
@media (max-width: 1200px) {
    .blog-scroll-card {
        flex: 0 0 calc(33.333% - 17px); /* 3 колонки на планшетах */
    }
   
    .scroll-gradient {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .aetherion-pro-blog-posts-section {
        padding: 60px 0; /* Уменьшил как в других секциях */
    }
   
    .blog-posts-container {
        padding: 0 15px; /* Унифицировано с skills */
    }
   
    .blog-posts-scroll {
        margin: 0 -15px;
        padding: 0 15px;
    }
   
    .blog-scroll-inner {
        gap: 20px; /* Уменьшил gap для лучшего touch */
        scroll-snap-type: x proximity; /* Изменено: softer snap на mobile для natural feel */
        -webkit-overflow-scrolling: touch; /* Smooth touch на iOS */
    }
   
    .blog-scroll-card {
        flex: 0 0 calc(80% - 20px); /* Почти полная ширина, но с snap — видно 1.2 карточки для tease следующей */
        min-width: calc(80% - 20px); /* Адаптировано для mobile: крупные карточки с horiz scroll */
        scroll-snap-align: center; /* Изменено: snap к центру для лучшего вида на mobile */
    }
   
    .blog-card-content {
        padding: 20px; /* Уменьшил как в skills */
    }
   
    .blog-card-title {
        font-size: 16px; /* Уменьшил как в about h3 */
    }
   
    .blog-card-excerpt {
        font-size: 13px; /* Уменьшил как в about p */
    }
   
    .scroll-gradient {
        width: 40px;
    }
   
    .scroll-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .aetherion-pro-blog-posts-section {
        padding: 40px 0; /* Уменьшил как в skills */
    }
   
    .blog-scroll-inner {
        gap: 15px; /* Уменьшил gap */
    }
   
    .blog-scroll-card {
        flex: 0 0 calc(90% - 15px); /* Ещё шире на tiny экранах для 1 карточки visible */
        min-width: calc(90% - 15px);
    }
   
    .blog-card-image {
        height: 160px; /* Уменьшил высоту */
    }
   
    .blog-card-content {
        padding: 15px; /* Уменьшил padding */
    }
   
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; /* Унифицировано с другими элементами */
    }
   
    .scroll-gradient {
        width: 30px;
    }
}




/* ========================================= */
/* ===== RE-CREATROS В КОНЦЕ ===== */
/* ========================================= */






        /* Стили для секции заголовка */
        .footer-section {
            text-align: center;
            padding: 30px 0;
            border-top: 5px solid #E6E6E6; /* Синяя обводка сверху */
            border-bottom: 5px solid #E6E6E6; /* Синяя обводка снизу */
            margin: 50px auto;

            transition: all 0.5s ease; /* Плавный переход для обводки */
        }
        
                .footer-section:hover {
            border-top: 5px solid #CEF868; 
            border-bottom: 5px solid #CEF868; 
            margin: 50px auto;

        }

        /* Стили для заголовка */
        .fancy-title {
            font-family: 'Unbounded', sans-serif;
          
            font-size: 120px;
            font-weight: 700;
            color: #E6E6E6; /* Основной цвет текста */
            letter-spacing: 2px;
            margin: 0;
            transition: color 0.5s ease; /* Плавный переход для цвета текста */
        }

        /* Эффект при наведении */
        .footer-section:hover .fancy-title {
            color: #CEF868; /* Цвет текста при наведении */
        }



        /* Адаптивность для меньших экранов */
        @media (max-width: 768px) {
            .fancy-title {
                font-size: 2rem;
            }
        }
