/* ============================================
   SMOOTH ANIMATIONS & MICRO-INTERACTIONS
   ============================================
   Elegant animations and transitions for
   glassmorphism UI with smooth easing and
   micro-interactions.
   ============================================ */

/* ============================================
   Smooth Entrance Animations
   ============================================ */

@keyframes slideInSmooth {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInSmoothRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Smooth Exit Animations
   ============================================ */

@keyframes fadeOutSmooth {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ============================================
   Glass Glow Effect
   ============================================ */

@keyframes glassGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 179, 109, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(120, 204, 109, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(120, 204, 109, 0);
    }
}

@keyframes glassGlowDark {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 156, 109, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(120, 204, 109, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(120, 204, 109, 0);
    }
}

/* ============================================
   Hover Lift Effects
   ============================================ */

@keyframes hoverLift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-2px);
    }
}

@keyframes hoverShadow {
    from {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    to {
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    }
}

/* ============================================
   Button Pulse & States
   ============================================ */

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(10, 13, 193, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(120, 204, 109, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(120, 204, 109, 0);
    }
}

@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   Shimmer & Shine Effects
   ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes shine {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* ============================================
   Rotation & Spin
   ============================================ */

@keyframes spinSmooth {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Animation Classes
   ============================================ */

.animate-slide-in {
    animation: slideInSmooth 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInSmoothRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-out {
    animation: fadeOutSmooth 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-slide-out-left {
    animation: slideOutLeft 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-slide-out-right {
    animation: slideOutRight 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================
   Card Hover Interactions
   ============================================ */

.card-started,
.card-inner {
    transition: all 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-inner.animated {
    animation: fadeInScale 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-started:hover,
.card-inner:hover {
    transform: translateY(-2px);
}

/* ============================================
   Button Hover & Focus States
   ============================================ */

.lnk,
.button,
button,
input[type="submit"] {
    position: relative;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.lnk:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
    animation: hoverLift 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lnk:focus,
.button:focus,
button:focus,
input[type="submit"]:focus {
    animation: glassGlow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1;
}

/* ============================================
   Menu Item Animations
   ============================================ */

.header .top-menu ul li a {
    transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.header .top-menu ul li a:before {
    transition: background 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.header .top-menu ul li a:hover,
.header .top-menu ul li.active a {
    transition-duration: 0.3s;
}

.header .top-menu ul li .icon {
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.header .top-menu ul li:hover .icon {
    animation: hoverLift 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================
   Input Focus States
   ============================================ */

input,
textarea {
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

input:focus,
textarea:focus {
    animation: fadeInScale 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Text & Content Animations
   ============================================ */

.card-started .profile .title,
.content .title,
.resume-title .name {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
    animation-delay: 0.1s;
}

.card-started .profile .subtitle {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
    animation-delay: 0.2s;
}

.card-started .profile .social {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
    animation-delay: 0.3s;
}

.card-started .profile .lnk {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
    animation-delay: 0.4s;
}

/* ============================================
   Staggered List Animations
   ============================================ */

.info-list ul li,
.resume-items .resume-item,
.skills-list ul li {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
}

.info-list ul li:nth-child(1) { animation-delay: 0.1s; }
.info-list ul li:nth-child(2) { animation-delay: 0.2s; }
.info-list ul li:nth-child(3) { animation-delay: 0.3s; }
.info-list ul li:nth-child(4) { animation-delay: 0.4s; }

.resume-items .resume-item:nth-child(1) { animation-delay: 0.1s; }
.resume-items .resume-item:nth-child(2) { animation-delay: 0.2s; }
.resume-items .resume-item:nth-child(3) { animation-delay: 0.3s; }

.skills-list ul li:nth-child(1) { animation-delay: 0.1s; }
.skills-list ul li:nth-child(2) { animation-delay: 0.2s; }
.skills-list ul li:nth-child(3) { animation-delay: 0.3s; }
.skills-list ul li:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   Icon Animations
   ============================================ */

.card-started .profile .social a .ion,
.card-started .profile .social a .fab,
.card-started .profile .social a .fas {
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-started .profile .social a:hover .ion,
.card-started .profile .social a:hover .fab,
.card-started .profile .social a:hover .fas {
    animation: hoverLift 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================
   Progress Bar Animations
   ============================================ */

.skills-list .progress {
    overflow: hidden;
}

.skills-list .progress .percentage {
    animation: slideInSmooth 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
    animation-fill-mode: both;
}

.skills-list ul li:nth-child(1) .percentage { animation-delay: 0.2s; }
.skills-list ul li:nth-child(2) .percentage { animation-delay: 0.3s; }
.skills-list ul li:nth-child(3) .percentage { animation-delay: 0.4s; }
.skills-list ul li:nth-child(4) .percentage { animation-delay: 0.5s; }

/* ============================================
   Preloader Animation
   ============================================ */

.preloader .spinner .double-bounce1,
.preloader .spinner .double-bounce2 {
    animation-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Mobile Animations (Reduced for Performance)
   ============================================ */

@media (max-width: 768px) {
    .card-inner:hover {
        transform: translateY(-2px);
    }
    
    .lnk:hover,
    .button:hover {
        transform: translateY(-1px);
    }
    
    .info-list ul li,
    .resume-items .resume-item {
        animation-duration: 0.4s;
    }
}

