/* 
* YamanClub - Animations Stylesheet
* Modern eğitim sitesi için animasyon stil dosyası
*/

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-down {
    animation: slideDown 0.8s ease-out;
}

/* Slide Left Animation */
@keyframes slideLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-left {
    animation: slideLeft 0.8s ease-out;
}

/* Slide Right Animation */
@keyframes slideRight {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-right {
    animation: slideRight 0.8s ease-out;
}

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-in {
    animation: zoomIn 0.8s ease-out;
}

/* Zoom Out Animation */
@keyframes zoomOut {
    from {
        transform: scale(1.2);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-out {
    animation: zoomOut 0.8s ease-out;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 1s ease infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
        text-shadow: 0 0 0 rgba(255, 204, 0, 0);
    }
    50% {
        transform: scale(1.08);
        filter: brightness(1.2);
        text-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
        text-shadow: 0 0 0 rgba(255, 204, 0, 0);
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.8s ease;
}

/* Flip Animation */
@keyframes flip {
    0% {
        transform: perspective(400px) rotateY(0);
    }
    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

.flip {
    animation: flip 1s ease-out;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* Button Hover Animations */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -2;
}

.btn-hover-effect:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    z-index: -1;
}

.btn-hover-effect:hover:before {
    width: 100%;
}

/* Card Hover Animations */
.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Image Hover Animations */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Staggered Animation for Multiple Elements */
.stagger-item {
    opacity: 0;
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Loading Animation */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loading3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loading2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

/* Enhanced Page Transition Animation */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-transition.active {
    animation: enhancedPageTransition 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes enhancedPageTransition {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Page Exit Animation - Applied to body when navigating away */
.page-exit {
    animation: pageExit 0.5s ease forwards;
}

@keyframes pageExit {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(5px);
    }
}

/* Typing Animation */
.typing {
    overflow: hidden;
    border-right: 0.15em solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

/* Floating Animation */
.floating {
    animation: floating 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: brightness(1);
    }
    25% {
        transform: translateY(-15px) rotate(2deg) scale(1.02);
        filter: brightness(1.1);
    }
    50% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: brightness(1);
    }
    75% {
        transform: translateY(10px) rotate(-2deg) scale(0.98);
        filter: brightness(0.95);
    }
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: brightness(1);
    }
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), #ff9900, var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientText 5s ease infinite;
    display: inline-block;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Neon Glow Effect */
.neon-glow {
    text-shadow: 0 0 3px rgba(255, 0, 204, 0.5),
                 0 0 5px rgba(255, 0, 204, 0.4),
                 0 0 8px rgba(255, 0, 204, 0.3);
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 3px rgba(255, 0, 204, 0.5),
                     0 0 5px rgba(255, 0, 204, 0.4),
                     0 0 8px rgba(255, 0, 204, 0.3);
    }
    50% {
        text-shadow: 0 0 5px rgba(255, 0, 204, 0.6),
                     0 0 8px rgba(255, 0, 204, 0.5),
                     0 0 12px rgba(255, 0, 204, 0.4);
    }
}

/* Enhanced Badge Glow Effect */
.badge-glow {
    box-shadow: 0 0 5px rgba(255, 0, 204, 0.4),
                0 0 10px rgba(255, 0, 204, 0.3),
                0 0 15px rgba(255, 0, 204, 0.2);
    animation: badgeGlow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.badge-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 204, 0.15) 0%, transparent 70%);
    animation: rotateBadgeGlow 8s linear infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 204, 0.4),
                    0 0 10px rgba(255, 0, 204, 0.3),
                    0 0 15px rgba(255, 0, 204, 0.2);
    }
    50% {
        box-shadow: 0 0 8px rgba(255, 0, 204, 0.5),
                    0 0 15px rgba(255, 0, 204, 0.4),
                    0 0 20px rgba(255, 0, 204, 0.3);
    }
}

@keyframes rotateBadgeGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 3D Card Effect */
.card-3d {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
                0 0 15px rgba(255, 0, 204, 0.5);
}

/* Parallax Effect */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
}

/* Enhanced Particle Animation */
@keyframes enhancedParticleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
        filter: blur(0px);
    }
    10% {
        opacity: 1;
        filter: blur(1px);
    }
    50% {
        transform: translateY(-100px) translateX(50px) scale(1.5);
        opacity: 0.8;
        filter: blur(2px);
    }
    90% {
        opacity: 1;
        filter: blur(1px);
    }
    100% {
        transform: translateY(-200px) translateX(100px) scale(1);
        opacity: 0;
        filter: blur(0px);
    }
}

.enhanced-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 0, 204, 0.7);
    border-radius: 50%;
    animation: enhancedParticleFloat 10s linear infinite;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.7);
}

/* Text Split Animation */
.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: splitTextReveal 0.5s forwards;
}

@keyframes splitTextReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: var(--ripple-y, 50%);
    left: var(--ripple-x, 50%);
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-ripple.active::after {
    animation: ripple 0.6s ease-out forwards;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* Scroll-Triggered Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Shine Effect */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Spin Animation for Loaders */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Animations */
@media (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0s !important;
    }
}
