/* ============================================
   Advanced Animations
   ============================================ */

/* Hero Background Animation - Softer */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-15px) translateX(8px);
    }

    66% {
        transform: translateY(8px) translateX(-8px);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.08;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.12;
    }
}

.animated-ui {
    animation: breathe 10s ease-in-out infinite;
}

/* Floating UI Elements in Hero - Softer */
.hero-background::before,
.hero-background::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.hero-background::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-background::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

/* Button Breathing Animation - Softer */
@keyframes buttonBreathe {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-1px) scale(1.01);
    }
}

.btn {
    animation: buttonBreathe 4s ease-in-out infinite;
}

.btn:hover {
    animation: none;
}

/* Confetti Animation - Enhanced */
@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }

    100% {
        transform: translateY(600px) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.confetti:nth-child(1) {
    top: -10px;
    left: 15%;
    background: #ec4899;
    animation: confettiFall 3s ease-in infinite;
    animation-delay: 0s;
}

.confetti:nth-child(2) {
    top: -10px;
    left: 30%;
    background: #f59e0b;
    animation: confettiFall 3.2s ease-in infinite;
    animation-delay: 0.3s;
}

.confetti:nth-child(3) {
    top: -10px;
    left: 45%;
    background: #8b5cf6;
    animation: confettiFall 2.8s ease-in infinite;
    animation-delay: 0.6s;
}

.confetti:nth-child(4) {
    top: -10px;
    left: 60%;
    background: #10b981;
    animation: confettiFall 3.5s ease-in infinite;
    animation-delay: 0.9s;
}

.confetti:nth-child(5) {
    top: -10px;
    left: 75%;
    background: #3b82f6;
    animation: confettiFall 3.1s ease-in infinite;
    animation-delay: 1.2s;
}

.confetti:nth-child(6) {
    top: -10px;
    left: 25%;
    background: #ec4899;
    animation: confettiFall 2.9s ease-in infinite;
    animation-delay: 1.5s;
}

.confetti:nth-child(7) {
    top: -10px;
    left: 55%;
    background: #f59e0b;
    animation: confettiFall 3.3s ease-in infinite;
    animation-delay: 1.8s;
}

.confetti:nth-child(8) {
    top: -10px;
    left: 85%;
    background: #8b5cf6;
    animation: confettiFall 3.4s ease-in infinite;
    animation-delay: 2.1s;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered Animation Delays */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* Card Lift Animation - Softer */
@keyframes cardLift {
    from {
        transform: translateY(0);
        box-shadow: var(--shadow-md);
    }

    to {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

.mockup-calendar,
.mockup-tasks,
.mockup-contact,
.mockup-birthday,
.mockup-weather,
.mockup-dashboard {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.mockup-calendar:hover,
.mockup-tasks:hover,
.mockup-contact:hover,
.mockup-birthday:hover,
.mockup-weather:hover,
.mockup-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Parallax Effect - Softer */
.parallax {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth Scroll Animation */
@keyframes smoothScroll {
    from {
        scroll-behavior: smooth;
    }
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

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

.shimmer {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Fade In Animation Classes */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Only animate sections that explicitly need it */
.feature-section,
.cta-section {
    opacity: 1 !important;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Stagger for Lists */
.feature-list li {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-list li:nth-child(4) {
    transition-delay: 0.4s;
}

/* Phone Mockup Entrance Animation - Softer */
@keyframes phoneEnter {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-10deg) translateY(30px);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(-3deg) translateY(0);
    }
}

@keyframes phoneEnter2 {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(10deg) translateY(30px) translateX(-30px);
    }

    to {
        opacity: 0.9;
        transform: perspective(1000px) rotateY(3deg) translateY(0) translateX(-30px);
    }
}

.phone-1 {
    animation: phoneEnter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-2 {
    animation: phoneEnter2 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
}

/* Card Hover Glow - Softer */
@keyframes cardGlow {

    0%,
    100% {
        box-shadow: var(--shadow-sm);
    }

    50% {
        box-shadow: 0 4px 20px rgba(199, 206, 234, 0.15);
    }
}

/* Widget Pulse Animation - Softer */
@keyframes widgetPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }
}

.widget:hover {
    animation: widgetPulse 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth Number Counter Animation - Softer */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget-stat {
    animation: countUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}