/* Scroll Reveal Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cinematic Animation Base Classes */
.cine-char, .cine-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.start-anim .cine-char,
.start-anim .cine-word {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-fade-down, .animate-fade-right, .animate-fade-left, .animate-fade-up {
    opacity: 0;
}

.start-anim .animate-fade-down {
    animation: cineFadeDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1s;
}
.start-anim .animate-fade-right {
    animation: cineFadeRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.2s;
}
.start-anim .animate-fade-left {
    animation: cineFadeLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.4s;
}
.start-anim .animate-fade-up {
    animation: cineFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.6s;
}

@keyframes cineFadeDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes cineFadeRight {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes cineFadeLeft {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes cineFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* General Buttons Animation */
.btn-animated {
    border-radius: 56px;
    outline: 2.5px solid rgba(71, 196, 242, 0.50);
    outline-offset: -2.5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
    position: relative;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #47C4F2;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: 56px;
}

.btn-animated:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-animated .btn-content {
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 1;
    position: relative;
}

.btn-animated span {
    transition: color 0.4s ease;
}

.btn-animated .arrow {
    display: inline-block;
    transition: color 0.4s ease;
}

.btn-animated:hover .arrow {
    color: #010A18;
    animation: flyAirplane 0.6s ease forwards;
}

@keyframes flyAirplane {
    0% { transform: translate(0, 0); opacity: 1; }
    40% { transform: translate(20px, -20px); opacity: 0; }
    45% { transform: translate(-20px, 20px); opacity: 0; }
    100% { transform: translate(0, 0); opacity: 1; }
}

.btn-animated:hover span {
     color: #010A18;
}
