/* Dynamic Island Animation Styles */
.dynamic-island-animation {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iphone-frame {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.dynamic-island {
    width: 32px;
    height: 10px;
    background: #000;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: expandContract 4s ease-in-out infinite;
}

.wait-time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out infinite;
    transform: scale(0.8);
}

.wait-icon {
    font-size: 8px;
    animation: rotateIcon 4s ease-in-out infinite;
}

.wait-text {
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    position: relative;
    display: inline-block;
    width: 12px;
    height: 10px;
}

.wait-text span {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: numberCycle 4s infinite;
}

.wait-text .time-1 {
    animation-delay: 0s;
}

.wait-text .time-2 {
    animation-delay: 1s;
}

.wait-text .time-3 {
    animation-delay: 2s;
}

.wait-text .time-4 {
    animation-delay: 3s;
}

.wait-min {
    font-size: 6px;
    color: #fff;
    opacity: 0.8;
    margin-left: 1px;
}

/* Cycle through different wait times */
@keyframes numberCycle {
    0%, 20% { opacity: 1; }
    25%, 95% { opacity: 0; }
    100% { opacity: 0; }
}

/* Rotate the clock icon */
@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(360deg); }
}

/* Animation for Dynamic Island expansion */
@keyframes expandContract {
    0%, 100% {
        width: 32px;
        height: 10px;
        border-radius: 20px;
    }
    25% {
        width: 40px;
        height: 16px;
        border-radius: 12px;
    }
    50% {
        width: 44px;
        height: 20px;
        border-radius: 10px;
    }
    75% {
        width: 40px;
        height: 16px;
        border-radius: 12px;
    }
}

/* Animation for content fade in/out */
@keyframes fadeInOut {
    0%, 20%, 80%, 100% {
        opacity: 0;
    }
    30%, 70% {
        opacity: 1;
    }
}

/* Pulse animation on hover */
.feature-card:hover .dynamic-island {
    animation: expandContract 2s ease-in-out infinite, pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
    }
}

/* Alternative animation with notification style */
@keyframes notificationPop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dynamic-island-animation {
        width: 50px;
        height: 50px;
    }
    
    .iphone-frame {
        width: 45px;
        height: 45px;
        padding-top: 6px;
    }
    
    .dynamic-island {
        width: 28px;
        height: 8px;
    }
    
    @keyframes expandContract {
        0%, 100% {
            width: 28px;
            height: 8px;
        }
        25% {
            width: 36px;
            height: 14px;
        }
        50% {
            width: 40px;
            height: 18px;
        }
        75% {
            width: 36px;
            height: 14px;
        }
    }
}