/*
Theme Name: DiplomDone Native
Theme URI: https://diplomdone.com
Author: DiplomDone Team
Description: Жива тема WordPress з анімаціями. Tailwind CSS + Vanilla JS.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: diplomdone
*/

/* --- Базові налаштування --- */
html.wp-toolbar { margin-top: 0 !important; }
#wpadminbar { display: none; }
body { overflow-x: hidden; } /* Запобігає горизонтальному скролу від анімацій */

/* --- Фонові "Блоби" (Плаваючі фігури) --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    animation: float-blob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #818cf8; /* Indigo 400 */
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #c084fc; /* Purple 400 */
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #f472b6; /* Pink 400 */
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- Анімації при скролі (Scroll Reveal) --- */
.reveal-element {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}

/* Варіанти напрямків */
.reveal-up { transform: translateY(50px); }
.reveal-down { transform: translateY(-50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.8); }

/* Коли елемент видимий */
.reveal-element.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --- Ефект друкування (Cursor) --- */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background-color: #4f46e5;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Покращені Hover ефекти --- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Анімація іконок */
.icon-bounce:hover i {
    animation: bounce-short 0.5s ease;
}

@keyframes bounce-short {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- Promo Banner Shake --- */
@keyframes shake-attention {
    0%, 100% { transform: translateY(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateY(-5px); }
    20%, 40%, 60%, 80% { transform: translateY(5px); }
}

.shake-banner {
    animation: shake-attention 0.8s ease-in-out;
}